Commons:Translation possible/Learn more

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

català | Deutsch | English | español | Esperanto | français | עברית | hrvatski | italiano | galego | македонски | polski | português | русский | 中文(繁體)‎ | 中文(简体)‎ | +/−

Nuvola apps locale.png

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 main idea. If you have questions or comments about it, please use the template discussion page.

Using numbers instead of labels[edit]

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 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 byself.

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'is still not fully internationalized, becouse title and date are still writen on image in English.

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]

There are three ways to translate text in SVG:

  • use an online tool linked from template box — SVG Translate. It's the easiest way if text in the image have good size and position for your language.
  • use a nice and free tool available, that is called Inkscape. You can use that tool to create or edit SVGs. Then change the labels by clicking on them with the Inkscape text-tool.
  • edit SVG file as text

For edit image in any ofline editor, simply download a version of the file you want to edit and open it with Inkscape. Edit them. Save your changes to a new file and upload it back to Commons.

Advanced editing[edit]

Note that instead of using Inkscape, you can also use any text editor capable of using UTF-8 and search 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 XML. Such advanced users might also change encoding of the file and won't have to use UTF-8 capable editors.

How to place new language version in Commons[edit]

When creating SVG files for multiple language versions, it would be good, by Commons:File naming, to save them with language-specific name. In case of name's conflict with other langages You can use old rule: use the laguage suffix (like -en for English) that goes before the .svg. For example, Image:Gibraltar map-en.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 Yours images.

It's looks like:

[edit]

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

Multiple translations within one SVG file[edit]

An example simple SVG with translations in one file. See the description page for details

You can place multiple translations into one SVG file using the <switch> element.

When you have a <switch> element, its children represent possible choices based on language. Each child of the switch should have a systemLanguage attribute to signify which language the choice is for. If there is a child element without a systemLanguage attribute, it is considered the default and is used if none of the other choices match.

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 there are not very many (any?) graphical SVG programs that support language switches in SVG, so you will probably have to edit the SVG file with a text editor. If the file is under 2 MB, you could try uploading it to http://translatesvg.wmflabs.org/ in order to add translations.

MediaWiki will generally render the SVG in the language "en" unless another language is specified. Other languages can be specified using syntax like [[File:SystemLanguage.svg|lang=de]].

See also[edit]

Language Codes[edit]

