Last modified: 2005-09-02 07:57:41 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 3300 - Write scripts to update language files with updated text from MediaWiki namespaces
Write scripts to update language files with updated text from MediaWiki names...
Product: Wikimedia
Classification: Unclassified
Language setup (Other open bugs)
All All
: Normal minor with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2005-08-29 20:34 UTC by SJ
Modified: 2005-09-02 07:57 UTC (History)
0 users

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


Description SJ 2005-08-29 20:34:09 UTC
Individual Wikipedias manage their interface text by having administrators
update MediaWiki: namespace pages.  (cf. Special:Allmessages)  

To locally update A, one edits B: 
* A=the English "Donations" link in the sidebar on en:WP (default interface)
* A=the Lithuanian "Donations" link on en:WP, for a user using the lt: interface
* A=the Lithuanian "Donations" link on lt:WP (default interface)

To update the text of that link in the default language file used by all
Wikipedias when there is no local page overriding the message text, you must...
file a bug in bugzilla (after figuring out this is where to turn) asking for the
change to be made.  See bug 3245 for an example:

PROPOSED FIX:  Write a script that regularly checks for changes to the local
MediaWiki-driven interfaces, and assist devs/admins in rapidly updating the
language files with that content.  

(Note, when writing the above script, that one should check many languages as
well as many projects. For instance, when updating the French-language interface
strings, one should check the Fr: translation of a given string *on all wikis*,
to see if any of them have changed since the script was last run [each language
version of each project has a local Fr: translation that can override the
default] , and offer a human operator some sort of script-assisted conflict
Comment 1 Antoine "hashar" Musso (WMF) 2005-09-02 07:57:41 UTC
Have a look at diffLanguage.php in the maintenance directory.
It can compare the mediawiki language file with a list of messages
as given by Special:Allmessages (PHP output).

Example if you want to update the french language:

 php diffLanguage.php fr /tmp/from-fr-wikipedia.php

Output lines like:

accesskey-search differs:
--- /tmp/mwParser-606869213-tested      2005-09-02 09:56:08.000000000 +0200
+++ /tmp/mwParser-606869213-reference   2005-09-02 09:56:08.000000000 +0200
@@ -1 +1 @@

For massive update, the best is to submit a patch as described on:

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