[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Page MenuHomePhabricator

Special:ImportTranslations always reports "There were no changes for this language."
Closed, ResolvedPublic2 Estimated Story Points

Description

Steps to reproduce

  • Export translations
  • Add a translation
  • Import translation

Expected result

  • Successful changes reported (since the translations are indeed imported)

Actual result

  • "There were no changes for this language" is reported

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Which wikis? Did it import translations or not?

Which wikis? Did it import translations or not?

Yes, it did import the translations. This happened on both metawiki and mediawikiwiki

Wangombe changed the task status from Open to In Progress.EditedApr 4 2022, 2:10 PM

It makes sense that the message appears after following the bug reproduction steps.
Importing the translation and clicking on 'Load file' button runs MessageWebImporter::execute()

  1. Once the file is loaded, the next UI shows the list of new messages (translations).
  2. But clicking on 'execute' runs MessageWebImporter::execute() again.

This call-stack suggests that the new messages will be imported [regardless] and saved before the messages are reviewed. Clicking 'execute' button which, I assume, is intended to allow the user to actually save the new messages after reviewing them, doesn't actually do what is intended of it. This issue might be bigger than just the message not showing correctly and is currently under investigation.

When a user uploads their translations and clicks on 'load file' button, both the diff and 'new messages' will be shown (If the user has modified or added a new translation).

image.png (446×1 px, 52 KB)

Once they have reviewed their message, this is the feedback the user will receive .
image.png (366×512 px, 28 KB)

The expected result is that unless the user clicks on the 'Execute' button, these translations are not saved.

Change 777349 had a related patch set uploaded (by Wangombe; author: Wangombe):

[mediawiki/extensions/Translate@master] Special:ImportTranslations: feedback message

https://gerrit.wikimedia.org/r/777349

abi_ subscribed.

Work on this task was started a while back and it was not added to the Language team board. Adding it now since work is done on this.

Sorry, this is not yet deployed. Had it confused with another patch.

Change 777349 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] Special:ImportTranslations: Avoid early processing of new translation

https://gerrit.wikimedia.org/r/777349

abi_ triaged this task as Low priority.Apr 25 2022, 2:59 PM
abi_ set the point value for this task to 2.

I've tested this on translatewiki.net. Works well.