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

Authored by jenkins-bot.


Updated mediawiki/core Project: mediawiki/extensions/ContentTranslation 9995e31434530471d07e1458548856385caa5bcc

Enable publish button when the preference is not to use initial translation

The translation weight was taken using $.data, which does not reflect the
updated values. If there is no initial translation, the initial value
is 0 and causing progress calculation understands it as 0 translation
Changed the translation weight reading to .attr method and
fixed the issue.

Choose a translation where the direction of source and target differs.
page=גבעת+יערים&from=he&to=en is an example.
Click on some sections and start typing in the blank translation sections
You should notice the publish button enabled.

Bug: T103555
Change-Id: I1ec868e270fa65485fa8e21268f8e46a163e9178
(cherry picked from commit 0e4d027dd03a746735bba8d94552547506e1707e)

Event Timeline

Gerrit Code Review <gerrit@wikimedia.org> committed rMWd458936e64d4: Updated mediawiki/core Project: mediawiki/extensions/ContentTranslation… (authored by jenkins-bot <jenkins-bot@gerrit.wikimedia.org>).Jun 24 2015, 9:35 AM