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
[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 powerful are SVGs
[edit]- 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?
[edit]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]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
[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.)
Multiple translations within one SVG file (preferred method)
[edit]



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