Commons:Translation possible/Learn more
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
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?
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 powerful are SVGs
- SVGs produce nice images you can zoom in, with a high level of precision and without losing definition:
- SVGs can hold different text translations within the same file; the following images use the same image file, but the text depends on the context. The first image uses the language of the page dynamically. The second image is forced to display its text in English (of course, there is no difference with the first image if the page is already in English). The remaining images additionally show examples in French and German, respectively (using the same image file):
How do I edit SVGs?
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
Note that instead of using a graphics editor, you can use any (plain text) editor capable to store the text in UTF-8 format. 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
Using real text
Only real text, in the form of the SVG <text> element, can be translated. Do not use paths instead of text when creating or generating a SVG (with some justified exceptions).
Anchoring the text correctly
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.)
Multiple translations within one SVG file (preferred method)



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 multi-language translations in SVG files larger than 5MB may 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
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 plain text editor. A good practise is to place the switches in the defs section. 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)".
CSS can be added to globally scale text for verbose or concise translations,[2] such as:[3]
<style type="text/css">
text[systemLanguage="es" i] { font-size: 80%; }
text[systemLanguage="zh" i] { font-size:125%; }
</style>
Setting up multiple translations within one SVG file with Inkscape
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:
- 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 withsystemLanguageassigned. - 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.
- 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
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.
Tool
- https://svgtranslate.toolforge.org
- Hint: The tool is reported as buggy. When in doubt, it is preferable to edit svg files with a plain text editor.
Use
To use the file in non-English wiki project, you can use it as usual, but with the |lang= parameter
You may also use the same method for gallery
- "lang=en"
- "lang=id"
- "lang=zh-hans"
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").[4]
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.
Maps
Multiple translations with symbols

It becomes more complex, if you have not only a label but additionally one ore more symbols identifying an object.
You can see in an example on the right how to do this in a clear, concise and comprehensible manner:
Define the symbols in the <defs> section, insert them into the map using a <use> statement, and then place the label (in multiple languages) relative (sic!) to the symbol with a second <use> statement.
Multiple translations with a mix of ltr and rtl languages


