Last modified: 2008-01-24 08:59:58 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 12758 - Localisation of navbar show/hide links via wfMsgCentre
Localisation of navbar show/hide links via wfMsgCentre
Status: RESOLVED FIXED
Product: Wiktionary tools
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Andrew Dunbar
http://en.wiktionary.org/wiki/User:Hi...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-01-23 15:46 UTC by Andrew Dunbar
Modified: 2008-01-24 08:59 UTC (History)
1 user (show)

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


Attachments

Description Andrew Dunbar 2008-01-23 15:46:43 UTC
* Modify wfMsgCentre to support more general functions to be called when a message is found in the message cache.

* Look up the "showtoc" and "hidetoc" messages which already exist and have identical text and semantics to our navbar "show" and "hide" links which are currently hard-coded.

* Iterate through all the NavFrame divs (by id or class name) and set the show or hide link of each to the string returned from the message cache.

* Dont't do any of this if the user language is the same as the content language.
Comment 1 Andrew Dunbar 2008-01-24 08:59:58 UTC
Implemented at: http://en.wiktionary.org/wiki/User:Hippietrail/localisenavbars.js

To use:

importScript('User:Hippietrail/localisenavbars.js');

localisenavbars();


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


Navigation
Links