Page MenuHomePhabricator

ContentTranslation doesn't translate image attribute keywords like "right" and "thumb"
Closed, ResolvedPublic

Description

ContentTranslation doesn't translate image attribute keywords.

For example, from English to Hebrew it does translate the "File:" namespace to "קובץ:", but doesn't translate "right" and "thumb".

This might be a Parsoid issue, because it also happens in VisualEditor: when adding an image to the Hebrew Wikipedia, the namespace is localized, but not "right" and "thumb".

Event Timeline

Amire80 raised the priority of this task from to Medium.
Amire80 updated the task description. (Show Details)
Amire80 subscribed.

These are exposed as img_* magicwords in the mediawiki config; just noting.

This should be helped by https://gerrit.wikimedia.org/r/247914 , which would allow us to use consistent choices across projects instead of cherry-picking workarounds.

I believe this issue was fixed by the patch for T53852.

Arrbee raised the priority of this task from Medium to Needs Triage.Oct 29 2018, 1:32 PM
Etonkovidova claimed this task.
Etonkovidova subscribed.

Checked in wmf.1 - the image attributes are translated with cx2 version:

e.g.

[[קובץ:Savory_Stuffed_Celery_Pop_Vegan_Cupcakes_(3435125458).jpg|ממוזער|מלוחים עוגות]]
[[קובץ:Cupcake-tin.jpg|ימין|ממוזער|עוגה פן, עשוי פלדה משומרת.]]