Help:i18n - ArchWiki (original) (raw)

This article serves as a comprehensive guideline for ArchWiki internationalization and localization.

Guidelines

Page titles

Non-English page titles must be of the form "Title in English (Language)" where "Language" is the localized spelling of said language. Note the space between the title and the language tag. For example: Installation guide (Nederlands). English titles should not include a language tag.

Also note that in case of sub-pages, the language tag shall be appended to each segment in the title path, so "Title (Language)/Sub-page" is wrong, while "Title (Language)/Sub-page (Language)" is correct. For example: systemd (Русский)/User (Русский). Using language tags on each segment enables proper operation of the superpage links, and in particular the last tag is added automatically in interlanguage links, plus it makes it more practical and safe for bots to detect the language of a page. "Title/Sub-page (Language)" was the previously accepted format, which is now obsolete but possibly still in use by some articles.

The root categories for every language are the only exception to this rule, as they must not repeat the language name in a suffix.

See <#Languages> for a list of languages and expected localized spellings.

Rationale:

Localized redirects

Localized titles can and should be created, but must redirect to the English-named article as described above. Redirect titles need not include language tags. For example: Guía oficial de Instalación redirects to Installation guide (Español). Note that this is however not possible for Category pages, since categorizing a page under a redirect will not list the page under the target category.

Rationale:

If an article exists in more than one language, please add interlanguage links at the top of each translation:

[[de:Title]] [[en:Title]] [[es:Title]]

See <#Languages> for a list of the available language tags. See Help:Style#Interlanguage links for usage guidelines.

Rationale:

In order to obtain a list of the articles with interlanguage links pointing to a specific title (language backlinks), use:

https://wiki.archlinux.org/api.php?action=query&list=langbacklinks&lbllimit=500&lblprop=lltitle&lbllang=en&lbltitle=Main%20Page

This example looks for ([[en:Main Page]]), but for other links it is enough to change the value of lbllang and lbltitle.

If you want to obtain a list of the articles using interlanguage links of a specific language, just omit the lbltitle key:

https://wiki.archlinux.org/api.php?action=query&list=langbacklinks&lbllimit=500&lblprop=lltitle&lbllang=de

This example uses German (de), but for the other languages it is enough to change the value of lbllang.

Note This query may not find all redirects using interlanguage links (regulated by Help:Style#Redirect pages): a search like this should work instead (if you get zero results it means that everything is fine).

Note that API queries are always limited, so if a language has more than 500 backlinks it will be necessary to continue the search adding the lblcontinue attribute that appears at the bottom of the list to the query string.

Languages

The following table lists all languages encountered on the wiki along with related links.

English name Localized name Subtag Root category External wiki
Arabic العربية ar Category:العربية
Bangla বাংলা not configured Category:বাংলা
Bosnian Bosanski bs Category:Bosanski
Bulgarian Български bg Category:Български
Cantonese 粵語 not configured Category:粵語
Catalan Català ca Category:Català
Chinese (Classical) 文言文 not configured Category:文言文
Chinese (Simplified) 简体中文 zh-hans https://wiki.archlinuxcn.org
Chinese (Traditional) 正體中文 zh-hant Category:正體中文
Croatian Hrvatski hr Category:Hrvatski
Czech Čeština cs Category:Čeština
Danish Dansk da Category:Dansk
Dutch Nederlands nl Category:Nederlands
English English en Category:English
Esperanto Esperanto not configured Category:Esperanto
Finnish Suomi fi Category:Suomi
French Français fr Category:Français
German Deutsch de https://wiki.archlinux.de/
Greek Ελληνικά el Category:Ελληνικά
Hebrew עברית he Category:עברית
Hindi हिन्दी not configured Category:हिन्दी
Hungarian Magyar hu Category:Magyar
Indonesian Bahasa Indonesia id Category:Bahasa Indonesia
Italian Italiano it Category:Italiano
Japanese 日本語 ja https://wiki.archlinux.jp/
Korean 한국어 ko Category:한국어
Latvian Latviešu lv Category:Latviešu
Lithuanian Lietuvių lt Category:Lietuvių
Norwegian (Bokmål) Norsk Bokmål not configured Category:Norsk Bokmål
Persian فارسی fa Category:فارسی
Polish Polski pl Category:Polski
Portuguese Português pt Category:Português
Romanian Română not configured Category:Română
Russian Русский ru Category:Русский
Serbian Српски (Srpski) sr Category:Српски
Slovak Slovenčina sk Category:Slovenčina
Slovenian Slovenščina not configured Category:Slovenščina
Spanish Español es Category:Español
Swedish Svenska sv Category:Svenska
Thai ไทย th Category:ไทย
Turkish Türkçe tr Category:Türkçe
Ukrainian Українська uk Category:Українська
Vietnamese Tiếng Việt not configured https://archlinuxvn.tuxfamily.org/

Subtags are treated case-insensitively by the MediaWiki backend. By convention, the interlanguage links on ArchWiki should use the lowercase form of the subtag. For information regarding subtags, please see:

If you want interlanguage links to be enabled for a new language hosted in wiki.archlinux.org, please open a request in Help talk:I18n. Note that a minimum number of translated articles will be required by the administrators for the request to be fulfilled. The following checklist summarizes the steps needed to add a new language:

  1. Notify about the new language in Help talk:I18n. Make sure to include the information needed to fill out the <#Languages> table.
  2. Create a base language category under Category:Languages and add the translated articles to it or a subcategory.
  3. Update the <#Languages> table with every information but the subtag, as it is not added by an administrator yet.
  4. Translate at least Main page, Arch Linux, Installation guide and General recommendations.
  5. Initialize a translation of Table of contents: it will then be kept up to date with a bot, see below.
  6. An administrator should consider the request and add the language prefix to Special:Interwiki and update AbuseFilter/4 and AbuseFilter/13.
  7. Anyone can then update the <#Languages> table with the subtag accordingly.
  8. Developers should update the respective ArchWiki:Bots to support the new language. Opening a pull request (see a previous one) will help with that process.

If you want interlanguage links to be set for a new or existing language that has set up a separate wiki, please open a request in Help talk:I18n: the interlanguage links will be set as soon as possible!

Moving local languages to external wikis

Moving local languages to their own wikis is a very welcome and encouraged thing, which will get all the assistance that is needed. There are two possible procedures: