Last modified: 2008-01-24 08:59:58 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 T14758, the corresponding Phabricator task for complete and up-to-date bug report information.
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