HomePhabricator

Additional trigger to add reflist while adding a reference manually

Authored by santhosh.

Description

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.

Testplan:
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

Details

Committed
santhoshJun 24 2015, 3:55 AM
Parents
rECTX0393f8264034: Localisation updates from https://translatewiki.net.
Branches
Unknown
Tags
Unknown
ChangeId
I2a8d4d99eb8e69c75a35c28b638622a1b477bbf1