Changing the language that wine runs in (testing language versions of dialogs)
Hi, Looking at http://bugs.winehq.org/show_bug.cgi?id=18125, it has winecfg from wine 1.1.19 running in Spanish. The screenshot shows that the static text is wrapped over 4 lines, but the text is clipped (should be 8x4 dlus high). This is not the issue reported there, but I would like to fix it and improve the layout. So, how do I change locale? Especially from a just-built version of Wine. I have tried: LANG=es ./wine winecfg LANG=es.UTF-8 ./wine winecfg LC_ALL=es ./wine winecfg LC_ALL=es.UTF-8 ./wine winecfg and export LANG=es && ./wine winecfg variants. I have also tried changing the system regional and language settings. None of these have worked. It's not on the FAQ either. I am using Kubuntu 9.04. Thanks, - Reece
2009/4/21 Reece Dunn <msclrhd(a)googlemail.com>:
So, how do I change locale? Especially from a just-built version of Wine.
You have to make sure that the locale you are trying to use is there in your system (see locale -a). My corrent lcale is ru_RU.UTF-8 and wine runs correspondingly. When I run LC_ALL=C wine regedit LANG=C wine regedit LANG=C wine winecfg LANG=C winecfg It all works: wine starts displaying all dialogs in english. This works well with precompiled binaries also. -- Igor
Reece Dunn wrote:
Hi,
Looking at http://bugs.winehq.org/show_bug.cgi?id=18125, it has winecfg from wine 1.1.19 running in Spanish. The screenshot shows that the static text is wrapped over 4 lines, but the text is clipped (should be 8x4 dlus high). This is not the issue reported there, but I would like to fix it and improve the layout.
So, how do I change locale? Especially from a just-built version of Wine.
I have tried: LANG=es ./wine winecfg LANG=es.UTF-8 ./wine winecfg LC_ALL=es ./wine winecfg LC_ALL=es.UTF-8 ./wine winecfg LANG=es_ES.UTF-8 ./wine winecfg works for me. The language code is "es_ES" and not just "es".
and export LANG=es && ./wine winecfg variants.
I have also tried changing the system regional and language settings. None of these have worked. It's not on the FAQ either.
I am using Kubuntu 9.04.
bye michael
2009/4/21 Michael Stefaniuc <mstefani(a)redhat.com>:
Reece Dunn wrote:
Hi,
Looking at http://bugs.winehq.org/show_bug.cgi?id=18125, it has winecfg from wine 1.1.19 running in Spanish. The screenshot shows that the static text is wrapped over 4 lines, but the text is clipped (should be 8x4 dlus high). This is not the issue reported there, but I would like to fix it and improve the layout.
So, how do I change locale? Especially from a just-built version of Wine.
I have tried: LANG=es ./wine winecfg LANG=es.UTF-8 ./wine winecfg LC_ALL=es ./wine winecfg LC_ALL=es.UTF-8 ./wine winecfg LANG=es_ES.UTF-8 ./wine winecfg works for me. The language code is "es_ES" and not just "es".
Thanks everyone for the hints. I'll try these when I get back to my development machine. - Reece
2009/4/21 Reece Dunn <msclrhd(a)googlemail.com>:
2009/4/21 Michael Stefaniuc <mstefani(a)redhat.com>:
Reece Dunn wrote:
Hi,
Looking at http://bugs.winehq.org/show_bug.cgi?id=18125, it has winecfg from wine 1.1.19 running in Spanish. The screenshot shows that the static text is wrapped over 4 lines, but the text is clipped (should be 8x4 dlus high). This is not the issue reported there, but I would like to fix it and improve the layout.
So, how do I change locale? Especially from a just-built version of Wine.
I have tried: LANG=es ./wine winecfg LANG=es.UTF-8 ./wine winecfg LC_ALL=es ./wine winecfg LC_ALL=es.UTF-8 ./wine winecfg LANG=es_ES.UTF-8 ./wine winecfg works for me. The language code is "es_ES" and not just "es".
Thanks everyone for the hints. I'll try these when I get back to my development machine.
That works. I have started a page on the wiki (http://wiki.winehq.org/TestingLanguages) to document how to launch Wine in the different languages. It's not complete yet. Thanks for the help, - Reece
On Di, 2009-04-21 at 21:06 +0100, Reece Dunn wrote:
LANG=es_ES.UTF-8 ./wine winecfg works for me. The language code is "es_ES" and not just "es".
That works. I have started a page on the wiki (http://wiki.winehq.org/TestingLanguages) to document how to launch Wine in the different languages. It's not complete yet.
I did the attached script a while ago for dialog testing before Wine-1.0, but it works also for the programs. The given command is run in every translated language on seperate virtual Desktops. Examples: WINETEST_INTERACTIVE=1 winetest_rc dlls/localui/tests/localui_test.exe.so winetest_rc programs/winecfg/winecfg.exe.so -- By by ... Detlef
On Tue, Apr 21, 2009 at 08:26:53AM +0100, Reece Dunn wrote:
Hi,
Looking at http://bugs.winehq.org/show_bug.cgi?id=18125, it has winecfg from wine 1.1.19 running in Spanish. The screenshot shows that the static text is wrapped over 4 lines, but the text is clipped (should be 8x4 dlus high). This is not the issue reported there, but I would like to fix it and improve the layout.
So, how do I change locale? Especially from a just-built version of Wine.
I have tried: LANG=es ./wine winecfg LANG=es.UTF-8 ./wine winecfg LC_ALL=es ./wine winecfg LC_ALL=es.UTF-8 ./wine winecfg and export LANG=es && ./wine winecfg variants.
For me, LC_CTYPE=ja_JP.utf8 switches Wine to operate with Japanese codepage for font rendering and selection. See dlls/kernel32/locale.c for general POSIX locale to codepage mapping, and gdi32/freetype.c for nls_update_font_list which maps code pages to fonts for the Windows UI fonts which vary between countries. -- ----------------------------------------------------------- Paul "TBBle" Hampson, B.Sc, LPI, MCSE Very-later-year Asian Studies student, ANU The Boss, Bubblesworth Pty Ltd (ABN: 51 095 284 361) Paul.Hampson(a)Pobox.com Of course Pacman didn't influence us as kids. If it did, we'd be running around in darkened rooms, popping pills and listening to repetitive music. -- Kristian Wilson, Nintendo, Inc, 1989 License: http://creativecommons.org/licenses/by/2.5/au/ -----------------------------------------------------------
participants (5)
-
Detlef Riekenberg -
Igor Tarasov -
Michael Stefaniuc -
Paul TBBle Hampson -
Reece Dunn