Help:Howto/Create new language: Difference between revisions

From Miranda NG
Jump to navigation Jump to search
(cz -> cs)
No edit summary
Line 1: Line 1:
* Select language code. You should check it in Wikipedia or somewhere else.
{{Message|message=The best way to add a new language is to ask administrators for instructions or letting them to do it.}}
* '''NB''': add MediaWiki:Lang/lng page with the language code. For example, if your language has "zz" code, you are to create MediaWiki:Lang/zz with zz as contents.
 
* To create a version in your language for this wiki, you have to know your language code. Use a 2-letter [https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes ISO 639-1 code].
* '''NB''': Add <tt>MediaWiki:Lang/lng</tt> page with the language code. For example, if your language has "zz" code, you are to create <tt>MediaWiki:Lang/zz</tt> with <tt>zz</tt> as contents.
* Add this code into [[Template:Languages]] as it is done for existing languages.
* Add this code into [[Template:Languages]] as it is done for existing languages.
* Update all templates in [[:Category:i18n|i18n Category]] by adding corresponding strings for your language.
* Update all templates in [[:Category:i18n|i18n Category]] by adding corresponding strings for your language.
* Update Localization/* templates. Be careful when you change [[Template:Localization/PluginCard|Localization/PluginCard]] template, you have to select correct term for category for articles in your language.
* Update Localization/* templates. Be careful when you change [[Template:Localization/PluginCard|Localization/PluginCard]] template, you have to select correct term for category for articles in your language.
* Add translated strings to all disambiged articles.
* Add translated strings to all [[:Category:Disambiguation|disambiged articles]].


== Naming Collisions ==
== Naming collisions ==
It is possible that two different languages have pages with the same name. For example English "News" is translated "Novinky" both into Czech and Slovak. To resolve collision you need to make existing page disambiged and create separate pages for each language.
It is possible that two different languages have pages with the same name. For example in French they call Miranda packs "packs" as well. To resolve collision you need to make existing page disambiged and create separate pages for each language.


'''Example:'''
;Example
Page [[Novinky]] is a disambiged page leading to pages [[Novinky (cs)]] and [[Novinky (sk)]].
Page [[Packs]] is a disambiged page leading to pages [[Packs (en)]] and [[Packs (fr)]].


== See also ==
== See also ==

Revision as of 13:41, 28 June 2015

The best way to add a new language is to ask administrators for instructions or letting them to do it.
  • To create a version in your language for this wiki, you have to know your language code. Use a 2-letter ISO 639-1 code.
  • NB: Add MediaWiki:Lang/lng page with the language code. For example, if your language has "zz" code, you are to create MediaWiki:Lang/zz with zz as contents.
  • Add this code into Template:Languages as it is done for existing languages.
  • Update all templates in i18n Category by adding corresponding strings for your language.
  • Update Localization/* templates. Be careful when you change Localization/PluginCard template, you have to select correct term for category for articles in your language.
  • Add translated strings to all disambiged articles.

Naming collisions

It is possible that two different languages have pages with the same name. For example in French they call Miranda packs "packs" as well. To resolve collision you need to make existing page disambiged and create separate pages for each language.

Example

Page Packs is a disambiged page leading to pages Packs and Packs (fr).

See also