Help:MediaWiki localization

From GRWiktionaryHelp

(Redirected from MediaWiki localization)

bVjCaY <a href="http://uhbsixjhbjio.com/">uhbsixjhbjio</a>, [url=http://czefzhtpgtia.com/]czefzhtpgtia[/url], [link=http://kqzsfiqkailr.com/]kqzsfiqkailr[/link], http://ujqwudtbkbzg.com/

AsRJ22 <a href="http://qtqjfjhhuacd.com/">qtqjfjhhuacd</a>, [url=http://otxkuvsqhxku.com/]otxkuvsqhxku[/url], [link=http://qpaiqkzkdugi.com/]qpaiqkzkdugi[/link], http://usfninahefsx.com/

Bjd3ck <a href="http://mzlospydtqwy.com/">mzlospydtqwy</a>, [url=http://juphlkcwpozk.com/]juphlkcwpozk[/url], [link=http://ourjpyjqosyt.com/]ourjpyjqosyt[/link], http://lzvsoqvnepxv.com/

Contents

Example message: toolbox

With Mediawiki namespace

Visit http://your.wiki.tld/wiki/index.php/Mediawiki:toolbox or http://your.wiki.tld/Mediawiki:toolbox (the latter with Rewrite Rules) and edit just as any other wikipage. A full list of all messages is available at http://your.wiki.tld/Special:Allmessages (older versions of Mediawiki: http://your.wiki.tld/Mediawiki:All_messages, you will need sysop status).

LanguageXx.php version

Change the toolbox line in languages/LanguageXx.php (Xx corresponding to the ISO code of the language you have chosen) to :

"toolbox" => "my toolbox text",

Documentation for translators (iii)

This section is meant as guidance for some general aspects of translating the Language.php file to another language (LanguageXx.php) and to some messages that are not straightforward to translate.

Basic coding

There are some basic coding rules that are helpful to know to understand the code:

  • Quoting: All strings (name of the message, content of the message) must be contained in quotes. "Double quotes" means everything within the quotes will be checked by PHP for variables and such stuff ($1, $2, $3, etc. and \n for example), while with single quotes PHP can work a little bit faster because it will not check for such things. This should indicate that all messages with such variables would have to be contained in "double quotes", but this does not seem to be the case with LanguageXx.php anymore.

General considerations

  • If you are making a UTF-8 localization, this line will have to be placed somewhere in the beginning (or end) of the LanguageXx.php file:
require_once( "LanguageUtf8.php" );
  • "-" means "don't show this". Can be used to disable displaying 'disclaimers', 'currentevents', and 'portal', for example (see Wikitech posting). This does not currently work to prevent Special pages from showing up in the list of special pages though.

Message documentation

  • 'categoryarticlecount1': See 'subcategorycount1'.
  • 'subcategorycount1': This is the same as 'subcategorycount', but in singular form. This way of indicating singular form is used elsewhere too.
  • 'sitesubtitle': This message is now hidden by default, but can be made visible by editing the site's monobook.css.

See also

MediaWiki Handbook: Contents | Other help


Reading: Go | Search | URL | Namespace | Page name | Section | Link | Backlinks | Piped link | Interwiki link | Redirect | Variable | Category | Special page
Tracking changes: Recent | (enhanced) | Related | Watching pages | Page history | Diff | User contributions | Edit summary | Minor edit |
Logging in and preferences: Logging in | Preferences | User style
Editing: Overview | Wikitext | New page | List | Images/files | Image page | Special characters | Formula | Table | EasyTimeline | Template | Renaming / Moving a page | Editing shortcuts | Talk page | Testing | Export |

Wiki Projects: Wikibooks | Wikicommons | Wikipedia | Wikiquote | Wikisource | Wiktionary |