How to achieve Japanese localization on Mac OSX?
-
- Level 2
- Posts: 13
- Joined: Fri Sep 11, 2009 6:50 pm
How to achieve Japanese localization on Mac OSX?
Hi everybody,
hope this isn't to nooby...
How do I localize my wine (windows) system to japanese? (i.e. correct Kanji/Kana rendering) I found the WineLocale page, but it's for Ubuntu, and the shell commands are quite different, and I'm not that versed with shells amyway...
http://ubuntuforums.org/showthread.php?t=383628
Basically I want to do the same on OSX; maybe there is a page out there explaining everything, but if so, I haven't been able to find it...
Sorry for bothering if the answer is too simple (I wish...)
Thanks!
M:A:
hope this isn't to nooby...
How do I localize my wine (windows) system to japanese? (i.e. correct Kanji/Kana rendering) I found the WineLocale page, but it's for Ubuntu, and the shell commands are quite different, and I'm not that versed with shells amyway...
http://ubuntuforums.org/showthread.php?t=383628
Basically I want to do the same on OSX; maybe there is a page out there explaining everything, but if so, I haven't been able to find it...
Sorry for bothering if the answer is too simple (I wish...)
Thanks!
M:A:
How to achieve Japanese localization on Mac OSX?
Marvin_Arnold wrote:
Are you attempting to try to run Japanese at the same time you are
running MacOSX in a different language?
This would be something to discuss with Apple.
James McKenzie
M:A:Hi everybody,
hope this isn't to nooby...
How do I localize my wine (windows) system to japanese? (i.e. correct Kanji/Kana rendering) I found the WineLocale page, but it's for Ubuntu, and the shell commands are quite different, and I'm not that versed with shells amyway...
http://ubuntuforums.org/showthread.php?t=383628
Basically I want to do the same on OSX; maybe there is a page out there explaining everything, but if so, I haven't been able to find it...
Sorry for bothering if the answer is too simple (I wish...)
Thanks!
M:A:
Are you attempting to try to run Japanese at the same time you are
running MacOSX in a different language?
This would be something to discuss with Apple.
James McKenzie
-
- Level 2
- Posts: 13
- Joined: Fri Sep 11, 2009 6:50 pm
Actually, I want to test a japanese windows program inside wine. Text rendering inside the program is OK (I seem to have the necessary fonts), but during installation i see only ASCII gibberish. Same with the program's menu and system messages. So troubleshooting on the Windows side is impossible.
I don't want to change my OSX localization, only the Windows (inside wine) localization. (It's wine in Win98 mode, btw) Maybe there's something fundamental about it I just don't see...
Thanks,
M:A:
I don't want to change my OSX localization, only the Windows (inside wine) localization. (It's wine in Win98 mode, btw) Maybe there's something fundamental about it I just don't see...
Thanks,
M:A:
How to achieve Japanese localization on Mac OSX?
vitamin wrote:
The Mac is set to something like American English.
The program to be displayed is Japanese.
I do think this is doable, but the appropriate variables have to be set
before running Wine, just like you do in Linux (or any other UNIX for
that matter).
Davince may be correct in the running, but I don't have a Japanese
program to test this with.
James McKenzie
I think I know what the OP wants:DaVince wrote:
It doesn't work on OSX. The system's locale needs to be set to whatever user wants.Have you tried running this?
LANG=ja_JP.utf8 wine program.exe
I believe that someone mentioned earlier that this might not work under OSX, but I'm not sure so it's worth a shot.
The Mac is set to something like American English.
The program to be displayed is Japanese.
I do think this is doable, but the appropriate variables have to be set
before running Wine, just like you do in Linux (or any other UNIX for
that matter).
Davince may be correct in the running, but I don't have a Japanese
program to test this with.
James McKenzie
How to achieve Japanese localization on Mac OSX?
vitamin wrote:
LANG=fr_FR.utf8 wine wordpad
The menus and other items displayed were American English.
Looks like it does not work.
James McKenzie
I just tried this with Wordpad to switch the language to French:DaVince wrote:
It doesn't work on OSX. The system's locale needs to be set to whatever user wants.Have you tried running this?
LANG=ja_JP.utf8 wine program.exe
I believe that someone mentioned earlier that this might not work under OSX, but I'm not sure so it's worth a shot.
LANG=fr_FR.utf8 wine wordpad
The menus and other items displayed were American English.
Looks like it does not work.
James McKenzie
Re: How to achieve Japanese localization on Mac OSX?
No, according to this code: http://source.winehq.org/source/dlls/ke ... le.c#L2943James McKenzie wrote:I do think this is doable, but the appropriate variables have to be set before running Wine, just like you do in Linux (or any other UNIX for that matter).
It resets "LANG" environment variable with the locale it got from the system. Also see this message from wine-devel: http://www.winehq.org/pipermail/wine-de ... 80062.html
How to achieve Japanese localization on Mac OSX?
vitamin wrote:
bother.
I guess it is time to file an RFE to get this updated?
James McKenzie
Correct, vitamin. This makes changing the language for a Mac a realJames McKenzie wrote:
No, according to this code: http://source.winehq.org/source/dlls/ke ... le.c#L2943I do think this is doable, but the appropriate variables have to be set before running Wine, just like you do in Linux (or any other UNIX for that matter).
It resets "LANG" environment variable with the locale it got from the system. Also see this message from wine-devel: http://www.winehq.org/pipermail/wine-de ... 80062.html
bother.
I guess it is time to file an RFE to get this updated?
James McKenzie
How to achieve Japanese localization on Mac OSX?
vitamin wrote:
However, it did not. I'll read more on the thread in Wine-devel.
James McKenzie
Hmmm. The message seems to imply that using LC_MESSAGES would work.James McKenzie wrote:
No, according to this code: http://source.winehq.org/source/dlls/ke ... le.c#L2943I do think this is doable, but the appropriate variables have to be set before running Wine, just like you do in Linux (or any other UNIX for that matter).
It resets "LANG" environment variable with the locale it got from the system. Also see this message from wine-devel: http://www.winehq.org/pipermail/wine-de ... 80062.html
However, it did not. I'll read more on the thread in Wine-devel.
James McKenzie
How to achieve Japanese localization on Mac OSX?
vitamin wrote:
that when I first submitted my patch.
On that line, you'll notice that the third parameter to setenv() is 0.
That parameter tells the OS not to overwrite the value of LANG if it's
already set.
Chip
Only if it wasn't set to begin with. Ken Thomases mad a big deal aboutIt resets "LANG" environment variable with the locale it got from the system.
that when I first submitted my patch.
On that line, you'll notice that the third parameter to setenv() is 0.
That parameter tells the OS not to overwrite the value of LANG if it's
already set.
Chip
How to achieve Japanese localization on Mac OSX?
James McKenzie wrote:
I tried to fix it with that patch, but it was soundly rejected by Ken.
One was already filed. See http://bugs.winehq.org/show_bug.cgi?id=20377 .I guess it is time to file an RFE to get this updated?
I tried to fix it with that patch, but it was soundly rejected by Ken.
-
- Level 2
- Posts: 13
- Joined: Fri Sep 11, 2009 6:50 pm
Wow! That's a lot of activity I've caused. Hope you are onto something...
Perhaps I should clarify what I tried to do:
- My MacBookPro is set to German
- Take a Program written for Japanese Windows
- run the installer with wine: I get all sorts of gibberish
- by try and error, install program
- run program: in-program text rendering is japanese, program messages (like what I suppose means "Would you really like to quit? Yes/No") are ASCII gibberish
When I try to set the language variable preceding "wine program.exe" as described in this thread, I get:
(I've read somewhere that some programs won't even install on non-Japanese systems, which can be fixed in XP by localizing it from System Preferences)
It seems that the method in the link I posted solves that problem, but it is written for Ubuntu, and I don't know enough about Linux to emulate these things on OSX. File structure is different, as are many shell commands...[/code]
Perhaps I should clarify what I tried to do:
- My MacBookPro is set to German
- Take a Program written for Japanese Windows
- run the installer with wine: I get all sorts of gibberish
- by try and error, install program
- run program: in-program text rendering is japanese, program messages (like what I suppose means "Would you really like to quit? Yes/No") are ASCII gibberish
When I try to set the language variable preceding "wine program.exe" as described in this thread, I get:
Code: Select all
Unhandled exception: page fault on read access to 0x0000000c in 32-bit code (0x00414710).
It seems that the method in the link I posted solves that problem, but it is written for Ubuntu, and I don't know enough about Linux to emulate these things on OSX. File structure is different, as are many shell commands...[/code]
How to achieve Japanese localization on Mac OSX?
James McKenzie wrote:
work! On Mac OS, you have to put a dash between the "UTF" and the "8":
ja_JP.UTF-8. (Or you can type ja_JP.utf-8.) And if you want Shift-JIS,
then you need to tack on a .SJIS: ja_JP.SJIS.
Chip
What did you use? If you tacked on a .utf8, then of course it didn'tvitamin wrote:Hmmm. The message seems to imply that using LC_MESSAGES would work.James McKenzie wrote:
No, according to this code: http://source.winehq.org/source/dlls/ke ... le.c#L2943I do think this is doable, but the appropriate variables have to be set before running Wine, just like you do in Linux (or any other UNIX for that matter).
It resets "LANG" environment variable with the locale it got from the system. Also see this message from wine-devel: http://www.winehq.org/pipermail/wine-de ... 80062.html
However, it did not. I'll read more on the thread in Wine-devel.
work! On Mac OS, you have to put a dash between the "UTF" and the "8":
ja_JP.UTF-8. (Or you can type ja_JP.utf-8.) And if you want Shift-JIS,
then you need to tack on a .SJIS: ja_JP.SJIS.
Chip
James McKenzie
-
- Level 2
- Posts: 13
- Joined: Fri Sep 11, 2009 6:50 pm
Re: How to achieve Japanese localization on Mac OSX?
Charles, that did the trick! (LANG=ja_JP.SJIS) My wine now talks Japanese!Charles Davis wrote:James McKenzie wrote:What did you use? If you tacked on a .utf8, then of course it didn'tvitamin wrote:Hmmm. The message seems to imply that using LC_MESSAGES would work.James McKenzie wrote:
No, according to this code: http://source.winehq.org/source/dlls/ke ... le.c#L2943
It resets "LANG" environment variable with the locale it got from the system. Also see this message from wine-devel: http://www.winehq.org/pipermail/wine-de ... 80062.html
However, it did not. I'll read more on the thread in Wine-devel.
work! On Mac OS, you have to put a dash between the "UTF" and the "8":
ja_JP.UTF-8. (Or you can type ja_JP.utf-8.) And if you want Shift-JIS,
then you need to tack on a .SJIS: ja_JP.SJIS.
ChipJames McKenzie
Thank you very much!
ありがとうごやいます、先生!
M:A:
How to achieve Japanese localization on Mac OSX?
Charles Davis wrote:
I was trying to use fr_FR.utf-8...
Here is what happened in terminal:
fixme:richedit:ME_HandleMessage EM_GETLANGOPTIONS: stub
fixme:richedit:ME_HandleMessage EM_SETLANGOPTIONS: stub
fixme:richedit:ME_HandleMessage EM_SETEDITSTYLE: stub
fixme:richedit:IRichEditOle_fnSetHostNames stub 0x4a3330 WordPad Document
fixme:richedit:ME_HandleMessage EM_SETTARGETDEVICE doesn't use non-NULL
target devices
fixme:richedit:IRichEditOle_fnInPlaceDeactivate stub 0x4a3330
And the language remained en_US.utf-8 for the program....
James McKenzie
Chip:James McKenzie wrote:
What did you use? If you tacked on a .utf8, then of course it didn'tvitamin wrote:
Hmmm. The message seems to imply that using LC_MESSAGES would work.James McKenzie wrote:
No, according to this code: http://source.winehq.org/source/dlls/ke ... le.c#L2943
It resets "LANG" environment variable with the locale it got from the system. Also see this message from wine-devel: http://www.winehq.org/pipermail/wine-de ... 80062.html
However, it did not. I'll read more on the thread in Wine-devel.
work! On Mac OS, you have to put a dash between the "UTF" and the "8":
ja_JP.UTF-8. (Or you can type ja_JP.utf-8.) And if you want Shift-JIS,
then you need to tack on a .SJIS: ja_JP.SJIS.
I was trying to use fr_FR.utf-8...
Here is what happened in terminal:
fixme:richedit:ME_HandleMessage EM_GETLANGOPTIONS: stub
fixme:richedit:ME_HandleMessage EM_SETLANGOPTIONS: stub
fixme:richedit:ME_HandleMessage EM_SETEDITSTYLE: stub
fixme:richedit:IRichEditOle_fnSetHostNames stub 0x4a3330 WordPad Document
fixme:richedit:ME_HandleMessage EM_SETTARGETDEVICE doesn't use non-NULL
target devices
fixme:richedit:IRichEditOle_fnInPlaceDeactivate stub 0x4a3330
And the language remained en_US.utf-8 for the program....
James McKenzie
How to achieve Japanese localization on Mac OSX?
James McKenzie wrote:
Chip
Ah, I see.Charles Davis wrote:Chip:James McKenzie wrote:
What did you use? If you tacked on a .utf8, then of course it didn'tvitamin wrote:
Hmmm. The message seems to imply that using LC_MESSAGES would work.
However, it did not. I'll read more on the thread in Wine-devel.
work! On Mac OS, you have to put a dash between the "UTF" and the "8":
ja_JP.UTF-8. (Or you can type ja_JP.utf-8.) And if you want Shift-JIS,
then you need to tack on a .SJIS: ja_JP.SJIS.
I was trying to use fr_FR.utf-8...
That's not enough information. Can you attach a +nls log?Here is what happened in terminal:
fixme:richedit:ME_HandleMessage EM_GETLANGOPTIONS: stub
fixme:richedit:ME_HandleMessage EM_SETLANGOPTIONS: stub
fixme:richedit:ME_HandleMessage EM_SETEDITSTYLE: stub
fixme:richedit:IRichEditOle_fnSetHostNames stub 0x4a3330 WordPad Document
fixme:richedit:ME_HandleMessage EM_SETTARGETDEVICE doesn't use non-NULL
target devices
fixme:richedit:IRichEditOle_fnInPlaceDeactivate stub 0x4a3330
Chip
Re: How to achieve Japanese localization on Mac OSX?
Sorry to be a total newbie, but where do you find this setting? user.reg?Marvin_Arnold wrote:Charles, that did the trick! (LANG=ja_JP.SJIS) My wine now talks Japanese!Charles Davis wrote:James McKenzie wrote:What did you use? If you tacked on a .utf8, then of course it didn'tvitamin wrote: Hmmm. The message seems to imply that using LC_MESSAGES would work.
However, it did not. I'll read more on the thread in Wine-devel.
work! On Mac OS, you have to put a dash between the "UTF" and the "8":
ja_JP.UTF-8. (Or you can type ja_JP.utf-8.) And if you want Shift-JIS,
then you need to tack on a .SJIS: ja_JP.SJIS.
ChipJames McKenzie
Thank you very much!
ありがとうごやいます、先生!
M:A:
How to achieve Japanese localization on Mac OSX?
Am Sonntag, den 03.01.2010, 05:20 -0600 schrieb desu:
LC_MESSAGES?
set them in a terminal. `env` will show you which are set and you can
set them using `export`, I think, or setting them in front of the
command.
$ LC_MESSAGES="ja_JP.SJIS" wine start.exe
I cannot test this. But there is plenty of information on the WWW.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://www.winehq.org/pipermail/wine-us ... chment.pgp>
Strange, did not they write in the thread not to use LANG butMarvin_Arnold wrote:Charles Davis wrote:Charles, that did the trick! (LANG=ja_JP.SJIS) My wine now talks Japanese!James McKenzie wrote: What did you use? If you tacked on a .utf8, then of course it didn't
work! On Mac OS, you have to put a dash between the "UTF" and the "8":
ja_JP.UTF-8. (Or you can type ja_JP.utf-8.) And if you want Shift-JIS,
then you need to tack on a .SJIS: ja_JP.SJIS.
LC_MESSAGES?
Did you read the link above? These are environment variables. You canSorry to be a total newbie, but where do you find this setting? user.reg?
set them in a terminal. `env` will show you which are set and you can
set them using `export`, I think, or setting them in front of the
command.
$ LC_MESSAGES="ja_JP.SJIS" wine start.exe
I cannot test this. But there is plenty of information on the WWW.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://www.winehq.org/pipermail/wine-us ... chment.pgp>
Re: How to achieve Japanese localization on Mac OSX?
I see. That wont be possible then since I'm using the Darwine (Wine.app) binary. I wonder if I can edit something in the package to change this environment variables and make it permanent.
Re: How to achieve Japanese localization on Mac OSX?
not sure how Mike made his Wine.app launch.. but if it uses its own bash or sh session using your default environment variables without over-writing anything, you can just edit your ~/.bash_profile and add in what you want on all bash sessions.desu wrote:I see. That wont be possible then since I'm using the Darwine (Wine.app) binary. I wonder if I can edit something in the package to change this environment variables and make it permanent.
Re: How to achieve Japanese localization on Mac OSX?
Sorry, complete newbie here. Where do I even input this string of code, I experimented on my own, tried to put it into the DOS prompt in my Wine thing. Also tried Terminal. and now my desktop icons flicker on and off screen without warning. Help. 

-
- Newbie
- Posts: 1
- Joined: Sun Apr 19, 2015 11:03 pm
Re: How to achieve Japanese localization on Mac OSX?
I know this thread is old now but is there curing a way to run a japanese app local in wine on a mac?