Commons:Translation possible/Learn more

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Shortcut: COM:TPLM català | čeština | Deutsch | English | español | Esperanto | فارسی | français | galego | עברית | hrvatski | italiano | 日本語 | 한국어 | македонски | polski | português | русский | Tiếng Việt | 中文(繁體) | 中文(简体) | +/−

How to translate an SVG file

[edit]

This page explains how to translate inside labels or captions in an SVG file. You are probably here because someone tagged an image with {{Translate}}. Please note that this template and its related pages is a one-man idea. If you have questions or comments about it, please use the template discussion page.

What is SVG?

[edit]

SVG is an image file format that consists of plain XML text. Therefore the text labels stored in it can be easily translated. For more information about SVG or XML, please use the links. There are Wikipedia articles in many languages.

How do I edit SVGs?

[edit]
An example of a simple SVG with translations in one file. Go to file's page and render this text in English, German, French, Spanish...

There are different ways to translate text in SVG:

  • Use a graphics editor such as Inkscape. For compatibility, save the file as "Plain SVG", not "Inkscape SVG", as the latter format may introduce errors, even though it complies with the SVG specification.
  • Edit the SVG file as a text file.

For editing image in any offline editor, first download the file you want to edit, open the file in the editor, translate the labels, and then save it. When finished, upload the file to Commons under a new name.

Text editing

[edit]

Note that instead of using a graphics editor, you can use any text editor capable of using UTF-8. Find text to translate by searching for <text> tags. In some cases this might be a path for more advanced users as text coordinates adjustments might be needed and some more advanced "garbage" might decrease readability of the SVG.

Preparing a file for translation

[edit]

Using real text

[edit]
Main gallery: Template:Path text SVG.

Only real text, in the form of the SVG <text> element, can be translated. Do not use paths in place of text.

Anchoring the text correctly

[edit]

To make sure text placement "just work" in the translated versions, you should properly use the anchoring functionality of the SVG format and your editor. In most editors (including Inkscape), the function is decided by the typographic alignment option. Anchoring decides how the position of the text is specified. Anchoring to the center means the coordinates specified is the center of the text, and is used in most editors for centering.

By saying "properly use", we mean that the way you anchor it matches the actual design intentions. For example, to center some text on a pyramid, you use the centering anchor while putting the anchor point itself at the middle of the shape. To position a label for something on its right, use the "end" (right-hand-side) anchor. The "align and distribute" option in Inkscape DOES NOT change your anchoring options; it only moves the elements around.

(Yes, the "end" anchor is only on the right for left-to-right languages. A translation tool should probably invert it for RTL languages.)

Using numbers instead of labels

[edit]
Image:Robal.png. An example of a image with few labels.

On images with few labels, an alternative is to have only one file with numeric labels in it and a table below, with different translations, and there is thus a single image that can be used for all languages. Image:Robal.png is a good example.

If you think this image will be better with numbers instead of translated text, you can change {{Translate}} template to {{Convert to international}} or make numbers yourself.

For instance, Image:ISS configuration sep-2006 en.svg has English labels, and a version with numeric labels Image:ISS configuration sep-2006 numbers.svg was created by replacing the labels in the English version. But it's still not fully internationalized, because title and date are still written in the image in English.

How to place new language version in Commons

[edit]

When creating a translated version of an SVG file, it should be saved using the filename of the original file with an IETF langtag suffix. See Commons:File naming. For example, File:Gibraltar map-en.svg is the English version of File:Gibraltar map.svg.

For linking different versions of file one to another, use "other versions" templates like all in Category:Other_versions_templates. Copy one of them and use in your image.

Using the template creates a gallery of the different language versions:

[edit]
Disputed isthmus and land

Also the template {{Derived from}} will be useful to display link to original version of your localized image.

Multiple translations within one SVG file

[edit]
Shortcut
An example of a simple SVG with translations in one file. See the description page for details
Similar example with arrows

You can place multiple translations into one SVG file using the SVG <switch> element. The resulting multilingual file has the advantage of sharing graphics; if the graphics are updated, then all the languages get the updated graphics. Compare to having several translated files; an update to one of the files does not propagate to the other language versions.

However, not all graphics editors can edit the text contained in the switch element. In such cases, a graphics editor may still be used to edit the text positions and sizes (such as in Inkscape), and the SVG Translate tool at Commons can be used to add translations, and most separate text editors can be used to make changes to the texts throughout the multiple languages. Loading an SVG file with switch translations into a graphics editor and then saving it may remove all the translations. Please note that currently multi-language translations in SVG files larger than 5MB do not render properly due to a bug.

