Updated mediawiki/extensions Project: mediawiki/extensions/ContentTranslation…

Authored by santhosh.


Updated mediawiki/extensions Project: mediawiki/extensions/ContentTranslation 4925aab581f87865ff4c79a0fdf70146f2aafab6

Additional trigger to add reflist while adding a reference manually

Before this patch, the reference list was added as a handler of
mw.cx.translation.postMT. This wont work for two cases

(a) language pair with different directionality. For them we don't
give source text as initial translation.

(b) When user opted to not using any initial translation.

Translate the article https://he.wikipedia.org/wiki/%D7%92%D7%91%D7%A2%D7%AA_%D7%99%D7%A2%D7%A8%D7%99%D7%9D
from hewiki to English. Click on some sections. You will see empty
initial translation. After that, click on a reference in source section,
press 'Add reference' button from reference tool card.
You will see reference added. At the same time, you should see reference list
added at the bottom of the translation. The publishing of your translation
should succeed too.

Bug: T103502
Change-Id: I2a8d4d99eb8e69c75a35c28b638622a1b477bbf1