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

Event Timeline

Restricted Application added a project: Inuka-Team. · View Herald TranscriptSat, Aug 29, 9:03 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

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

KartikMistry removed Lucas_Werkmeister_WMDE as the assignee of this task.Sun, Aug 30, 2:06 AM
KartikMistry updated the task description. (Show Details)
KartikMistry edited subscribers, added: Lucas_Werkmeister_WMDE; removed: ContentTranslation.
KartikMistry updated the task description. (Show Details)Sun, Aug 30, 2:09 AM
Pginer-WMF triaged this task as High priority.Wed, Sep 2, 1:05 PM

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).

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.

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

santhosh claimed this task.Thu, Sep 3, 6:20 AM

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

Jpita added a subscriber: Jpita.

tested in production

Pginer-WMF closed this task as Resolved.Fri, Sep 18, 8:17 AM
Pginer-WMF added a subscriber: Pginer-WMF.