It is advisable to give an extra margin for text contained in images with switch elements, in order to allow for current or future languages that need more letters.

Coding

[edit]

When you have a <switch> element, its children (sub-elements) represent possible choices. The children of the switch should have a systemLanguage attribute that specifies the language(s).[1] SVG sequentially looks at each child; if there is a systemLanguage attribute and it does not match, SVG moves on to the next child. If the systemLanguage attribute matches or is not present, then SVG renders that child and does not look further. Omitting the systemLanguage attribute from the last child will implement a default rendering.

Note: The order is important! All children following the child with the omitted systemLanguage are ignored and have no effect!

<switch transform="translate(100,200)">
  <text systemLanguage="en">Population pyramid of Russia (2010)</text>
  <text systemLanguage="de">Alterspyramide von Russland (2010)</text>
  <text systemLanguage="ru">Половозрастная диаграмма России (2010)</text>
  <text>Population pyramid of Russia (2010)</text>
</switch>

Even if the default rendering is English, it is good practice to place an explicit systemLanguage="en" with the same text. The language matching rules can give unexpected behavior when the file is opened in a browser configured for multiple languages. If the languages do not follow the same sequence in each switch, then a browser may display a mix of languages. In addition, the language matching rules will change in SVG 2.0.

You can also have a systemLanguage attribute on an element that is not a child of a switch element. In this case the element will only be rendered if the language matches. Otherwise the element in question will not be displayed.

Currently, only a few graphical editors support language switches in SVG, so you may need to edit the SVG file with a text editor. The SVG Translate may be used if the SVG file follows specific conventions.

The different text translations will have different lengths, so the text anchor point should be chosen carefully. The text-anchor attribute can be set to start (left justified in most languages), middle (centered), or end (right justified). The text elements default to x="0" and y="0", so the switch element can set the text anchor point with transform="translate(100,200)".

When rendering a multi-lingual SVG image on a MediaWiki page, the language to use can be specified using syntax like [[File:SystemLanguage.svg|lang=de]]. The attribute "lang" is optional; if it is missing, MediaWiki will attempt to use the wiki's default language or fallback to English ("en").[2]

Note: If a switch element has an English-language clause (systemLanguage="en") and a default language clause (no systemLanguage attribute), then MediaWiki will display the English-language clause.

Setting up multiple translations within one SVG file with Inkscape

[edit]

Inkscape does not support the addition of language switches, but they are recognized as a "Conditional Group". Editing with text editor is required. To start using the switch element in Inkscape, the following steps are:

  1. Always, in a new drawing, you need to add the two tags of <switch>...</switch>. In a new drawing, or in a previous localized drawing, you will have to add the items (usually text to localize) between these two tags and with systemLanguage assigned.
  2. In drawings that use labels and arrows, it can often happen that (depending on the language) the labels and arrows position is not the most appropriate. You can correct it, after the previous step, directly with Inkscape. But if you need to change the text or arrows of a language that is not what Inkscape has configured, you must first change the Inkscape interface. To change the language of the Inkscape interface: from the menu bar, select "Edit|Preferences..."; then in the opened window, in the second group ("Interface") change the language. You can look at the code from the last example, above (SystemLanguageArrows.svg). Note: In the examples, the ID names of the objects have been changed in order to be followed more easily.
  3. For the previous changes, you must be careful about the changes you make, otherwise Inkscape will not show what you want. If this is the first time you do it, first try changing the examples above. Sometimes the Inkscape XML editor ("Edit|XML Editor...") can be useful for you to find an error in your changes.

Viewing

[edit]

Most browsers support viewing SVG files with switch elements. The browser will display the languages according to the browser's default language settings. If one wants to view a different language, then change the language of the browser and restart it.

Another way of viewing the file is to upload it to File:Test.svg and select the desired language from the dropdown list.

See also

[edit]

Language codes

[edit]

SVG files use IETF language tags to specify languages. They are often referred to as BCP 47 language tags, but BCP 47 is the combination of IETF RFC 5646 and RFC 4647. The Wikimedia Foundation uses language identifiers that usually match IETF langtags, but there are some differences. For example, the IETF language tag als is for Tosk Albanian, but Wikimedia uses that tag for Alemannisch (which IETF represents as gsw). Simple English is simple in Wikimedia but en-simple in IETF. Please be aware of the distinction and use IETF language tags (not MediaWiki language identifiers) in SVG files.

