Forums

[Issue] Japanese Locale

A game requires the PC to be set to Japanese locale. Can I achieve this using PlayOnMac?

Auteur Réponses
TestNamePlus Vendredi 15 Aoüt 2014 à 22:23
TestNamePlusAnonymous

I have a simple problem. I'm trying to play a game that requiers the computer to be set to a Japanese locale. It requires this, because you have to input the character name in Japanese (or you can simply confirm the default name, as long as your computer is set to Japanese locale.)

 

Changing the locale seems simple enough on a real PC, but how can I do this using PlayOnMac?

 

I'm using Wine version 1.4.1, if that helps.

 

Thanks in advance for any answers.

damned damien Samedi 22 Janvier 2022 à 17:49
damned damienAnonymous

Hi there,

It took me a little while to figure it out.

 

In fact, it has nothing to do with Windows... the locale settings are directly applied within the playonmac.app application (so, at the MacOS level).

 

Playonmac.app gets the locale settings automatically from the MacOS language used. You can see how by checking into the packet content of that application. To do so, you need to browse to playonmac.app/Contents/MacOS and edit the playonmac script there.

On the version 4.4.3, the locale part in that script is :

export RLANG="$CurrentLocale"
export LANG="$RLANG.UTF-8"
export LC_ALL="$LANG"

Now... I understand though that it may be hard to switch the OS language to simply play to a specially localized game cheeky.

 

I have used the following solution/workaround to set the locale I wanted :

1- Duplicate the Playonmac.app (and rename it to identify that it will be used for games using japanese locales).

2- Go and edit the playonmac script (using any editor like Textedit, vi...). Change the locale part (mentioned above) with the following :

export RLANG="$CurrentLocale"
export LANG="ja_JP.UTF-8"
export LC_ALL="$LANG"

Save the change.

3- You can launch that modified version of playonmac.app to run your favorite japanese's windows applications. As a plus, you may even specifically name the application shortcuts within playonmac for the applications/games that require the japanese locales.

 

Last rermark : this workaround can be used for any other locales (if you were looking of thinking else than japanese). You can check in a terminal all the available locales on your mac by using the following command :

locale -a

 

Cheers.

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmcayonlinux.com