Testing Languages

From WineHQ Wiki
Jump to: navigation, search

The different dialogs in Wine (e.g. the ones in winecfg) have resources that target many different languages. When editing these resources, it may be useful to test how they look in different languages.

Wine uses the operating system's locale to decide what language to use, but this can be overridden by changing the LANG environment variable. You may change LC_ALL instead of LANG, which will override all locale settings (not just the language). The table below gives a list of locale specifiers for the various languages. To test a particular language, it must be installed in your operating system. For Debian based systems you need e.g. the package language-pack-fr for french.

If you're in doubt as to what locale specifier to use, have a look at your language file under dlls/kernel32/nls, say enu.nls, and locate the lines

LOCALE_SISO3166CTRYNAME "US"
LOCALE_SISO639LANGNAME "en"

This means that the locale specifier will look like: LANG=en_US.UTF-8

There are exceptions, for instance Windows and Linux have different ideas of a Serbian locale.

UTF-8 is a character set suffix, and all current Linux distributions use UTF-8 by default. Note that utf-8 or utf8 are NOT valid charset suffixes; they may work if a distribution has arranged the aliases for them, but please try to avoid them as the aliases might not exist.

Note: this list is not complete. Please help complete it!

Resource Locale Region/language name  Example command
Bg.rc Bulgarian
Ca.rc Catalan
Cs.rc Czech
Da.rc Danish
De.rc de_DE.UTF-8 German LANG=de_DE.UTF-8 ./wine winecfg
El.rc Greek
En.rc en_US English LANG=en_US ./wine winecfg
Eo.rc Esperanto
Es.rc es_ES.UTF-8 Spanish; Castilian LANG=es_ES.UTF-8 ./wine winecfg
Fi.rc Finnish
Fr.rc fr_FR.UTF-8 French LANG=fr_FR.UTF-8 ./wine winecfg
Hu.rc Hungarian
It.rc it_IT.UTF-8 Italian LANG=it_IT.UTF-8 ./wine winecfg
Ja.rc ja_JP.UTF-8 Japanese LANG=ja_JP.UTF-8 ./wine winecfg
Ko.rc ko_KR.UTF-8 Korean LANG=ko_KR.UTF-8 ./wine winecfg
Lt.rc lt_LT.UTF-8 Lithuanian LANG=lt_LT.UTF-8 ./wine winecfg
Nl.rc nl_NL.UTF-8 Dutch LANG=nl_NL.UTF-8 ./wine winecfg
No.rc nb_NO.UTF-8 Norwegian Bokmål LANG=nb_NO.UTF-8 ./wine winecfg
Pl.rc pl_PL.UTF-8 Polish LANG=pl_PL.UTF-8 ./wine winecfg
Pt.rc pt_PT.UTF-8 Portuguese LANG=pt_PT.UTF-8 ./wine winecfg
Ro.rc Romanian
Ru.rc ru_RU.UTF-8 Russian LANG=ru_RU.UTF-8 ./wine winecfg
Si.rc sl_SI.UTF-8 Slovenian
Sk.rc sk_SK.UTF-8 Slovak
Sv.rc sv_SE.UTF-8 Swedish LANG=sv_SE.UTF-8 ./wine winecfg
Th.rc th_TH.UTF-8 Thai
Tr.rc Turkish
Uk.rc uk_UA.UTF-8 Ukrainian LANG=uk_UA.UTF-8 wine winecfg
Va.rc Romansh
Wa.rc Walon
Zh.rc zh_CN.UTF-8 Chinese (Simplified) LANG=zh_CN.UTF-8 ./wine winecfg
Zh.rc zh_TW.UTF-8 Chinese (Traditional) LANG=zh_TW.UTF-8 ./wine winecfg


See also