Click here to show a list of all WikiMedia language codes supported:
List of languages supported on Wikimedia Commons.
Code Language name (in English) Native language name
hak-hantHakka (Traditional Han script)客家語(繁體)
alsAlemannischAlemannisch
idIndonesianBahasa Indonesia
bdrWest Coast BajauBajau Sama
aseAmerican Sign LanguageAmerican sign language
smaSouthern Samiåarjelsaemien
smnInari Samianarâškielâ
gnGuaraniAvañe'ẽ
frpArpitanarpetan
nrSouth NdebeleisiNdebele seSewula
kncCentral KanuriYerwa Kanuri
nan-latn-pehoejiMinnan (Pe̍h-ōe-jī)Bân-lâm-gú (Pe̍h-ōe-jī)
isv-cyrlInterslavic (Cyrillic script)меджусловјанскы
hak-latnHak-kâ-ngî (Pha̍k-fa-sṳ)Hak-kâ-ngî (Pha̍k-fa-sṳ)
bjnBanjarBanjar
astAsturianasturianu
zh-min-nanMinnanBân-lâm-gú
luaLuba-Luluaciluba
angOld EnglishÆnglisc
msMalayBahasa Melayu
en-usAmerican EnglishAmerican English
absAmbonese Malaybahasa ambon
kgeKomeringKumoring
basBasaaBasaa
hak-hansHakka (Simplified Han script)客家语(简体)
azAzerbaijaniazərbaycanca
gorGorontaloBahasa Hulontalo
afAfrikaansAfrikaans
aceAcehneseAcèh
bkhBakakoBakoko
agqAghemAghem
atjAtikamekwAtikamekw
bkcBakaBaka
ayAymaraAymar aru
bfdBafutBafut
muiMusiBaso Palembang
isv-latnInterslavic (Latin script)medžuslovjansky
map-bmsBanyumasanBasa Banyumasan
tigTigreትግሬ
ccpChakma𑄌𑄋𑄴𑄟𑄳𑄦
baxBamunBamum
gswAlemannicAlemannisch
acfSaint Lucian CreoleKwéyòl Sent Lisi
nan-latn-tailoMinnan (Tâi-lô)Bân-lâm-gú (Tâi-lô)
akAkanAkan
bgcHaryanviहरियाणवी
ibaIbanJaku Iban
hkeHundekihunde
rupAromanianarmãneashti
bmBambarabamanankan
roa-rupAromanianarmãneashti
aaeArbëreshArbërisht
banBalineseBasa Bali
ksfBafiaBafia
bugBugineseBasa Ugi
nupNupeNupe
anAragonesearagonés
btmBatak MandailingBatak Mandailing
ibbIbibioibibio
en-gbBritish EnglishBritish English
jboLojbanla .lojban.
nyNyanjaChi-Chewa
se-noNorthern Sami (Norway)davvisámegiella (Norgga bealde)
brBretonbrezhoneg
pcmNigerian PidginNaijá
miMāoriMāori
isuIsuIsu
minMinangkabauMinangkabau
etuEjaghamEjagham
bbcBatak TobaBatak Toba
alnGheg AlbanianGegë
iloIlokoIlokano
euBasqueeuskara
lvLatvianlatviešu
rmfFinnish Kalokaalengo tšimb
kaiKarekareKarai-karai
bewBetawiBetawi
pamPampangaKapampangan
fatFantimfantse
nysNyungarNyunga
lldLadinLadin
guwGungungbe
hilHiligaynonIlonggo
gom-latnGoan Konkani (Latin script)Gõychi Konknni
gvManxGaelg
ladLadinoLadino
bbc-latnBatak Toba (Latin script)Batak Toba
cnhHakha-ChinHakha Chin
gcfGuadeloupean Creolekréyòl Gwadloup
bkmKomKom
nahNahuatlNāhuatl
ku-latnKurdish (Latin script)kurdî (latînî)
ikInupiaqIñupiatun
emlEmiliano-Romagnoloemiliàn e rumagnòl
lijLigurianLigure
kwCornishkernowek
dgaDagaareDagaare
etoEtonEton
rwKinyarwandaIkinyarwanda
bclCentral BikolBikol Central
coCorsicancorsu
madMadureseMadhurâ
kuKurdishkurdî
seNorthern Samidavvisámegiella
se-fiNorthern Sami (Finland)davvisámegiella (Suoma bealde)
barBavarianBoarisch
mnc-latnManchu (Latin script)manju gisun
extExtremaduranestremeñu
seiSeriCmique Itom
gaaGaGa
hrxHunsrikHunsrik
byvMedumbaMedumba
ewoEwondoEwondo
haHausaHausa
kjKuanyamaKwanyama
iaInterlinguainterlingua
krjKinaray-aKinaray-a
keaKabuverdianukabuverdianu
napNeapolitanNapulitano
niuNiueanNiuē
lmoLombardlombard
pdcPennsylvania GermanDeitsch
mcpMakaMaka
gagGagauzGagauz
muaMundangMundang
kriKrioKrio
fmpFe'Fe'Fe'fe
avkKotavaKotava
sjePite Samibidumsámegiella
duaDualaDuala
liLimburgishLimburgs
kiKikuyuGĩkũyũ
frrNorthern FrisianNordfriisk
dtpCentral DusunKadazandusun
arnMapuchemapudungun
chChamorroChamoru
nlaNgombalaNgombala
nmzNawdmnawdm
wlsWallisianFakaʻuvea
cebCebuanoCebuano
lemNomaandeNomaande
smsSkolt Saminuõrttsääʹmǩiõll
lfnLingua Franca NovaLingua Franca Nova
de-formalGerman (formal address)Deutsch (Sie-Form)
tumTumbukachiTumbuka
mhMarshalleseEbon
itItalianitaliano
srqSirionómbia cheë
mtMalteseMalti
fjFijianNa Vosa Vakaviti
oloLivvi-Karelianlivvinkarjala
htHaitian CreoleKreyòl ayisyen
pihNorfuk / PitkernNorfuk / Pitkern
fyWestern FrisianFrysk
hawHawaiianHawaiʻi
lgGandaLuganda
kgKongoKongo
cyWelshCymraeg
mgMalagasyMalagasy
swSwahiliKiswahili
igIgboIgbo
lzzLazLazuri
annOboloObolo
nvNavajoDiné bizaad
etEstonianeesti
cakKaqchikelKaqchikel
gcrGuianan Creolekriyòl gwiyannen
dagDagbanidagbanli
ffFulaFulfulde
laLatinLatina
lnsLamnso'Lamnso
naNauruDorerin Naoero
kbpKabiyeKabɩyɛ
hifFiji HindiFiji Hindi
lusMizoMizo ţawng
musMuscogeeMvskoke
mrhMaraMara
jutJutishjysk
zuZuluisiZulu
choChoctawChahta anumpa
vmwMakhuwaemakhuwa
livLivonianLīvõ kēļ
nnzNda'Nda'Nda'nda
eeEweeʋegbe
deGermanDeutsch
cbk-zamChavacanoChavacano de Zamboanga
uz-latnUzbek (Latin script)oʻzbekcha
nds-nlLow SaxonNedersaksies
niaNiasLi Niha
vmfMain-FranconianMainfränkisch
bbjGhomalaGhomála
ieInterlingueInterlingue
biBislamaBislama
uzUzbekoʻzbekcha / ўзбекча
mosMossimoore
mwlMirandeseMirandés
chnChinook Jargonchinuk wawa
es-419Latin American Spanishespañol de América Latina
csbKashubiankaszëbsczi
nl-informalDutch (informal address)Nederlands (informeel)
xhXhosaisiXhosa
yasNugunuNugunu
esSpanishespañol
hif-latnFiji Hindi (Latin script)Fiji Hindi
kusKusaalKʋsaal
daDanishdansk
gdScottish GaelicGàidhlig
bqzMka'aMka'a
ngeNgémbaNgémba
efiEfikEfịk
eglEmilianEmiliàn
iglIgalaIgala
yrlNheengatuNhẽẽgatú
isIcelandicíslenska
dsbLower Sorbiandolnoserbski
gaIrishGaeilge
caCatalancatalà
glGaliciangalego
klKalaallisutkalaallisut
nlDutchNederlands
ltLithuanianlietuvių
ltgLatgalianlatgaļu
se-seNorthern Sami (Sweden)davvisámegiella (Ruoŧa bealde)
gpeGhanaian PidginGhanaian Pidgin
novNovialNovial
nbNorwegian Bokmålnorsk bokmål
lbLuxembourgishLëtzebuergesch
csCzechčeština
bsBosnianbosanski
frFrenchfrançais
hrCroatianhrvatski
krKanurikanuri
frcCajun Frenchfrançais cadien
kiuKirmanjkiKırmancki
nrmNormanNouormand
smSamoanGagana Samoa
cpsCapiznonCapiceño
gurFrafrafarefare
enEnglishEnglish
lnLingalalingála
brhBrahuiBráhuí
jvJavaneseJawa
nmgKwasioKwasio
hu-formalHungarian (formal address)magyar (formal)
crCreeNēhiyawēwin / ᓀᐦᐃᔭᐍᐏᐣ
ike-latnEastern Canadian (Latin script)inuktitut
nnNorwegian Nynorsknorsk nynorsk
nnhNgiemboonNgiemboon
snShonachiShona
rnRundiikirundi
fitTornedalen Finnishmeänkieli
hsbUpper Sorbianhornjoserbsce
en-caCanadian EnglishCanadian English
hoHiri MotuHiri Motu
eoEsperantoEsperanto
foFaroeseføroyskt
ioIdoIdo
fonFonfɔ̀ngbè
btoIriga BicolanoIriga Bicolano
sesKoyraboro SenniKoyraboro Senni
kerKeraKera
noNorwegiannorsk
toTonganlea faka-Tonga
gyaGbayaGbaya
krlKareliankarjal
fkvKvenskkvääni
es-formalSpanish (formal address)español (formal)
furFriulianfurlan
huHungarianmagyar
smjLule Samijulevsámegiella
ocOccitanoccitan
tokToki Ponatoki pona
nsoNorthern SothoSesotho sa Leboa
kk-cnKazakh (China)قازاقشا (جۇنگو)
boTibetanབོད་ཡིག
roa-taraTarantinotarandíne
pntPonticΠοντιακά
rmcCarpathian Romaniromaňi čhib
soSomaliSoomaaliga
tsTsongaXitsonga
moMoldovanмолдовеняскэ
tpiTok PisinTok Pisin
vepVepsvepsän kel’
be-taraskBelarusian (Taraškievica orthography)беларуская (тарашкевіца)
loLaoລາວ
koKorean한국어
luzSouthern Luriلئری دوٙمینی
wesPidgin (Cameroon)Pidgin (Cameroon)
aryMoroccan Arabicالدارجة
altSouthern Altaiалтай тил
krcKarachay-Balkarкъарачай-малкъар
anpAngikaअंगिका
lrcNorthern Luriلۊری شومالی
yiYiddishייִדיש
shy-latnShawiya (Latin script)tacawit
arzEgyptian Arabicمصرى
inhIngushгӀалгӀай
crh-latnCrimean Tatar (Latin script)qırımtatarca (Latin)
sqAlbanianshqip
tnTswanaSetswana
mnMongolianмонгол
ndsLow GermanPlattdüütsch
arArabicالعربية
knKannadaಕನ್ನಡ
crhCrimean Tatarqırımtatarca
truTuroyoṪuroyo
srSerbianсрпски / srpski
nqoN’Koߒߞߏ
kk-trKazakh (Turkey)qazaqşa (Türkïya)
amAmharicአማርኛ
mhrEastern Mariолык марий
gotGothic𐌲𐌿𐍄𐌹𐍃𐌺
gom-devaGoan Konkani (Devanagari script)गोंयची कोंकणी
qugChimborazo Highland QuichuaRuna shimi
kk-latnKazakh (Latin script)qazaqşa (latın)
rmRomanshrumantsch
orOdiaଓଡ଼ିଆ
omOromoOromoo
nodNorthern Thaiᨣᩤᩴᨾᩮᩬᩥᨦ
kmKhmerភាសាខ្មែរ
arcAramaicܐܪܡܝܐ
mrMarathiमराठी
mniManipuriꯃꯤꯇꯩ ꯂꯣꯟ
mncManchumanju gisun
hsnXiang湘語
apcLevantine Arabicشامي
crh-roDobrujan Tatartatarşa
urUrduاردو
yoYorubaYorùbá
voVolapükVolapük
tyTahitianreo tahiti
pnbWestern Punjabiپنجابی
newNewariनेपाल भाषा
slSlovenianslovenščina
tlTagalogTagalog
zh-twChinese (Taiwan)中文(臺灣)
chrCherokeeᏣᎳᎩ
zh-sgChinese (Singapore)中文(新加坡)
plPolishpolski
mlMalayalamമലയാളം
stySiberian Tatarсебертатар
ssSwatiSiSwati
votVoticVaďďa
zh-myChinese (Malaysia)中文(马来西亚)
zh-moChinese (Macau)中文(澳門)
psPashtoپښتو
osOsseticирон
elGreekΕλληνικά
ku-arabKurdish (Arabic script)کوردی (عەرەبی)
ksKashmiriकॉशुर / کٲشُر
kjpEastern Pwoဖၠုံလိက်
zh-hansSimplified Chinese中文(简体)
dtyDoteliडोटेली
warWarayWinaray
zghStandard Moroccan Tamazightⵜⴰⵎⴰⵣⵉⵖⵜ ⵜⴰⵏⴰⵡⴰⵢⵜ
shnShanၽႃႇသႃႇတႆး
sh-cyrlSerbo-Croatian (Cyrillic script)српскохрватски (ћирилица)
bgnWestern Balochiروچ کپتین بلوچی
zeaZeelandicZeêuws
yue-hansCantonese (Simplified Han script)粵语(简体)
sdSindhiسنڌي
tt-latnTatar (Latin script)tatarça
skr-arabSaraiki (Arabic script)سرائیکی
ybbYembaYemba
yue-hantCantonese (Traditional Han script)粵語(繁體)
xsySaisiyatsaisiyat
xmfMingrelianმარგალური
nan-haniMinnan (Han script)閩南語
tzmCentral Atlas Tamazightⵜⴰⵎⴰⵣⵉⵖⵜ
wuu-hantWu (Traditional Han script)吳語(正體)
wuuWu吴语
tg-cyrlTajik (Cyrillic script)тоҷикӣ
woWolofWolof
ruRussianрусский
zh-cnChinese (China)中文(中国大陆)
teTeluguతెలుగు
ryuOkinawan沖縄口
wuu-hansWu (Simplified Han script)吴语(简体)
neNepaliनेपाली
otaOttoman Turkishلسان عثمانى
adyAdygheадыгабзэ
bhoBhojpuriभोजपुरी
viVietnameseTiếng Việt
vecVenetianvèneto
veVendaTshivenda
beBelarusianбеларуская
ceChechenнохчийн
uz-cyrlUzbek (Cyrillic script)ўзбекча
ukUkrainianукраїнська
ug-latnUyghur (Latin script)Uyghurche
ug-arabUyghur (Arabic script)ئۇيغۇرچە
dzDzongkhaཇོང་ཁ
udmUdmurtудмурт
tyvTuvinianтыва дыл
nyoNyoroOrunyoro
hzHereroOtsiherero
cpx-latnPuxian (Latin script)Pó-sing-gṳ̂ (Báⁿ-uā-ci̍)
mnwMonဘာသာမန်
twTwiTwi
tvuTunenTunen
ttjTooroOrutooro
tt-cyrlTatar (Cyrillic script)татарча
ckbCentral Kurdishکوردی
trvTarokoSeediq
rutRutulмыхаӀбишды
pt-brBrazilian Portugueseportuguês do Brasil
vutVuteVute
lozLoziSilozi
trTurkishTürkçe
shiTachelhitTaclḥit
thThaiไทย
sdcSassarese SardinianSassaresu
tcyTuluತುಳು
myBurmeseမြန်မာဘာသာ
yueCantonese粵語
zaZhuangVahcuengh
maiMaithiliमैथिली
ugUyghurئۇيغۇرچە / Uyghurche
hakHakka Chinese客家語 / Hak-kâ-ngî
sgSangoSängö
tgTajikтоҷикӣ
ojbNorthwestern OjibwaOjibwemowin
de-chSwiss High GermanSchweizer Hochdeutsch
ngNdongaOshiwambo
bgBulgarianбългарски
svSwedishsvenska
hyArmenianհայերեն
suSundaneseSunda
bpyBishnupriyaবিষ্ণুপ্রিয়া মণিপুরী
ady-cyrlAdyghe (Cyrillic script)адыгабзэ
kshColognianRipoarisch
tetTetumtetun
awaAwadhiअवधी
ko-kpKorean (North Korea)조선말
sh-latnSerbo-Croatian (Latin script)srpskohrvatski (latinica)
sroCampidanese Sardiniansardu campidanesu
szySakizayaSakizaya
tlyTalyshtolışi
srnSranan TongoSranantongo
arqAlgerian Arabicجازايرية
sr-elSerbian (Latin script)srpski (latinica)
asAssameseঅসমীয়া
shSerbo-Croatiansrpskohrvatski / српскохрватски
pwnPaiwanpinayuanan
sdhSouthern Kurdishکوردی خوارگ
sr-ecSerbian (Cyrillic script)српски (ћирилица)
bat-smgSamogitianžemaitėška
vlsWest FlemishWest-Vlams
kumKumykкъумукъ
shi-tfngTachelhit (Tifinagh script)ⵜⴰⵛⵍⵃⵉⵜ
hnoNorthern Hindkoہندکو
bhBhojpuriभोजपुरी
tg-latnTajik (Latin script)tojikī
skrSaraikiسرائیکی
gomGoan Konkaniगोंयची कोंकणी / Gõychi Konknni
hywWestern ArmenianԱրեւմտահայերէն
pflPalatine GermanPälzisch
fiFinnishsuomi
simpleSimple EnglishSimple English
mnc-mongManchu (Mongolian script)ᠮᠠᠨᠵᡠ ᡤᡳᠰᡠᠨ
shyShawiyatacawit
hiHindiहिन्दी
siSinhalaසිංහල
ks-devaKashmiri (Devanagari script)कॉशुर
tiTigrinyaትግርኛ
zhChinese中文
zh-classicalLiterary Chinese文言
kaGeorgianქართული
koiKomi-Permyakперем коми
lzhLiterary Chinese文言
be-x-oldBelarusian (Taraškievica orthography)беларуская (тарашкевіца)
rueRusynрусиньскый
gan-hantGan (Traditional Han script)贛語(繁體)
paPunjabiਪੰਜਾਬੀ
myvErzyaэрзянь
amiAmisPangcah
sgsSamogitianžemaitėška
gan-hansGan (Simplified Han script)赣语(简体)
sylSylhetiꠍꠤꠟꠐꠤ
mkMacedonianмакедонски
kkKazakhқазақша
mdfMokshaмокшень
rskPannonian Rusynруски
tkTurkmenTürkmençe
pmsPiedmontesePiemontèis
kswS'gaw Karenစှီၤ
ban-baliBalinese (Balinese script)ᬩᬲᬩᬮᬶ
skSlovakslovenčina
roRomanianromână
kcgTyapTyap
fiu-vrovõrovõro
szlSilesianślůnski
bnBanglaবাংলা
kk-kzKazakh (Kazakhstan)қазақша (Қазақстан)
zh-hkChinese (Hong Kong)中文(香港)
ruq-latnMegleno-Romanian (Latin script)Vlăheşte
ruq-cyrlMegleno-Romanian (Cyrillic script)Влахесте
sahYakutсаха тыла
rgnRomagnolRumagnôl
kabKabyleTaqbaylit
rmyVlax Romaniromani čhib
zh-hantTraditional Chinese中文(繁體)
piPaliपालि
kbdKabardianадыгэбзэ
lezLezghianлезги
rifRiffianTarifit
diqZazakiZazaki
qucKʼicheʼQatzijob\ʼal
lbeLakлакку
zgh-latnStandard Moroccan Tamazight (Latin script)tamaziɣt tanawayt
aeb-latnTunisian Arabic (Latin script)Tûnsî
prgPrussianprūsiskan
kaaKara-KalpakQaraqalpaqsha
cvChuvashчӑвашла
dvDivehiދިވެހިބަސް
ks-arabKashmiri (Arabic script)کٲشُر
satSantaliᱥᱟᱱᱛᱟᱲᱤ
jamJamaican Creole EnglishPatois
grcAncient GreekἈρχαία ἑλληνικὴ
kk-cyrlKazakh (Cyrillic script)қазақша (кирил)
shi-latnTachelhit (Latin script)Taclḥit
kvKomiкоми
ganGan贛語
nanMinnan閩南語 / Bân-lâm-gú
scoScotsScots
ike-cansEastern Canadian (Aboriginal syllabics)ᐃᓄᒃᑎᑐᑦ
dinDinkaThuɔŋjäŋ
bqiBakhtiariبختیاری
pdtPlautdietschPlautdietsch
khwKhowarکھوار
kjhKhakasхакас
pap-awPapiamento (Aruba)Papiamento
papPapiamentoPapiamentu
kk-arabKazakh (Arabic script)قازاقشا (تٴوتە)
cdoMindong閩東語 / Mìng-dĕ̤ng-ngṳ̄
avAvaricавар
chyCheyenneTsetsêhestâhese
aeb-arabTunisian Arabic (Arabic script)تونسي
acmIraqi Arabicعراقي
nynNyankolerunyankore
kbd-cyrlKabardian (Cyrillic script)адыгэбзэ
bxrRussia Buriatбуряад
iuInuktitutᐃᓄᒃᑎᑐᑦ / inuktitut
tddTai Nueaᥖᥭᥰ ᥖᥬᥲ ᥑᥨᥒᥰ
guGujaratiગુજરાતી
pcdPicardPicard
aebTunisian Arabicتونسي / Tûnsî
crh-cyrlCrimean Tatar (Cyrillic script)къырымтатарджа (Кирилл)
lkiLakiلەکی
azbSouth Azerbaijaniتۆرکجه
quQuechuaRuna Simi
wyaWyandotWyandot
bccSouthern Balochiجهلسری بلوچی
rkiArakaneseရခိုင်
stqSaterland FrisianSeeltersk
magMagahiमगही
pagPangasinanPangasinan
gucWayuuwayuunaiki
nitSoutheastern Kolamiకొలామి
de-atAustrian GermanÖsterreichisches Deutsch
mcnMassavùn màsànà
mznMazanderaniمازِرونی
zh-yueCantonese粵語
stSouthern SothoSesotho
ttTatarтатарча / tatarça
nan-hantMinnan (Traditional Han script)閩南語(傳統漢字)
tly-cyrlTalysh (Cyrillic script)толыши
tayTayalTayal
heHebrewעברית
scnSiciliansicilianu
kyKyrgyzкыргызча
sjdKildin Samiкӣллт са̄мь кӣлл
cpx-hansPuxian (Simplified Han script)莆仙语(简体)
osa-latnOsage (Latin script)Wažáže íe
taTamilதமிழ்
waWalloonwalon
ruqMegleno-RomanianVlăheşte
saSanskritसंस्कृतम्
ms-arabMalay (Jawi script)بهاس ملايو
mrjWestern Mariкырык мары
cpxPuxian莆仙語 / Pó-sing-gṳ̂
jaJapanese日本語
iiSichuan Yiꆇꉙ
faPersianفارسی
ptPortugueseportuguês
aaAfarQafár af
baBashkirбашҡортса
bagTukiTuki
walWolayttawolaytta
xalKalmykхальмг
yavYangbenYangben
gldNanaiна̄ни
bciBaouléwawle
sliLower SilesianSchläsch
glkGilakiگیلکی
abAbkhazianаԥсшәа
blkPa'Oပအိုဝ်ႏဘာႏသာႏ
rwrMarwari (India)मारवाड़ी
cuChurch Slavicсловѣньскъ / ⰔⰎⰑⰂⰡⰐⰠⰔⰍⰟ
cpx-hantPuxian (Traditional Han script)莆仙語(繁體)
yatYambetaYambeta
sjuUme Samiubmejesámiengiälla
scSardiniansardu
nogNogaiногайша
vroVõrovõro

There are currently 538 supported languages (plus the language tag zxx denoting the absence of any linguistic content).

Note
SVG systemLanguage codes must be valid BCP 47 language tags (code differences).

Support this template

[edit]

You don't have to translate this part; it should be enough if this information is here in English. Users who do not yet have a version in their language will find it here, I guess.

You can support this template by translating this help page into your language and saving it as a sub-page. The template consists of three parts. For example, for the German template they are:

The template page should contain the template itself and the quick info text translated from the English template.

The help page (this page) in your language should be saved under the subject that you would use in your language, like "Learn more" (which I selected for English).

The language link template is the same for every version of this template. It contains all the links to existing language versions. Please add your language there and there, if you have created a new translation.

Thank you for your support!

Notes

[edit]
  1. You can specify multiple languages separated by a comma, in case multiple languages happen to express something the same way. See MDN page for systemLanguage.
  2. Starting in November 2018, MediaWiki tries to use the wiki's language rather than always use "en" when the file transclusion does not specify a lang parameter. Consequently, the German Wikipedia (https://de.wikipedia.org) will behave as if |lang=de were specified when systemLanguage="de" attributes are present in the SVG file.