It looks more authentic when the icon is placed before the text within a legend. This is a challenge, if you have to handle a mixture of left-to-right and right-to-left languages. It is a matter of using an additional <switch> construction to shift the icons to either the left or right position. This results in nested <switch> statements that are quite complex.
You can see in an example on the right how to do this in a clear, concise and comprehensible manner:
Define the symbols and the switches with the translations of the labels in the <defs> section. Then group each of them in a <g> element. Then insert them both into the legends section in another <switch> construction. Do this twice, once for 'rtl' languages, then for all others ('ltr' languages). Each time with an adjusted y="4711" parameter, so that the icons are placed on the right-hand side of the legend one time and on the left-hand side the other time.
- See also a more complex example.
- See also Category Multilingual SVG maps
How to place new monolingual version in Commons
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:
- català
- Deutsch
- English
- English
- English
- español
- français
- italiano
- magyar
- Bahasa Melayu
- polski
- македонски
- українська
- עברית
- اردو
- Disputed isthmus and land
- English
- español
- español
- español (claimed isthmus)
- español (non Utrech territories)
- español (reclaimed land)
- galego
Also the template {{Derived from}} will be useful to display link to original version of your localized image.
Language codes
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.
| Code | Language name (in English) | Native language name |
|---|---|---|
| isv | medžuslovjansky | medžuslovjansky |
| abr | Abron | Abron |
| de | German | Deutsch |
| bas | Basaa | Basaa |
| dsb | Lower Sorbian | dolnoserbski |
| sas | Sasak | Sasak |
| af | Afrikaans | Afrikaans |
| abs | Ambonese Malay | bahasa ambon |
| efi | Efik | Efịk |
| als | Alemannic | Alemannisch |
| bcl | Central Bikol | Bikol Central |
| ms | Malay | Bahasa Melayu |
| co | Corsican | corsu |
| se-se | Northern Sami (Sweden) | davvisámegiella (Ruoŧa bealde) |
| bs | Bosnian | bosanski |
| rup | Aromanian | armãneashti |
| frp | Arpitan | arpetan |
| ast | Asturian | asturianu |
| ca | Catalan | català |
| bax | Bamun | Bamum |
| roa-rup | Aromanian | armãneashti |
| bkc | Baka | Baka |
| brh | Brahui | Bráhuí |
| dag | Dagbani | dagbanli |
| smn | Inari Sami | anarâškielâ |
| en-us | American English | American English |
| mh | Marshallese | Ebon |
| kaj | Jju | Jju |
| na | Nauru | Dorerin Naoero |
| se | Northern Sami | davvisámegiella |
| se-fi | Northern Sami (Finland) | davvisámegiella (Suoma bealde) |
| bkh | Bakoko | Bakoko |
| tum | Tumbuka | chiTumbuka |
| sei | Seri | Cmique Itom |
| ksf | Bafia | Bafia |
| hoc-latn | Ho (Latin script) | Ho |
| sma | Southern Sami | åarjelsaemien |
| bm | Bambara | bamanankan |
| en-ca | Canadian English | Canadian English |
| lkt | Lakota | Lakȟótiyapi |
| cs | Czech | čeština |
| mui | Musi | Baso Palembang |
| de-formal | German (formal address) | Deutsch (Sie-Form) |
| ceb | Cebuano | Cebuano |
| sje | Pite Sami | bidumsámegiella |
| ay | Aymara | Aymar aru |
| nan-latn-tailo | Minnan (Tâi-lô) | Bân-lâm-gí (Tâi-lô) |
| agq | Aghem | Aghem |
| ak | Akan | Akan |
| et | Estonian | eesti |
| ch | Chamorro | Chamoru |
| cy | Welsh | Cymraeg |
| aig | Antiguan and Barbudan Creole English | Aanteegan an' Baabyuudan |
| bdr | West Coast Bajau | Bajau Sama |
| ny | Nyanja | Chi-Chewa |
| atj | Atikamekw | Atikamekw |
| etu | Ejagham | Ejagham |
| btm | Batak Mandailing | Batak Mandailing |
| da | Danish | dansk |
| gor | Gorontalo | Bahasa Hulontalo |
| en-gb | British English | British English |
| id | Indonesian | Bahasa Indonesia |
| bbc-latn | Batak Toba (Latin script) | Batak Toba |
| ace | Acehnese | Acèh |
| az | Azerbaijani | azərbaycanca |
| bi | Bislama | Bislama |
| se-no | Northern Sami (Norway) | davvisámegiella (Norgga bealde) |
| cps | Capiznon | Capiceño |
| lua | Luba-Lulua | ciluba |
| br | Breton | brezhoneg |
| pdc | Pennsylvania German | Deitsch |
| cho | Choctaw | Chahta anumpa |
| cbk-zam | Chavacano | Chavacano de Zamboanga |
| dua | Duala | Duala |
| gsw | Alemannic | Alemannisch |
| map-bms | Banyumasan | Basa Banyumasan |
| ban | Balinese | Basa Bali |
| an | Aragonese | aragonés |
| ang | Old English | Ænglisc |
| ase | American Sign Language | American sign language |
| chn | Chinook Jargon | chinuk wawa |
| sn | Shona | chiShona |
| bar | Bavarian | Boarisch |
| gn | Guarani | Avañe'ẽ |
| aae | Arbëresh | Arbërisht |
| dga | Southern Dagaare | Dagaare |
| bjn | Banjar | Banjar |
| cal | Carolinian | Carolinian |
| bfd | Bafut | Bafut |
| bbc | Batak Toba | Batak Toba |
| ppl | Nawat | Nawat |
| bol | Bole | bòo pìkkà |
| zh-min-nan | Minnan | Bân-lâm-gú |
| bug | Buginese | Basa Ugi |
| bew | Betawi | Betawi |
| nan-latn-pehoeji | Minnan (Pe̍h-ōe-jī) | Bân-lâm-gí (Pe̍h-ōe-jī) |
| yua | Yucatec Maya | maaya t’aan |
| nv | Navajo | Diné bizaad |
| vmw | Makhuwa | emakhuwa |
| egl | Emilian | Emiliàn |
| eml | Emiliano-Romagnolo | emiliàn e rumagnòl |
| en | English | English |
| es | Spanish | español |
| es-formal | Spanish (formal address) | español (formal) |
| es-419 | Latin American Spanish | español de América Latina |
| eo | Esperanto | Esperanto |
| ext | Extremaduran | estremeñu |
| eto | Eton | Eton |
| eu | Basque | euskara |
| ee | Ewe | eʋegbe |
| ewo | Ewondo | Ewondo |
| wls | Wallisian | Fakaʻuvea |
| gur | Frafra | farefare |
| fmp | Fe'Fe' | Fe'fe' |
| hif | Fiji Hindi | Fiji Hindi |
| hif-latn | Fiji Hindi (Latin script) | Fiji Hindi |
| fon | Fon | fɔ̀ngbè |
| fo | Faroese | føroyskt |
| fr | French | français |
| frc | Cajun French | français cadien |
| fy | Western Frisian | Frysk |
| ff | Fula | Fulfulde |
| fur | Friulian | furlan |
| ga | Irish | Gaeilge |
| gaa | Ga | Ga |
| gv | Manx | Gaelg |
| sm | Samoan | Gagana Samoa |
| gag | Gagauz | Gagauz |
| gd | Scottish Gaelic | Gàidhlig |
| gl | Galician | galego |
| gya | Gbaya | Gbaya |
| bbj | Ghomala | Ghomála' |
| aln | Gheg Albanian | Gegë |
| gpe | Ghanaian Pidgin | Ghanaian Pidgin |
| ki | Kikuyu | Gĩkũyũ |
| gom-latn | Goan Konkani (Latin script) | Gõychi Konknni |
| guw | Gun | gungbe |
| hak-latn | Hakka (Latin script) | Hak-kâ-ngî (Pha̍k-fa-sṳ) |
| cnh | Hakha-Chin | Hakha Chin |
| ha | Hausa | Hausa |
| ho | Hiri Motu | Hiri Motu |
| haw | Hawaiian | Hawaiʻi |
| hsb | Upper Sorbian | hornjoserbsce |
| hr | Croatian | hrvatski |
| hrx | Hunsrik | Hunsrik |
| ibb | Ibibio | ibibio |
| igl | Igala | Igala |
| io | Ido | Ido |
| ig | Igbo | Igbo |
| rw | Kinyarwanda | Ikinyarwanda |
| rn | Rundi | ikirundi |
| ilo | Iloko | Ilokano |
| hil | Hiligaynon | Ilonggo |
| ia | Interlingua | interlingua |
| ie | Interlingue | Interlingue |
| ik | Inupiaq | Iñupiatun |
| ike-latn | Eastern Canadian (Latin script) | inuktitut |
| bto | Rinconada Bikol | Iriga Bicolano |
| nr | South Ndebele | isiNdebele seSewula |
| xh | Xhosa | isiXhosa |
| zu | Zulu | isiZulu |
| is | Icelandic | íslenska |
| it | Italian | italiano |
| isu | Isu | Isu |
| iba | Iban | Jaku Iban |
| jv | Javanese | Jawa |
| smj | Lule Sami | julevsámegiella |
| jut | Jutish | jysk |
| rmf | Finnish Kalo | kaalengo tšimb |
| kbp | Kabiye | Kabɩyɛ |
| kea | Kabuverdianu | kabuverdianu |
| dtp | Central Dusun | Kadazandusun |
| kl | Kalaallisut | kalaallisut |
| cak | Kaqchikel | Kaqchikel |
| kr | Kanuri | kanuri |
| pam | Pampanga | Kapampangan |
| kai | Karekare | Karai-karai |
| krl | Karelian | karjal |
| csb | Kashubian | kaszëbsczi |
| ker | Kera | Kera |
| kw | Cornish | kernowek |
| hke | Hunde | kihunde |
| krj | Kinaray-a | Kinaray-a |
| kiu | Kirmanjki | Kırmancki |
| sw | Swahili | Kiswahili |
| kg | Kongo | Kongo |
| bkm | Kom | Kom |
| avk | Kotava | Kotava |
| nnz | Nda'Nda' | Nda'nda' |
| cpx-latn | Puxian (Latin script) | Pó-sing-gṳ̂ (Báⁿ-uā-ci̍) |
| sjd | Kildin Sami | кӣллт са̄мь кӣлл |
| ce | Chechen | нохчийн |
| be | Belarusian | беларуская |
| nds-nl | Low Saxon | Nedersaksies |
| nia | Nias | Li Niha |
| ne | Nepali | नेपाली |
| mi | Māori | Māori |
| jam | Jamaican Creole English | Patois |
| rut | Rutul | мыхаӀбишды |
| frr | Northern Frisian | Nordfriisk |
| te | Telugu | తెలుగు |
| mwl | Mirandese | Mirandés |
| tg-cyrl | Tajik (Cyrillic script) | тоҷикӣ |
| pt-br | Brazilian Portuguese | português do Brasil |
| ruq-cyrl | Megleno-Romanian (Cyrillic script) | Влахесте |
| nl-informal | Dutch (informal address) | Nederlands (informeel) |
| vut | Vute | Vute |
| tay | Atayal | Tayal |
| fit | Tornedalen Finnish | meänkieli |
| niu | Niuean | Niuē |
| loz | Lozi | Silozi |
| tt-latn | Tatar (Latin script) | tatarça |
| shi | Tachelhit | Taclḥit |
| gcr | Guianan Creole | kriyòl gwiyannen |
| bqz | Mka'a | Mka'a |
| tt | Tatar | татарча / tatarça |
| za | Zhuang | Vahcuengh |
| cdo-latn | Mindong (Latin script) | Mìng-dĕ̤ng-ngṳ̄ (Bàng-uâ-cê) |
| sh-cyrl | Serbo-Croatian (Cyrillic script) | српскохрватски (ћирилица) |
| fj | Fijian | Na Vosa Vakaviti |
| yrl | Nheengatu | Nhẽẽgatú |
| sg | Sango | Sängö |
| ks | Kashmiri | کٲشُر |
| tg | Tajik | тоҷикӣ |
| os | Ossetic | ирон |
| st | Southern Sotho | Sesotho |
| ss | Swati | SiSwati |
| sty | Siberian Tatar | себертатар |
| mt | Maltese | Malti |
| gld | Nanai | на̄ни |
| ojb | Northwestern Ojibwa | Ojibwemowin |
| wlx | Wali | waale |
| mg | Malagasy | Malagasy |
| de-at | Austrian German | Österreichisches Deutsch |
| mnc | Manchu | manju gisun |
| knc | Central Kanuri | Yerwa Kanuri |
| bat-smg | Samogitian | žemaitėška |
| ng | Ndonga | Oshiwambo |
| lg | Ganda | Luganda |
| bg | Bulgarian | български |
| bpy | Bishnupriya | বিষ্ণুপ্রিয়া মণিপুরী |
| mr | Marathi | मराठी |
| pih | Pitcairn-Norfolk | Norfuk / Pitkern |
| or | Odia | ଓଡ଼ିଆ |
| kk-latn | Kazakh (Latin script) | qazaqşa (latın) |
| ady-cyrl | Adyghe (Cyrillic script) | адыгабзэ |
| sr | Serbian | српски / srpski |
| tru | Turoyo | Ṫuroyo |
| crh | Crimean Tatar | qırımtatarca |
| ht | Haitian Creole | Kreyòl ayisyen |
| sh-latn | Serbo-Croatian (Latin script) | srpskohrvatski (latinica) |
| nit | Southeastern Kolami | కొలామి |
| hu-formal | Hungarian (formal address) | magyar (formal) |
| cr | Cree | Nēhiyawēwin / ᓀᐦᐃᔭᐍᐏᐣ |
| tly | Talysh | tolışi |
| nds | Low German | Plattdüütsch |
| nnh | Ngiemboon | Ngiemboon |
| sq | Albanian | shqip |
| crh-latn | Crimean Tatar (Latin script) | qırımtatarca (Latin) |
| lzz | Laz | Lazuri |
| shy-latn | Shawiya (Latin script) | tacawit |
| sh | Serbo-Croatian | srpskohrvatski / српскохрватски |
| ku | Kurdish | kurdî |
| wes | Pidgin (Cameroon) | Pidgin (Cameroon) |
| mnw | Mon | ဘာသာမန် |
| be-tarask | Belarusian (Taraškievica orthography) | беларуская (тарашкевіца) |
| kum | Kumyk | къумукъ |
| vep | Veps | vepsän kel’ |
| ses | Koyraboro Senni | Koyraboro Senni |
| nmz | Nawdm | nawdm |
| ts | Tsonga | Xitsonga |
| rmc | Carpathian Romani | romaňi čhib |
| bh | Bhojpuri | भोजपुरी |
| tg-latn | Tajik (Latin script) | tojikī |
| fkv | Kvensk | kvääni |
| mrj | Western Mari | кырык мары |
| bo | Tibetan | བོད་ཡིག |
| nso | Northern Sotho | Sesotho sa Leboa |
| kk-kz | Kazakh (Kazakhstan) | қазақша (Қазақстан) |
| hyw | Western Armenian | Արեւմտահայերէն |
| cop | Coptic | ϯⲙⲉⲧⲣⲉⲙⲛ̀ⲭⲏⲙⲓ |
| arn | Mapuche | mapudungun |
| fi | Finnish | suomi |
| hi | Hindi | हिन्दी |
| ro | Romanian | română |
| pnt | Pontic | Ποντιακά |
| to | Tongan | lea faka-Tonga |
| so | Somali | Soomaaliga |
| no | Norwegian | norsk |
| mo | Moldovan | молдовеняскэ |
| tpi | Tok Pisin | Tok Pisin |
| si | Sinhala | සිංහල |
| mcp | Maka | Maka |
| lo | Lao | ລາວ |
| wya | Wyandot | Wyandot |
| lld | Ladin | Ladin |
| pt | Portuguese | português |
| ccp | Chakma | 𑄌𑄋𑄴𑄟𑄳𑄦 |
| koi | Komi-Permyak | перем коми |
| bn | Bangla | বাংলা |
| anp | Angika | अंगिका |
| qu | Quechua | Runa Simi |
| cu | Church Slavic | словѣньскъ / ⰔⰎⰑⰂⰡⰐⰠⰔⰍⰟ |
| kj | Kuanyama | Kwanyama |
| byv | Medumba | Medumba |
| inh | Ingush | гӀалгӀай |
| myv | Erzya | эрзянь |
| jv-java | Javanese (Javanese script) | ꦗꦮ |
| tn | Tswana | Setswana |
| mn | Mongolian | монгол |
| nn | Norwegian Nynorsk | norsk nynorsk |
| thq | Kochila Tharu | काेचिला थारु |
| ljp | Lampung Api | Lampung Api |
| ln | Lingala | lingála |
| syl | Sylheti | ꠍꠤꠟꠐꠤ |
| mk | Macedonian | македонски |
| nmg | Kwasio | Kwasio |
| kk-tr | Kazakh (Turkey) | qazaqşa (Türkïya) |
| ami | Amis | Pangcah |
| mhr | Eastern Mari | олык марий |
| mdf | Moksha | мокшень |
| tk | Turkmen | Türkmençe |
| nog | Nogai | ногайша |
| gom-deva | Goan Konkani (Devanagari script) | गोंयची कोंकणी |
| qug | Chimborazo Highland Quichua | Runa shimi |
| gu | Gujarati | ગુજરાતી |
| hu | Hungarian | magyar |
| nup | Nupe | Nupe |
| ksw | S'gaw Karen | စှီၤ |
| kgg | Kusunda | गेम्येहाक़ गिपन |
| sk | Slovak | slovenčina |
| rm | Romansh | rumantsch |
| nrm | Norman | Nouormand |
| kcg | Tyap | Tyap |
| om | Oromo | Oromoo |
| acf | Saint Lucian Creole | Kwéyòl Sent Lisi |
| fiu-vro | Võro | võro |
| nod | Northern Thai | ᨣᩤᩴᨾᩮᩬᩥᨦ |
| km | Khmer | ភាសាខ្មែរ |
| szl | Silesian | ślůnski |
| grc | Ancient Greek | Ἀρχαία ἑλληνικὴ |
| bgc | Haryanvi | हरियाणवी |
| mni | Manipuri | ꯃꯤꯇꯩ ꯂꯣꯟ |
| tw | Twi | Twi |
| av | Avaric | авар |
| sah | Yakut | саха тыла |
| rgn | Romagnol | Rumagnôl |
| zea | Zeelandic | Zeêuws |
| nov | Novial | Novial |
| crh-ro | Dobrujan Tatar | tatarşa |
| ltg | Latgalian | latgaļu |
| min | Minangkabau | Minangkabau |
| dty | Doteli | डोटेली |
| kab | Kabyle | Taqbaylit |
| yo | Yoruba | Yorùbá |
| ybb | Yemba | Yemba |
| yas | Nugunu | Nugunu |
| vo | Volapük | Volapük |
| xsy | Saisiyat | saisiyat |
| xmf | Mingrelian | მარგალური |
| new | Newari | नेपाल भाषा |
| sl | Slovenian | slovenščina |
| tl | Tagalog | Tagalog |
| gcf | Guadeloupean Creole | kréyòl Gwadloup |
| kbd | Kabardian | адыгэбзэ |
| nap | Neapolitan | Napulitano |
| pl | Polish | polski |
| ml | Malayalam | മലയാളം |
| nl | Dutch | Nederlands |
| lez | Lezghian | лезги |
| vot | Votic | Vaďďa |
| bfw | Bonda | ରେମସାମ୍ |
| nyn | Nyankole | runyankore |
| zgh-latn | Standard Moroccan Tamazight (Latin script) | tamaziɣt tanawayt |
| fat | Fanti | mfantse |
| el | Greek | Ελληνικά |
| kaa | Kara-Kalpak | Qaraqalpaqsha |
| wo | Wolof | Wolof |
| kk-cyrl | Kazakh (Cyrillic script) | қазақша (кирил) |
| war | Waray | Winaray |
| nys | Nyungar | Nyunga |
| vro | Võro | võro |
| vmf | Main-Franconian | Mainfränkisch |
| shn | Shan | တႆး |
| mad | Madurese | Madhurâ |
| diq | Dimli | Zazaki |
| din | Dinka | Thuɔŋjäŋ |
| vi | Vietnamese | Tiếng Việt |
| nge | Ngémba | Ngémba |
| kge | Komering | Kumoring |
| vec | Venetian | vèneto |
| ve | Venda | Tshivenda |
| uz-latn | Uzbek (Latin script) | oʻzbekcha |
| uz-cyrl | Uzbek (Cyrillic script) | ўзбекча |
| tvu | Tunen | Tunen |
| uk | Ukrainian | українська |
| ug-latn | Uyghur (Latin script) | Uyghurche |
| lad | Ladino | Ladino |
| udm | Udmurt | удмурт |
| mai | Maithili | मैथिली |
| tyv | Tuvinian | тыва дыл |
| ty | Tahitian | reo tahiti |
| shi-latn | Tachelhit (Latin script) | Taclḥit |
| mos | Mossi | moore |
| uz | Uzbek | oʻzbekcha / ўзбекча |
| lt | Lithuanian | lietuvių |
| ttj | Tooro | Orutooro |
| isv-cyrl | Interslavic (Cyrillic script) | меджусловјанскы |
| tt-cyrl | Tatar (Cyrillic script) | татарча |
| bho | Bhojpuri | भोजपुरी |
| sco | Scots | Scots |
| trv | Taroko | Seediq |
| tr | Turkish | Türkçe |
| tpv | Tanapag | Tanapag |
| kjh | Khakas | хакас |
| tok | Toki Pona | toki pona |
| pms | Piedmontese | Piemontèis |
| th | Thai | ไทย |
| kri | Krio | Krio |
| dz | Dzongkha | ཇོང་ཁ |
| tcy | Tulu | ತುಳು |
| mrh | Mara | Mara |
| liv | Livonian | Līvõ kēļ |
| hz | Herero | Otsiherero |
| kk | Kazakh | қазақша |
| chy | Cheyenne | Tsetsêhestâhese |
| kbd-cyrl | Kabardian (Cyrillic script) | адыгэбзэ |
| sv | Swedish | svenska |
| su | Sundanese | Sunda |
| ku-latn | Kurdish (Latin script) | kurdî (latînî) |
| srq | Sirionó | mbia cheë |
| sro | Campidanese Sardinian | sardu campidanesu |
| jbo | Lojban | la .lojban. |
| bxr | Russia Buriat | буряад |
| tdd | Tai Nuea | ᥖᥭᥰ ᥖᥬᥲ ᥑᥨᥒᥰ |
| lns | Lamnso' | Lamnso' |
| srn | Sranan Tongo | Sranantongo |
| sr-el | Serbian (Latin script) | srpski (latinica) |
| sr-ec | Serbian (Cyrillic script) | српски (ћирилица) |
| pcd | Picard | Picard |
| pcm | Nigerian Pidgin | Naijá |
| my | Burmese | မြန်မာဘာသာ |
| lv | Latvian | latviešu |
| ky | Kyrgyz | кыргызча |
| crh-cyrl | Crimean Tatar (Cyrillic script) | къырымтатарджа (Кирилл) |
| lbe | Lak | лакку |
| guc | Wayuu | wayuunaiki |
| awa | Awadhi | अवधी |
| lem | Nomaande | Nomaande |
| ady | Adyghe | адыгабзэ |
| de-ch | Swiss High German | Schweizer Hochdeutsch |
| nah | Nahuatl | Nāhuatl |
| rki | Arakanese | ရခိုင် |
| ann | Obolo | Obolo |
| hy | Armenian | հայերեն |
| kv | Komi | коми |
| stq | Saterland Frisian | Seeltersk |
| olo | Livvi-Karelian | livvinkarjala |
| lij | Ligurian | Ligure |
| tet | Tetum | tetun |
| aeb-latn | Tunisian Arabic (Latin script) | Tûnsî |
| mag | Magahi | मगही |
| pag | Pangasinan | Pangasinan |
| ksh | Colognian | Ripoarisch |
| szy | Sakizaya | Sakizaya |
| simple | Simple English | Simple English |
| krc | Karachay-Balkar | къарачай-малкъар |
| mnc-latn | Manchu (Latin script) | manju gisun |
| mcn | Massa | vùn màsànà |
| shy | Shawiya | tacawit |
| lfn | Lingua Franca Nova | Lingua Franca Nova |
| sms | Skolt Sami | nuõrttsääʹmǩiõll |
| pap-aw | Papiamento (Aruba) | Papiamento |
| as | Assamese | অসমীয়া |
| tly-cyrl | Talysh (Cyrillic script) | толыши |
| vls | West Flemish | West-Vlams |
| scn | Sicilian | sicilianu |
| nla | Ngombala | Ngombala |
| osa-latn | Osage (Latin script) | Wažáže íe |
| ta | Tamil | தமிழ் |
| sgs | Samogitian | žemaitėška |
| isv-latn | Interslavic (Latin script) | medžuslovjansky |
| rsk | Pannonian Rusyn | руски |
| wa | Walloon | walon |
| pfl | Palatine German | Pälzisch |
| ruq | Megleno-Romanian | Vlăheşte |
| sa | Sanskrit | संस्कृतम् |
| la | Latin | Latina |
| li | Limburgish | Limburgs |
| sdc | Sassarese Sardinian | Sassaresu |
| mua | Mundang | Mundang |
| ks-deva | Kashmiri (Devanagari script) | कॉशुर |
| lus | Mizo | Mizo ţawng |
| gom | Goan Konkani | गोंयची कोंकणी / Gõychi Konknni |
| pdt | Plautdietsch | Plautdietsch |
| mus | Muscogee | Mvskoke |
| gju-deva | Gujari (Devanagari script) | गुज्जरी |
| lmo | Lombard | lombard |
| be-x-old | Belarusian (Taraškievica orthography) | беларуская (тарашкевіца) |
| rue | Rusyn | русиньскый |
| ka | Georgian | ქართული |
| kus | Kusaal | Kʋsaal |
| sju | Ume Sami | ubmejesámiengiälla |
| aa | Afar | Qafár af |
| cv | Chuvash | чӑвашла |
| fvr | Fur | poor’íŋ belé’ŋ |
| ba | Bashkir | башҡортса |
| pa | Punjabi | ਪੰਜਾਬੀ |
| bag | Tuki | Tuki |
| ruq-latn | Megleno-Romanian (Latin script) | Vlăheşte |
| wal | Wolaytta | wolaytta |
| ru | Russian | русский |
| roa-tara | Tarantino | tarandíne |
| xal | Kalmyk | хальмг |
| rmy | Vlax Romani | romani čhib |
| nb | Norwegian Bokmål | norsk bokmål |
| pap | Papiamento | Papiamentu |
| lb | Luxembourgish | Lëtzebuergesch |
| yav | Yangben | Yangben |
| sli | Lower Silesian | Schläsch |
| hoc | Ho | 𑢹𑣉𑣉 𑣎𑣋𑣜 |
| rif | Riffian | Tarifit |
| ab | Abkhazian | аԥсшәа |
| alt | Southern Altai | алтай тил |
| dlg | Dolgan | долган тыла |
| rwr | Marwari (India) | मारवाड़ी |
| quc | Kʼicheʼ | Qatzijob\ʼal |
| bci | Baoulé | wawle |
| blk | Pa'O | ပအိုဝ်ႏဘာႏသာႏ |
| yat | Yambeta | Yambeta |
| pwn | Paiwan | pinayuanan |
| sc | Sardinian | sardu |
| oc | Occitan | occitan |
| prg | Prussian | prūsiskan |
| dso | Desiya | ଦେଶିଆ |
| pi | Pali | पालि |
| kn | Kannada | ಕನ್ನಡ |
| nyo | Nyoro | Orunyoro |
| kjp | Eastern Pwo | ဖၠုံလိက် |
| bug-bugi | Buginese (Buginese script) | ᨅᨔ ᨕᨘᨁᨗ |
| ban-bali | Balinese (Balinese script) | ᬩᬲᬩᬮᬶ |
| sat | Santali | ᱥᱟᱱᱛᱟᱲᱤ |
| chr | Cherokee | ᏣᎳᎩ |
| ike-cans | Eastern Canadian (Aboriginal syllabics) | ᐃᓄᒃᑎᑐᑦ |
| tzm | Central Atlas Tamazight | ⵜⴰⵎⴰⵣⵉⵖⵜ |
| iu | Inuktitut | ᐃᓄᒃᑎᑐᑦ / inuktitut |
| got | Gothic | 𐌲𐌿𐍄𐌹𐍃𐌺 |
| zgh | Standard Moroccan Tamazight | ⵜⴰⵎⴰⵣⵉⵖⵜ ⵜⴰⵏⴰⵡⴰⵢⵜ |
| shi-tfng | Tachelhit (Tifinagh script) | ⵜⴰⵛⵍⵃⵉⵜ |
| tig | Tigre | ትግሬ |
| ko-kp | Korean (North Korea) | 조선말 |
| ti | Tigrinya | ትግርኛ |
| am | Amharic | አማርኛ |
| ii | Sichuan Yi | ꆇꉙ |
| ko | Korean | 한국어 |
| ja | Japanese | 日本語 |
| ryu | Okinawan | 沖縄口 |
| zh | Chinese | 中文 |
| zh-cn | Chinese (China) | 中文(中国大陆) |
| zh-sg | Chinese (Singapore) | 中文(新加坡) |
| zh-mo | Chinese (Macau) | 中文(澳門) |
| zh-hans | Simplified Chinese | 中文(简体) |
| zh-hant | Traditional Chinese | 中文(繁體) |
| zh-tw | Chinese (Taiwan) | 中文(臺灣) |
| zh-hk | Chinese (Hong Kong) | 中文(香港) |
| zh-my | Chinese (Malaysia) | 中文(马来西亚) |
| wuu-hant | Wu (Traditional Han script) | 吳語(正體) |
| wuu | Wu | 吴语 |
| wuu-hans | Wu (Simplified Han script) | 吴语(简体) |
| hak | Hakka Chinese | 客家語 / Hak-kâ-ngî |
| hak-hant | Hakka (Traditional Han script) | 客家語(繁體) |
| hak-hans | Hakka (Simplified Han script) | 客家语(简体) |
| lzh | Literary Chinese | 文言 |
| zh-classical | Literary Chinese | 文言 |
| hsn | Xiang | 湘語 |
| yue | Cantonese | 粵語 |
| yue-hans | Cantonese (Simplified Han script) | 粵语(简体) |
| zh-yue | Cantonese | 粵語 |
| yue-hant | Cantonese (Traditional Han script) | 粵語(繁體) |
| cpx | Puxian | 莆仙語 / Pó-sing-gṳ̂ |
| cpx-hant | Puxian (Traditional Han script) | 莆仙語(繁體) |
| cpx-hans | Puxian (Simplified Han script) | 莆仙语(简体) |
| gan-hant | Gan (Traditional Han script) | 贛語(繁體) |
| gan | Gan | 贛語 |
| gan-hans | Gan (Simplified Han script) | 赣语(简体) |
| nan-hani | Minnan (Han script) | 閩南語 |
| nan | Minnan | 閩南語 / Bân-lâm-gí |
| nan-hant | Minnan (Traditional Han script) | 閩南語(傳統漢字) |
| cdo | Mindong | 閩東語 / Mìng-dĕ̤ng-ngṳ̄ |
| cdo-hant | Mindong (Traditional Han script) | 閩東語(傳統漢字) |
| mnc-mong | Manchu (Mongolian script) | ᠮᠠᠨᠵᡠ ᡤᡳᠰᡠᠨ |
| yi | Yiddish | ייִדיש |
| he | Hebrew | עברית |
| ug-arab | Uyghur (Arabic script) | ئۇيغۇرچە |
| ug | Uyghur | ئۇيغۇرچە / Uyghurche |
| ur | Urdu | اردو |
| ary | Moroccan Arabic | الدارجة |
| ar | Arabic | العربية |
| bqi | Bakhtiari | بختیاری |
| ms-arab | Malay (Jawi script) | بهاس ملايو |
| ps | Pashto | پښتو |
| pnb | Western Punjabi | پنجابی |
| aeb-arab | Tunisian Arabic (Arabic script) | تونسي |
| azb | South Azerbaijani | تۆرکجه |
| aeb | Tunisian Arabic | تونسي / Tûnsî |
| arq | Algerian Arabic | جازايرية |
| bcc | Southern Balochi | جهلسری بلوچی |
| bgn | Western Balochi | روچ کپتین بلوچی |
| skr | Saraiki | سرائیکی |
| skr-arab | Saraiki (Arabic script) | سرائیکی |
| sd | Sindhi | سنڌي |
| apc | Levantine Arabic | شامي |
| acm | Iraqi Arabic | عراقي |
| fa | Persian | فارسی |
| kk-cn | Kazakh (China) | قازاقشا (جۇنگو) |
| kk-arab | Kazakh (Arabic script) | قازاقشا (تٴوتە) |
| ku-arab | Kurdish (Arabic script) | کوردی (عەرەبی) |
| ks-arab | Kashmiri (Arabic script) | کٲشُر |
| khw | Khowar | کھوار |
| ckb | Central Kurdish | کوردی |
| sdh | Southern Kurdish | کوردی خوارگ |
| gju-arab | Gujari (Arabic script) | گوجری |
| glk | Gilaki | گیلکی |
| ota | Ottoman Turkish | لسان عثمانى |
| lrc | Northern Luri | لۊری شومالی |
| luz | Southern Luri | لئری دوٙمینی |
| lki | Laki | لەکی |
| mzn | Mazanderani | مازِرونی |
| arz | Egyptian Arabic | مصرى |
| hno | Northern Hindko | ہندکو |
| arc | Aramaic | ܐܪܡܝܐ |
| dv | Divehi | ދިވެހިބަސް |
| nqo | N’Ko | ߒߞߏ |
There are currently 538 supported languages (plus the language tag zxx denoting the absence of any linguistic content).
- Note
- SVG
systemLanguagecodes must be valid BCP 47 language tags (code differences).
Using numbers instead of labels

