Last modified: 2005-09-02 07:57:41 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 T5300, the corresponding Phabricator task for complete and up-to-date bug report information.
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...
Status: RESOLVED WORKSFORME
Product: Wikimedia
Classification: Unclassified
Language setup (Other open bugs)
unspecified
All All
: Normal minor with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://bugzilla.wikipedia.org/show_bu...
:
Depends on:
Blocks:
  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: ---


Attachments

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)
    B=http://en.wikipedia.org/wiki/MediaWiki:Sitesupport
* A=the Lithuanian "Donations" link on en:WP, for a user using the lt: interface
    B=http://en.wikipedia.org/wiki/MediaWiki:Sitesupport/lt
* A=the Lithuanian "Donations" link on lt:WP (default interface)
    B=http://lt.wikipedia.org/wiki/MediaWiki:Sitesupport

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:
http://bugzilla.wikipedia.org/show_bug.cgi?id=3245

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
resolution.)
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 @@
-F
+C


For massive update, the best is to submit a patch as described on:
  http://meta.wikimedia.org/wiki/MediaWiki_localisation

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


Navigation
Links