Click here to show a list of all language codes supported:
  • aa Afar Qafár af
  • ab Abkhazian Аҧсшәа
  • ace Achinese Acèh
  • af Afrikaans Afrikaans
  • ak Akan Akan
  • aln Gheg Albanian Gegë
  • als Alemannisch Alemannisch
  • am Amharic አማርኛ
  • an Aragonese aragonés
  • ang Old English Ænglisc
  • anp Angika अङ्गिका
  • ar Arabic العربية
  • arc Aramaic ܐܪܡܝܐ
  • arn Mapuche mapudungun
  • ary Moroccan Spoken Arabic Maġribi
  • arz Egyptian Spoken Arabic مصرى
  • as Assamese অসমীয়া
  • ast Asturian asturianu
  • av Avaric авар
  • avk Kotava Kotava
  • ay Aymara Aymar aru
  • az Azerbaijani azərbaycanca
  • azb South Azerbaijani تورکجه
  • ba Bashkir башҡортса
  • bar Bavarian Boarisch
  • bat-smg Samogitian žemaitėška
  • bcc Southern Balochi بلوچی مکرانی
  • bcl Bikol Central Bikol Central
  • be Belarusian беларуская
  • be-tarask Belarusian (Taraškievica orthography) беларуская (тарашкевіца)‎
  • be-x-old беларуская (тарашкевіца)‎ беларуская (тарашкевіца)‎
  • bg Bulgarian български
  • bh भोजपुरी भोजपुरी
  • bho Bhojpuri भोजपुरी
  • bi Bislama Bislama
  • bjn Banjar Bahasa Banjar
  • bm Bambara bamanankan
  • bn Bengali বাংলা
  • bo Tibetan བོད་ཡིག
  • bpy Bishnupuriya Manipuri বিষ্ণুপ্রিয়া মণিপুরী
  • bqi Bakhtiari بختياري
  • br Breton brezhoneg
  • brh Brahui Bráhuí
  • bs Bosnian bosanski
  • bug Buginese ᨅᨔ ᨕᨘᨁᨗ
  • bxr буряад буряад
  • ca Catalan català
  • cbk-zam Chavacano de Zamboanga Chavacano de Zamboanga
  • cdo Min Dong Chinese Mìng-dĕ̤ng-ngṳ̄
  • ce Chechen нохчийн
  • ceb Cebuano Cebuano
  • ch Chamorro Chamoru
  • cho Choctaw Choctaw
  • chr Cherokee ᏣᎳᎩ
  • chy Cheyenne Tsetsêhestâhese
  • ckb Sorani Kurdish کوردی
  • co Corsican corsu
  • cps Capiznon Capiceño
  • cr Cree Nēhiyawēwin / ᓀᐦᐃᔭᐍᐏᐣ
  • crh Crimean Turkish qırımtatarca
  • crh-latn Crimean Turkish (Latin script) qırımtatarca (Latin)‎
  • crh-cyrl Crimean Turkish (Cyrillic script) къырымтатарджа (Кирилл)‎
  • cs Czech čeština
  • csb Kashubian kaszëbsczi
  • cu Church Slavic словѣньскъ / ⰔⰎⰑⰂⰡⰐⰠⰔⰍⰟ
  • cv Chuvash Чӑвашла
  • cy Welsh Cymraeg
  • da Danish dansk
  • de German Deutsch
  • de-at Austrian German Österreichisches Deutsch
  • de-ch Swiss High German Schweizer Hochdeutsch
  • de-formal German (formal address) Deutsch (Sie-Form)‎
  • diq Zazaki Zazaki
  • dsb Lower Sorbian dolnoserbski
  • dtp Central Dusun Dusun Bundu-liwan
  • dv Divehi ދިވެހިބަސް
  • dz Dzongkha ཇོང་ཁ
  • ee Ewe eʋegbe
  • egl Emilian Emiliàn
  • el Greek Ελληνικά
  • eml Emiliano-Romagnolo emiliàn e rumagnòl
  • en English English
  • en-ca Canadian English Canadian English
  • en-gb British English British English
  • eo Esperanto Esperanto
  • es Spanish español
  • et Estonian eesti
  • eu Basque euskara
  • ext Extremaduran estremeñu
  • fa Persian فارسی
  • ff Fulah Fulfulde
  • fi Finnish suomi
  • fit Tornedalen Finnish meänkieli
  • fiu-vro Võro Võro
  • fj Fijian Na Vosa Vakaviti
  • fo Faroese føroyskt
  • fr French français
  • frc Cajun French français cadien
  • frp Franco-Provençal arpetan
  • frr Northern Frisian Nordfriisk
  • fur Friulian furlan
  • fy Western Frisian Frysk
  • ga Irish Gaeilge
  • gag Gagauz Gagauz
  • gan Gan 贛語
  • gan-hans Simplified Gan script 赣语(简体)‎
  • gan-hant Traditional Gan script 贛語(繁體)‎
  • gd Scottish Gaelic Gàidhlig
  • gl Galician galego
  • glk Gilaki گیلکی
  • gn Guarani Avañe'ẽ
  • got Gothic 𐌲𐌿𐍄𐌹𐍃𐌺
  • grc Ancient Greek Ἀρχαία ἑλληνικὴ
  • gsw Swiss German Alemannisch
  • gu Gujarati ગુજરાતી
  • gv Manx Gaelg
  • ha Hausa Hausa
  • hak Hakka 客家語/Hak-kâ-ngî
  • haw Hawaiian Hawai`i
  • he Hebrew עברית
  • hi Hindi हिन्दी
  • hif Fiji Hindi Fiji Hindi
  • hif-latn Fiji Hindi (Latin script) Fiji Hindi
  • hil Hiligaynon Ilonggo
  • ho Hiri Motu Hiri Motu
  • hr Croatian hrvatski
  • hsb Upper Sorbian hornjoserbsce
  • ht Haitian Kreyòl ayisyen
  • hu Hungarian magyar
  • hy Armenian Հայերեն
  • hz Herero Otsiherero
  • ia Interlingua interlingua
  • id Indonesian Bahasa Indonesia
  • ie Interlingue Interlingue
  • ig Igbo Igbo
  • ii Sichuan Yi ꆇꉙ
  • ik Inupiaq Iñupiak
  • ike-cans Eastern Canadian (Aboriginal syllabics) ᐃᓄᒃᑎᑐᑦ
  • ike-latn Eastern Canadian (Latin script) inuktitut
  • ilo Iloko Ilokano
  • inh Ingush ГӀалгӀай
  • io Ido Ido
  • is Icelandic íslenska
  • it Italian italiano
  • iu Inuktitut ᐃᓄᒃᑎᑐᑦ/inuktitut
  • ja Japanese 日本語
  • jam Jamaican Creole English Patois
  • jbo Lojban Lojban
  • jut Jutish jysk
  • jv Javanese Basa Jawa
  • ka Georgian ქართული
  • kaa Kara-Kalpak Qaraqalpaqsha
  • kab Kabyle Taqbaylit
  • kbd Kabardian Адыгэбзэ
  • kbd-cyrl Адыгэбзэ Адыгэбзэ
  • kg Kongo Kongo
  • khw Khowar کھوار
  • ki Kikuyu Gĩkũyũ
  • kiu Kirmanjki Kırmancki
  • kj Kuanyama Kwanyama
  • kk Kazakh қазақша
  • kk-arab Kazakh (Arabic script) قازاقشا (تٴوتە)‏
  • kk-cyrl Kazakh (Cyrillic script) қазақша (кирил)‎
  • kk-latn Kazakh (Latin script) qazaqşa (latın)‎
  • kk-cn Kazakh (China) قازاقشا (جۇنگو)‏
  • kk-kz Kazakh (Kazakhstan) қазақша (Қазақстан)‎
  • kk-tr Kazakh (Turkey) qazaqşa (Türkïya)‎
  • kl Kalaallisut kalaallisut
  • km Khmer ភាសាខ្មែរ
  • kn Kannada ಕನ್ನಡ
  • ko Korean 한국어
  • ko-kp 한국어 (조선) 한국어 (조선)
  • koi Komi-Permyak Перем Коми
  • kr Kanuri Kanuri
  • krc Karachay-Balkar къарачай-малкъар
  • kri Krio Krio
  • krj Kinaray-a Kinaray-a
  • ks Kashmiri कॉशुर / کٲشُر
  • ks-arab Kashmiri (Arabic script) کٲشُر
  • ks-deva Kashmiri (Devanagari script) कॉशुर
  • ksh Colognian Ripoarisch
  • ku Kurdish Kurdî
  • ku-latn Kurdish (Latin script) Kurdî (latînî)‎
  • ku-arab كوردي (عەرەبی)‏ كوردي (عەرەبی)‏
  • kv Komi коми
  • kw Cornish kernowek
  • ky Kyrgyz Кыргызча
  • la Latin Latina
  • lad Ladino Ladino
  • lb Luxembourgish Lëtzebuergesch
  • lbe лакку лакку
  • lez Lezghian лезги
  • lfn Lingua Franca Nova Lingua Franca Nova
  • lg Ganda Luganda
  • li Limburgish Limburgs
  • lij Ligurian Ligure
  • liv Livonian Līvõ kēļ
  • lmo Lombard lumbaart
  • ln Lingala lingála
  • lo Lao ລາວ
  • loz Lozi Silozi
  • lt Lithuanian lietuvių
  • ltg Latgalian latgaļu
  • lus Mizo Mizo ţawng
  • lv Latvian latviešu
  • lzh Literary Chinese 文言
  • lzz Laz Lazuri
  • mai Maithili मैथिली
  • map-bms Basa Banyumasan Basa Banyumasan
  • mdf Moksha мокшень
  • mg Malagasy Malagasy
  • mh Marshallese Ebon
  • mhr Eastern Mari олык марий
  • mi Maori Māori
  • min Minangkabau Baso Minangkabau
  • mk Macedonian македонски
  • ml Malayalam മലയാളം
  • mn Mongolian монгол
  • mo молдовеняскэ молдовеняскэ
  • mr Marathi मराठी
  • mrj Hill Mari кырык мары
  • ms Malay Bahasa Melayu
  • mt Maltese Malti
  • mus Creek Mvskoke
  • mwl Mirandese Mirandés
  • my Burmese မြန်မာဘာသာ
  • myv Erzya эрзянь
  • mzn Mazanderani مازِرونی
  • na Nauru Dorerin Naoero
  • nah Nāhuatl Nāhuatl
  • nan Min Nan Chinese Bân-lâm-gú
  • nap Neapolitan Napulitano
  • nb Norwegian Bokmål norsk bokmål
  • nds Low German Plattdüütsch
  • nds-nl Low Saxon (Netherlands) Nedersaksies
  • ne Nepali नेपाली
  • new Newari नेपाल भाषा
  • ng Ndonga Oshiwambo
  • niu Niuean Niuē
  • nl Dutch Nederlands
  • nl-informal Nederlands (informeel)‎ Nederlands (informeel)‎
  • nn Norwegian Nynorsk norsk nynorsk
  • no Norwegian (bokmål) norsk bokmål
  • nov Novial Novial
  • nrm Nouormand Nouormand
  • nso Northern Sotho Sesotho sa Leboa
  • nv Navajo Diné bizaad
  • ny Nyanja Chi-Chewa
  • oc Occitan occitan
  • om Oromo Oromoo
  • or Oriya ଓଡ଼ିଆ
  • os Ossetic Ирон
  • pa Punjabi ਪੰਜਾਬੀ
  • pag Pangasinan Pangasinan
  • pam Pampanga Kapampangan
  • pap Papiamento Papiamentu
  • pcd Picard Picard
  • pdc Pennsylvania German Deitsch
  • pdt Plautdietsch Plautdietsch
  • pfl Palatine German Pälzisch
  • pi Pali पालि
  • pih Norfuk / Pitkern Norfuk / Pitkern
  • pl Polish polski
  • pms Piedmontese Piemontèis
  • pnb Western Punjabi پنجابی
  • pnt Pontic Ποντιακά
  • prg Prussian Prūsiskan
  • ps Pashto پښتو
  • pt Portuguese português
  • pt-br Brazilian Portuguese português do Brasil
  • qu Quechua Runa Simi
  • qug Chimborazo Highland Quichua Runa shimi
  • rgn Romagnol Rumagnôl
  • rif Riffian Tarifit
  • rm Romansh rumantsch
  • rmy Romani Romani
  • rn Rundi Kirundi
  • ro Romanian română
  • roa-rup Aromanian armãneashti
  • roa-tara tarandíne tarandíne
  • ru Russian русский
  • rue Rusyn русиньскый
  • rup Aromanian armãneashti
  • ruq Megleno-Romanian Vlăheşte
  • ruq-cyrl Megleno-Romanian (Cyrillic script) Влахесте
  • ruq-latn Megleno-Romanian (Latin script) Vlăheşte
  • rw Kinyarwanda Kinyarwanda
  • sa Sanskrit संस्कृतम्
  • sah Sakha саха тыла
  • sat Santali Santali
  • sc Sardinian sardu
  • scn Sicilian sicilianu
  • sco Scots Scots
  • sd Sindhi سنڌي
  • sdc Sassarese Sardinian Sassaresu
  • se Northern Sami sámegiella
  • sei Seri Cmique Itom
  • sg Sango Sängö
  • sgs Samogitian žemaitėška
  • sh Serbo-Croatian srpskohrvatski / српскохрватски
  • shi Tachelhit Tašlḥiyt/ⵜⴰⵛⵍⵃⵉⵜ
  • shi-tfng ⵜⴰⵛⵍⵃⵉⵜ ⵜⴰⵛⵍⵃⵉⵜ
  • shi-latn Tašlḥiyt Tašlḥiyt
  • si Sinhala සිංහල
  • simple Simple English Simple English
  • sk Slovak slovenčina
  • sl Slovenian slovenščina
  • sli Lower Silesian Schläsch
  • sm Samoan Gagana Samoa
  • sma Southern Sami Åarjelsaemien
  • sn Shona chiShona
  • so Somali Soomaaliga
  • sq Albanian shqip
  • sr Serbian српски / srpski
  • sr-ec Serbian (Cyrillic script) српски (ћирилица)‎
  • sr-el Serbian (Latin script) srpski (latinica)‎
  • srn Sranan Tongo Sranantongo
  • ss Swati SiSwati
  • st Southern Sotho Sesotho
  • stq Saterland Frisian Seeltersk
  • su Sundanese Basa Sunda
  • sv Swedish svenska
  • sw Swahili Kiswahili
  • szl Silesian ślůnski
  • ta Tamil தமிழ்
  • tcy Tulu ತುಳು
  • te Telugu తెలుగు
  • tet Tetum tetun
  • tg Tajik тоҷикӣ
  • tg-cyrl Tajik (Cyrillic script) тоҷикӣ
  • tg-latn Tajik (Latin script) tojikī
  • th Thai ไทย
  • ti Tigrinya ትግርኛ
  • tk Turkmen Türkmençe
  • tl Tagalog Tagalog
  • tly Talysh толышә зывон
  • tn Tswana Setswana
  • to Tongan lea faka-Tonga
  • tokipona Toki Pona Toki Pona
  • tpi Tok Pisin Tok Pisin
  • tr Turkish Türkçe
  • tru Turoyo Ṫuroyo
  • ts Tsonga Xitsonga
  • tt Tatar татарча/tatarça
  • tt-cyrl Tatar (Cyrillic script) татарча
  • tt-latn Tatar (Latin script) tatarça
  • tum Tumbuka chiTumbuka
  • tw Twi Twi
  • ty Tahitian reo tahiti
  • tyv Tuvinian тыва дыл
  • udm Udmurt удмурт
  • ug Uyghur ئۇيغۇرچە / Uyghurche
  • ug-arab Uyghur (Arabic script) ئۇيغۇرچە
  • ug-latn Uyghur (Latin script) Uyghurche
  • uk Ukrainian українська
  • ur Urdu اردو
  • uz Uzbek oʻzbekcha
  • ve Venda Tshivenda
  • vec Venetian vèneto
  • vep Veps vepsän kel’
  • vi Vietnamese Tiếng Việt
  • vls West Flemish West-Vlams
  • vmf Upper Franconian Mainfränkisch
  • vo Volapük Volapük
  • vot Votic Vaďďa
  • vro Võro Võro
  • wa Walloon walon
  • war Waray Winaray
  • wo Wolof Wolof
  • wuu Wu 吴语
  • xal Kalmyk хальмг
  • xh Xhosa isiXhosa
  • xmf Mingrelian მარგალური
  • yi Yiddish ייִדיש
  • yo Yoruba Yorùbá
  • yue Cantonese 粵語
  • za Zhuang Vahcuengh
  • zea Zeeuws Zeêuws
  • zh Chinese 中文
  • zh-classical Classical Chinese 文言
  • zh-cn Chinese (China) 中文(中国大陆)‎
  • zh-hans Simplified Chinese 中文(简体)‎
  • zh-hant Traditional Chinese 中文(繁體)‎
  • zh-hk Chinese (Hong Kong) 中文(香港)‎
  • zh-min-nan Chinese (Min Nan) Bân-lâm-gú
  • zh-mo 中文(澳門)‎ 中文(澳門)‎
  • zh-my 中文(马来西亚)‎ 中文(马来西亚)‎
  • zh-sg Chinese (Singapore) 中文(新加坡)‎
  • zh-tw Chinese (Taiwan) 中文(台灣)‎
  • zh-yue Cantonese 粵語
  • zu Zulu isiZulu

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 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 save it as a sub-page. The template consists of three parts. For the German template they are, for example:

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!