On images with few labels, an alternative to either many translated files, or a multilingual SVG file, 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. File:Robal.png or File:Insect anatomy diagram.svg 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, File:ISS configuration sep-2006 en.svg has English labels, and a version with numeric labels File: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.
Placing labels outside the image
Some images allow text to be placed around its periphery, as in the following example. Optionally add leading lines where appropriate. A table with explicit dimensions aids layout.
|
|
Rankine (°Ra) | |||||||||
| Kelvin (K) | ||||||||||
| Fahrenheit (°F) | ||||||||||
| Celsius (°C) Réaumur (°Ré) Rømer (°Rø) Newton (°N) | ||||||||||
| Delisle (°D) | ||||||||||
| Absolute zero | Lowest recorded surface temperature on Earth[5] | Fahrenheit's ice/water/salt mixture | Melting point of ice (at standard pressure) | Average surface temperature on Earth (15 °C) | Average human body temperature (37 °C) | Highest recorded surface temperature on Earth[6] | Boiling point of water (at standard pressure) | |||
Support this template
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 localization page Template:Translate/de
- The help page linked from the localized template Commons:Translation possible/Mehr erfahren
- The language links list templates Template:Translate/lang and Template:Commons:Translation possible/lang for both of them
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!
See also
- German tutorial
- The 'switch' element W3C
- The 'systemLanguage' attribute W3C
- Example files using
<switch>element - (DEAD LINK) SVG Processing: Efficient Language Translation by Bryan Schnabel, 2009 (Multiple file (XLIFF) rather than switch element approach.)
- Category:Language-neutral
Notes
- ↑ 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.
- ↑ http://commons.wikimedia.org/w/index.php?title=Commons:Graphic_Lab/Illustration_workshop&diff=prev&oldid=1077344410
- ↑ The
imakes the language code case-insensitive. - ↑ 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
langparameter. Consequently, the German Wikipedia (https://de.wikipedia.org) will behave as if|lang=dewere specified whensystemLanguage="de"attributes are present in the SVG file. - ↑ The Coldest Inhabited Places on Earth; researches of the Vostok Station recorded the coldest known temperature on Earth on July 21st 1983: −89.2 °C (−128.6 °F).
- ↑ World: Highest Temperature archive copy at the Wayback Machine; an Italian weather station in al 'Aziziyah (Libya) measured a temperature of 58 °C (136.4 °F) on September 13th 1922. "Although this record has gained general acceptance as the world's highest temperature recorded under standard conditions, the validity of the extreme has been questioned."


