Page MenuHomePhabricator

Can't add categories in content translation tool - Categories for the language to translate not shown
Closed, ResolvedPublicBUG REPORT


When I use the ContentTranslation Tool, in the section to add categories, if I type a category to add to the destination wiki, the "related categories" not shown.


User can't add category in ContentTranslation with this bug (either existance or user defined)

Console error

(with guwiki)

jQuery.Deferred exception: (query.pages || []).forEach is not a function TypeError: (query.pages || []).forEach is not a function
    at (<anonymous>:304:119)
    at (<anonymous>:288:535)
    at CategoryInputWidget.OO.ui.mixin.LookupElement.getRequestCacheDataFromResponse (
    at fire (
    at fireWith (
    at mightThrow (
    at process (
    at mightThrow ( undefined

Screenshot example

image.png (768×1 px, 198 KB)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

This seems regression. Updated description with console error(s).

With this bug, i only can add categories defined by me. (New category)
Con este problema, solamente puedo añadir categorías definidas por mi. (Categoría nueva).

image.png (768×1 px, 138 KB)

image.png (768×1 px, 139 KB)

Y cuando trato de guardar una categoría aunque no se muestre la lista de "Categorías relacionadas", los bordes de la barra donde se buscan las categorías para añadir a la wikipedia de destino se torna de color rojo.
And when I try to save a category even though the "Related categories" list is not displayed, the borders of the bar where i search the categories to add it to the destination wikipedia turns of red.

image.png (768×1 px, 136 KB)

image.png (768×1 px, 135 KB)

Me originó este problema al comenzar a traducir el artículo:
"Assara odontosema"
( de enwiki a eswiki (, y luego al comenzar a trabajar en mis siguientes traducciones con Content Translation:
"Turn Down for What" enwiki ( a eswiki
"Ashita, Mama ga Inai" enwiki (,_Mama_ga_Inai) a eswiki

Change 623914 had a related patch set uploaded (by Santhosh; owner: Santhosh):
[mediawiki/extensions/ContentTranslation@master] Fix broken search

Change 623914 merged by jenkins-bot:
[mediawiki/extensions/ContentTranslation@master] Fix broken search