Running different-language apps in Wine

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
DaVince
Level 8
Level 8
Posts: 1099
Joined: Wed Oct 29, 2008 4:53 pm

Running different-language apps in Wine

Post by DaVince »

From this page: http://wiki.winehq.org/Translating
Wine will select the language version of the resource to display basing on user settings. For example "LANG=ru_RU winecfg" will launch winecfg in Russian (if you have Russian locale information installed in Linux/your other native system).
I have tried this. However, it has never worked for me; Wine just completely ignores my environment variable. Japanese Windows apps will NOT use the correct encoding to show text correctly, and doing something like "LANG=nl_NL winecfg" doesn't change winecfg or any other application into Dutch. I do have Dutch and Japanese localizations installed on my Ubuntu rig through the distro's Language Support dialog, but it doesn't seem to make a difference...

What seems to be the problem? I'd like to improve Dutch translation, but I can't really test the results like this...
JuEUS-U
Level 2
Level 2
Posts: 11
Joined: Tue Oct 21, 2008 7:46 pm

Post by JuEUS-U »

see what this command prints.
$ locale -a

I think ubuntu does not support locales in forms like "ja_JP" or "nl_NL".
try LANG=nl_NL.utf8
DaVince
Level 8
Level 8
Posts: 1099
Joined: Wed Oct 29, 2008 4:53 pm

Post by DaVince »

C
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_NG
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZW.utf8
POSIX

Strange, no nl_NL or ja_JP in there... How do I add these languages?
JuEUS-U
Level 2
Level 2
Posts: 11
Joined: Tue Oct 21, 2008 7:46 pm

Post by JuEUS-U »

you can see the list of available locales in /usr/share/i18n/SUPPORTED
choose a locale you want to add from this file
and use locale-gen to add it.
DaVince
Level 8
Level 8
Posts: 1099
Joined: Wed Oct 29, 2008 4:53 pm

Post by DaVince »

Thanks. That seemed to work for Japanese, but not for Dutch, which seems to error out on me:

Code: Select all

vincent@vincent-eeepc:~$ sudo locale-gen nl_NL.UTF-8
Generating locales...
  nl_NL.UTF-8... cannot open locale definition file `nl_NL': No such file or directory
failed
Generation complete.
It's not in locale -a afterwards. Installing language-pack-nl and language-pack-nl-base in Ubuntu's package manager made no difference; in fact, these packages' post-installation triggers are supposed to do this and fail too.
JuEUS-U
Level 2
Level 2
Posts: 11
Joined: Tue Oct 21, 2008 7:46 pm

Post by JuEUS-U »

strange... :S
check if the file 'nl_NL' is in /usr/share/i18n/locales . it must be there.
if not, try reinstalling "locales" package.
DaVince
Level 8
Level 8
Posts: 1099
Joined: Wed Oct 29, 2008 4:53 pm

Post by DaVince »

That fixed it, and Wine's programs now load in Dutch. Thanks. :)
DaVince
Level 8
Level 8
Posts: 1099
Joined: Wed Oct 29, 2008 4:53 pm

Post by DaVince »

Woops, no edit button. Japanese is missing most of the Kanji, and I've got msttcorefonts and the non-free version of Kochi-Mincho installed... Strange.
Locked