Language Macro

Last modified by Clemens Robbenhaar on 2014/02/12

Example

Code

{{language codes='de, fr, it, lv, nl, ru, sv, zh'/}}

Result

  • German
  • French
  • Italian
  • Latvian
  • Dutch
  • Russian
  • Swedish
  • Simplified Chinese

Parameters

 Parameter name  Description
 codes  indicates the code list for the language

Codes that can be used:

 Code  Flag  Language name
 ca  ca.png  Catalan
 cs  cs.png  Czech
 da  da.png  Danish
 de  de.png  German
 en  en.png  English
 es  es.png  Spanish
 fr  fr.png  French
 gl  gl.png  Galician
 hi  hi.png  Hindi
 hr  hr.png  Croatian
 hu  hu.png  Hungarian
 it  it.png  Italian
 ko  ko.png  Korean
 lv  lv.png  Latvian
 nl  nl.png  Dutch
 no  no.png  Norwegian
 pl  pl.png  Polish
 pt  pt.png  Portuguese
 ro  ro.png  Romanian
 ru  ru.png  Russian
 sk  sk.png  Slovak
 sv  sv.png  Swedish
 tr  tr.png  Turkish
 uk  uk.png  Ukrainian
 vi  vi.png  Vietnamese
 zh  zh.png  Simplified Chinese
 pt_BR  pt-BR.png  Portuguese (Brazil)
 zh_TW  zh-TW.png  Traditional Chinese
 none  none.png  Language

References

This macro uses http://www.famfamfam.com/lab/icons/flags/ icons and the language names are based on http://ftp.ics.uci.edu/pub/ietf/http/related/iso639.txt.
XWiki supported languages are in concordance with http://l10n.xwiki.org/xwiki/bin/view/L10N/Flags

Tags:
Created by Thomas Mortagne on 2010/02/24
    

Get Connected