Pergunta

I'm using wine emulator on linux (SliTaz 4.0) and i want to change the wine locale so that the dialogs and messages are displayed in Japanese.

I found this tool http://code.google.com/p/winelocale/ which seems to do the job but I couldn't find a download link anywhere and could not contact the author, so does anybody know how to do that please?

I am not actually certain if this tool (WINELocale) will actually work, so I am open to any suggestions to change the locale of WINE to Japanese.

Thanks

Foi útil?

Solução

LC_ALL="ja_JP"

another example to do it ;)

Outras dicas

in Ubuntu 13.04 i had to use

LANG="ja_JP.UTF8" wine YourBinary.exe

I had to edit /etc/locale.gen and un-comment these two lines:

ja_JP.EUC-JP EUC-JP
ja_JP.UTF-8 UTF-8

After that, I ran locale-gen (as root), and when it finished generating locales simply setting LANG=ja_JP.utf8 worked. The key was generating locale information first, it seems.

Also, if you haven't got any, you'll need to install a japanese font on your system.

My distribution is Debian Sid, if anyone wonders, but I believe this is also what you need to do in Arch and Ubuntu and most other distros.

export LANG="ja_JP"

after this wine changes its locale to japanese, altough remember to install fonts for japanese, otherwise it will look like garbage!

if u close the terminal, the settings for the locale will be lost. a cleaner way would be:

LANG="ja_JP" winecfg

as example, so only this "process (and childs)" will be affected, remember to use it for wine too like this:

LANG="ja_JP" wine YourBinary.exe

You can also change the locale for all applications via Registry, by setting the LC_ALL environment variable in HKEY_CURRENT_USER\Environment (Right click -> New -> String value).

As others have said, export LANG="ja_JP" should work.

But make sure you have that locale installed, or it won't. How to install it depends on your distribution, but to check whether it is available or not, you can simply run locale -a in a terminal and it will list the locales available for use.

LANG=ja_JP doesn't seem default to utf8 on my machine. (Maybe because it's lower in locale.gen?)

LANG=ja_JP.UTF-8 works.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top