Last modified: 2014-11-18 18:07:08 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 T38006, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 36006 - Warn before leaving the page when editing a message
Warn before leaving the page when editing a message
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Translate (Other open bugs)
unspecified
All All
: High minor with 1 vote (vote)
: ---
Assigned To: Amir E. Aharoni
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-16 09:11 UTC by Tisza Gergő
Modified: 2014-11-18 18:07 UTC (History)
4 users (show)

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


Attachments

Description Tisza Gergő 2012-04-16 09:11:38 UTC
The Translate extension desperately needs a warning popup (onbeforeunload handler) when leaving the page without saving a half-edited message. There are at least two easy ways to accidentally navigate away and loose the half-edited text (which is not terrible given that messages are typically 2-3 sentences at most, but still quite annoying):
* Translate relies on hotkeys for saving; both browser and application support for these is somewhat unreliable, thus depending on the language, pressing something like alt-s might result in e.g. closing the tab.
* there is no support for typing non-english characters, so translators are left with OS-provided Unicode input sequences. On Windows, that means alt+(numbers from numerical keyboard); if numlock is accidentally disabled, alt-4 will invoke the back button.
Comment 1 Niklas Laxström 2012-04-16 09:26:47 UTC
Please split these into separate bugs.

The issues with hotkeys are known, but there is nothing we can do about it. I would rather keep them for the benefit of (hopefully) majority of users, where they are implemented in their browser in a way that doesn't cause problems.
Comment 2 Tisza Gergő 2012-04-16 11:02:33 UTC
I don't think there is anything wrong with using hotkeys (they are certainly a big productivity boost, and no one is forced to use them), I was just arguing for the need for warning popups. The two other problems would be pretty harmless on they own, if they did't cause loosing work (also, I don't see what could be done about them).
Comment 3 Niklas Laxström 2012-04-16 11:05:35 UTC
Ah I didn't read your comment carefully enough, sorry. However that latter issue resembles bug 34327 pretty closely. I agree that we need a warning. Marking high because it can be considered as data-loss bug.
Comment 4 Tisza Gergő 2012-04-16 11:26:29 UTC
By no support for non-english I just meant that there is no character insertion toolbar in the popups. For Hungarian, the proper quoting looks like „this”, but those quotes are not included on a Hungarian keyboard, so you need to enter them via copy-paste or code, and the input sequence for the closing one is alt-0148, so I tend to run into the numlock issue a lot.
Comment 5 Amir E. Aharoni 2012-05-02 16:01:48 UTC
Tisza - I am working on "Warn before leaving the page" part.

There's an easy way to have quotes „like this” right now, but only in the regular editing interface, not the popup:
* Enable the the enhanced editing toolbar (in Preferences -> Editing)
* When editing, go to Special characters -> Symbols. You'll find the quotes there. If you select text and press the button, it will put the selected text in quotes. (Good Hebrew typography uses the same quotes, by the way.)

If you want, support for Hungarian can be added to the Narayam extension. It's quite easy to do it yourself, but if you find it complicated, file a separate bug and write which keys do you want to map to which characters.
Comment 6 Amir E. Aharoni 2012-05-14 12:17:02 UTC
A fix submitted for review: https://gerrit.wikimedia.org/r/#/c/7582/ .

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


Navigation
Links