HomePhabricator

Support gallery translations

Authored by santhosh.

Description

Support gallery translations

Adapt the galleries from the source article to the target article.

Copy the images and translate the captions if MT present.
Editing gallery text won't be allowed at present
in the translation interface.

Testplan:
Translate Radimlja article from English to Spanish.
Special:ContentTranslation&page=Radimlja&from=en&to=es&targettitle=Radimlja
Just click on the gallery in the page. You should see the gallery
copied to the translation and the gallery captions translated
using Apertium.
Publish the article and you should see the following
wikitext in the published page.

Galería

<gallery>
File:Radmilja 1.jpg|Radimlja
File:Radmilja 2.jpg|Señal en la entrada a Radimlja
File:Radmilja 3.jpg|Radimlja, stecak necrópolis
</gallery>

Bug: T96159
Change-Id: I5f1768c336a46a5534af1f90688d530b97f04e00

Details

Committed
Amire80Jun 9 2015, 1:57 PM
Parents
rECTXd9ce8c3aac75: Rewrite the links module
Branches
Unknown
Tags
Unknown
ChangeId
I5f1768c336a46a5534af1f90688d530b97f04e00