Language Macro
Last modified by Simon Urli on 2024/07/22
Example
Code
{{language codes='de, fr, it, lv, nl, ru, sv, zh'/}}
Result
Parameters
Parameter name | Description |
---|---|
codes | indicates the code list for the language |
Codes that can be used:
Code | Flag | Language name |
---|---|---|
az | Azerbaijani | |
bg | Bulgarian | |
ca | Catalan | |
cs | Czech | |
da | Danish | |
de | German | |
el | Greek | |
en | English | |
es | Spanish | |
fa | Persian | |
famfamfam_flag_icons | ||
fr | French | |
gl | Galician | |
hi | Hindi | |
hr | Croatian | |
hu | Hungarian | |
id | Indonesian | |
it | Italian | |
ja | Japanese | |
km | Cambodian | |
kn | Kannada | |
ko | Korean | |
lt | Lithuanian | |
lv | Latvian | |
mr | Marathi | |
nl | Dutch | |
no | Norwegian | |
none | Language | |
pl | Polish | |
pt_BR | Portuguese (Brazil) | |
pt | Portuguese | |
ro | Romanian | |
ru | Russian | |
si | Sinhalese | |
sk | Slovak | |
sl | Slovenian | |
sv | Swedish | |
tr | Turkish | |
ug | Uyghur | |
uk | Ukrainian | |
vi | Vietnamese | |
zh_TW | Traditional Chinese | |
zh | Simplified Chinese |
Code | Flag | Language name |
---|---|---|
az | Azerbaijani | |
bg | Bulgarian | |
ca | Catalan | |
cs | Czech | |
da | Danish | |
de | German | |
el | Greek | |
en | English | |
es | Spanish | |
fa | Persian | |
famfamfam_flag_icons | ||
fr | French | |
gl | Galician | |
hi | Hindi | |
hr | Croatian | |
hu | Hungarian | |
id | Indonesian | |
it | Italian | |
ja | Japanese | |
km | Cambodian | |
kn | Kannada | |
ko | Korean | |
lt | Lithuanian | |
lv | Latvian | |
mr | Marathi | |
nl | Dutch | |
no | Norwegian | |
none | Language | |
pl | Polish | |
pt_BR | Portuguese (Brazil) | |
pt | Portuguese | |
ro | Romanian | |
ru | Russian | |
si | Sinhalese | |
sk | Slovak | |
sl | Slovenian | |
sv | Swedish | |
tr | Turkish | |
ug | Uyghur | |
uk | Ukrainian | |
vi | Vietnamese | |
zh_TW | Traditional Chinese | |
zh | Simplified Chinese |
Code | Flag | Language name |
---|---|---|
az | Azerbaijani | |
bg | Bulgarian | |
ca | Catalan | |
cs | Czech | |
da | Danish | |
de | German | |
el | Greek | |
en | English | |
es | Spanish | |
fa | Persian | |
famfamfam_flag_icons | ||
fr | French | |
gl | Galician | |
hi | Hindi | |
hr | Croatian | |
hu | Hungarian | |
id | Indonesian | |
it | Italian | |
ja | Japanese | |
km | Cambodian | |
kn | Kannada | |
ko | Korean | |
lt | Lithuanian | |
lv | Latvian | |
mr | Marathi | |
nl | Dutch | |
no | Norwegian | |
none | Language | |
pl | Polish | |
pt_BR | Portuguese (Brazil) | |
pt | Portuguese | |
ro | Romanian | |
ru | Russian | |
si | Sinhalese | |
sk | Slovak | |
sl | Slovenian | |
sv | Swedish | |
tr | Turkish | |
ug | Uyghur | |
uk | Ukrainian | |
vi | Vietnamese | |
zh_TW | Traditional Chinese | |
zh | Simplified Chinese |
References
The locale code is based on <ISO 639-1 language code>_<COUNTRY UPPER CASE>
The flag need to be attachmed and the filename needs to be <locale>.png (for example pt_BR.png). All the flags currently attached comes from http://www.famfamfam.com/lab/icons/flags/.
The display name needs to be added in the XWiki.WikiMacroClass object.