The format attribute, when added to the sys:lang-selector tag, allows you to specify the format in which the individual languages will be displayed within the language selector.
In specifying the desired format you can make use of the following codes:
- %L - language
- %T - territory with preceding '_'
- %C - codeset with preceding '.'
- %M - modifier with preceding '@'
- %P - priority with preceding ';q='
- %l - language
- %t - territory
- %c - codeset
- %m - modifier
- %p - priority
- %n - native language name ("cesky", "English" etc.)
- %N - English language name ("Czech", "English" etc.)
- %s - native country name ("Ceska republika", "Great Britain" etc.)
- %S - English country name ("Czech Republic", "Great Britain" etc.)
- %u - alias for "%n (%s)" - native language/country name ("cesky (Ceska republika)", "English (Great Britain)")
- %U - alias for "%N (%S)" - English language/country name ("Czech (Czech Republic)", "English (Great Britain)")
- %f - alias for "%L%T%C%M" (en_US.UTF-8@char)
- %F - alias for "%L%T%C%M%P" (en_US.UTF-8@char;q=1.0)
- %x - alias for "%L%T" (en_US, cs_CZ)
Simply enter the tag, along with the attribute and desired codes, into the HTML window, and the outcome should look something like this:
<sys:lang-selector format="%N" />