Last modified: 2013-04-22 16:16:32 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T47484, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45484 - [TUX] Allow to restore original translation
[TUX] Allow to restore original translation
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Translate (Other open bugs)
master
All All
: Low normal (vote)
: ---
Assigned To: Amir E. Aharoni
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-27 11:36 UTC by Pau Giner
Modified: 2013-04-22 16:16 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Pau Giner 2013-02-27 11:36:35 UTC
The user should be able to revert temporary modifications and get the current translation for a message he started editing.

This functionality can be provided by adding an "insert button" similar to the "copy from source" one. The new button would be labelled as "Revert to previous translation" and will be only visible for messages that already have a translation under the following circumstances:
- The user deletes the translation text.
- The user open an "unsaved" message.
Comment 1 Siebrand Mazeland 2013-02-27 15:41:23 UTC
Would this feature be available as long as the change is not yet saved and while the editor is still open, or also when not saved and editor has been closed?
Comment 2 Pau Giner 2013-03-04 19:07:06 UTC
The feature is provided in the editor, so the editor must be opened to access the feature. I considered two scenarios:

A) The user opens an existing translation, modifies it and wants to revert the changes. When he deletes the text, an option to "revert to previous translation" appears next to the "copy from source" button.

B) The user edits an existing translation and closes the editor. Then, the message is marked as unsaved in the list. The user re-opens it again and the text area includes the "revert to previous translation" button.

In both cases, clicking the "revert to previous translation" fills the text area with the current translation and the editor behaves as if the translation was just opened (i.e., closing the editor will not make the "unsaved" label to appear in the message, and the save translation button would be disabled until the translation text is modified).
Comment 3 Amir E. Aharoni 2013-03-14 15:54:50 UTC
Patch:
https://gerrit.wikimedia.org/r/#/c/53758/
Comment 4 Amir E. Aharoni 2013-03-18 11:35:56 UTC
I discussed it with Pau and we decided that for now we'll show the "Discard" button immediately when the user starts typing and explore other scenarios later.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links