- Linux wine japan locale
- How to achieve Japanese localization on Mac OSX?
- How to achieve Japanese localization on Mac OSX?
- How to achieve Japanese localization on Mac OSX?
- Re: How to achieve Japanese localization on Mac OSX?
- How to achieve Japanese localization on Mac OSX?
- How to achieve Japanese localization on Mac OSX?
- How to achieve Japanese localization on Mac OSX?
- How to achieve Japanese localization on Mac OSX?
- Thread: HOWTO: CJK in Wine (Chinese, Japanese & Korean)
- HOWTO: CJK in Wine (Chinese, Japanese & Korean)
- How do I change the locale of Wine to Japanese on Ubuntu 14.04?
- 2 Answers 2
- Not the answer you’re looking for? Browse other questions tagged wine japanese or ask your own question.
- Linked
- Related
- Hot Network Questions
- Subscribe to RSS
- Локализация Ubuntu Server 18.04 LTS
- Текущие настройки языка
- Список доступных локалей
- Добавить новую локаль
- Подробная информация о локалях
- Локаль по-умолчанию
- Быстрая локализация
- Удалить лишние локали
- Переводы для системных программ
- Локализация для текущей сессии
- Файлы конфигурации шрифта и клавиатуры
- Настройка шрифта и клавиатуры
- Linux wine japan locale
- WINE is ignoring locale settings
- Re: WINE is ignoring locale settings
- WINE is ignoring locale settings
- Re: WINE is ignoring locale settings
- WINE is ignoring locale settings
Linux wine japan locale
Post by Marvin_Arnold » Thu Nov 26, 2009 4:19 pm
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.
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!
How to achieve Japanese localization on Mac OSX?
Post by James McKenzie » Thu Nov 26, 2009 4:36 pm
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.
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!
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.
Post by Marvin_Arnold » Fri Nov 27, 2009 7:09 am
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.
Post by DaVince » Fri Nov 27, 2009 8:26 am
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.
Post by vitamin » Fri Nov 27, 2009 7:32 pm
DaVince wrote: 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.
How to achieve Japanese localization on Mac OSX?
Post by James McKenzie » Fri Nov 27, 2009 7:43 pm
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.
It doesn’t work on OSX. The system’s locale needs to be set to whatever user wants.
I think I know what the OP wants:
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.
How to achieve Japanese localization on Mac OSX?
Post by James McKenzie » Fri Nov 27, 2009 7:47 pm
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.
It doesn’t work on OSX. The system’s locale needs to be set to whatever user wants.
I just tried this with Wordpad to switch the language to French:
LANG=fr_FR.utf8 wine wordpad
The menus and other items displayed were American English.
Looks like it does not work.
Re: How to achieve Japanese localization on Mac OSX?
Post by vitamin » Fri Nov 27, 2009 8:00 pm
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?
Post by James McKenzie » Fri Nov 27, 2009 8:35 pm
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
Correct, vitamin. This makes changing the language for a Mac a real
bother.
I guess it is time to file an RFE to get this updated?
How to achieve Japanese localization on Mac OSX?
Post by James McKenzie » Fri Nov 27, 2009 8:39 pm
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
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.
How to achieve Japanese localization on Mac OSX?
Post by Charles Davis » Sat Nov 28, 2009 8:46 am
Only if it wasn’t set to begin with. Ken Thomases mad a big deal about
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.
How to achieve Japanese localization on Mac OSX?
Post by Charles Davis » Sat Nov 28, 2009 8:47 am
I tried to fix it with that patch, but it was soundly rejected by Ken.
Post by Marvin_Arnold » Sun Nov 29, 2009 8:19 am
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]
Источник
Thread: HOWTO: CJK in Wine (Chinese, Japanese & Korean)
Thread Tools
Display
HOWTO: CJK in Wine (Chinese, Japanese & Korean)
The system I tested it on was 32-bit Ubuntu Feisty 7.04.
The guide is provided at users’ own risk. I will try to provide support and answer questions in the thread, but if you somehow type something wrong and send your OS spiraling into /dev/null, don’t blame me.
UPDATE: The new WineLocale 0.41 attached to this thread also supports Arabic, Greek, Hebrew and Russian. It is no longer CJK only. However, because this thread is marked CJK in Wine, I won’t add the directions to it. Download the file and follow the extra steps in INSTALL to get these languages working.
OK, the web proved totally unhelpful for me to figure this out, so I imagine some of your out there in Ubuntu user-land are having the same problems.
Ordinarily, running a CJK application in Wine results in lots of garbled text. On a good day, you will get empty boxes. On a bad day, it looks like the ASCII table exploded.
No more. I put together a little shell script called WineLocale (after Microsoft’s AppLocale which solves the same problem on Windows). So far, it only supports Japanese, Korean, Simplified Chinese and Traditional Chinese. I don’t know enough about Hebrew, Arabic and Russian to add those. If you want to help out, by all means. Read
/.wineloc/patches/HOWTO after installing.
The below directions are all in WineLocale’s INSTALL file, but I’ve repeated them here because they have great generic use for anyone wondering about locales.
Just a note, purgelocales is not a solution because it refuses to show non-ASCII compatible mappings (for example, SJIS, which all pre-XP Japanese applications are).
Step 1: Getting the Locales
Execute the following:
Now open up the three files in a text editor and make certain each contains the following lines.
Источник
How do I change the locale of Wine to Japanese on Ubuntu 14.04?
I wish to run a game called «Morenatsu» on Ubuntu 14.04 via Wine. Morenatsu requires Applocale in Windows. Can I run Morenatsu in Applocale in Wine?
2 Answers 2
You can always run the game from the terminal instead of installing any other app and specify the language in the command:
In my case I wanted to play Saya no Uta (Japanese game with Japanese fonts) but it always showed squares and other non-Japanese symbols. I used to solve this kind of problem with AppLocale in Windows, but since I couldn’t find an AppLocale replacement for Ubuntu then I launched the game through the terminal like this
I remember that there was a tool called WineLocale that was made to mimic the functionality of AppLocale. But I have never really used it and the project site doesn’t seem to offer any downloads.
Not the answer you’re looking for? Browse other questions tagged wine japanese or ask your own question.
Linked
Related
Hot Network Questions
Subscribe to RSS
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev 2021.10.8.40416
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
Источник
Локализация Ubuntu Server 18.04 LTS
Локаль (locale или локализация) в Linux определяет, какой язык и какой набор символов (кодировку), пользователь видит в терминале. Посмотрим, как проверить текущие настройки языка и кодировки, как получить список всех доступных локалей, как сменить язык и кодировку для текущей сессии или установить их постоянно.
Для тех, кому лень читать всю статью до конца — чаще всего для локализации консоли достаточно повторно сконфигурировать пакет locales :
Сначала будут созданы нужные локали (их выбрать на первом экране), потом установлена локаль по умолчанию (ее выбрать на втором экране).
Текущие настройки языка
Посмотрим информацию о текущем языковом окружении:
Список доступных локалей
Теперь посмотрим список всех установленных языков и кодировок:
Есть только системная локаль C.UTF-8 , которая присутствует всегда. А нам надо добавить еще две локали — en_US.UTF-8 и ru_RU.UTF-8 .
Добавить новую локаль
Смотрим список всех поддерживаемых (доступных для установки) локалей:
Устанавливаем нужные локали — en_US.UTF-8 и ru_RU.UTF-8 :
Второй способ установить локали — расскомментровать нужные строки в файле /etc/locale.gen
И просто выполнить команду locale-gen без указания локалей:
Подробная информация о локалях
Более подробную информацию об установленных в системе локалях можно посмотреть так:
Часть локалей размещена в архиве /usr/lib/locale/locale-archive , а часть — в директориях внутри /usr/lib/locale/ .
Локаль по-умолчанию
Хорошо, нужные локали у нас теперь есть, осталось только задать локаль по умолчанию:
Эта команда запишет в файл /etc/default/locale строку:
После этого надо будет перезайти в систему. И проверяем информацию о языковом окружении:
Теперь все правильно, так что запишем эту информацию в файл /etc/default/locale :
Быстрая локализация
До сих пор мы все делали ручками, но если лень — можно просто повторно сконфигурировать пакет locales . Сначала будут созданы нужные локали (их нужно выбрать на первом экране), потом установлена локаль по умолчанию (ее нужно выбрать на втором экране).
Удалить лишние локали
После установки (генерации) локали, она помещается в архив /usr/lib/locale/locale-archive . Файл архива — это файл, отображаемый в память, который содержит все локали системы; он используется всеми локализованными программами. Посмотреть список локалей в архиве можно с помощью команды:
Удалить заданную локаль из файла архива:
Обратите внимание на название локали — ru_UA.utf8 , а не ru_UA.UTF-8 . Если неправильно указать локаль — она не будет удалена из архива:
В случае, если утилита locale-gen была вызвана с опцией —no-archive , надо удалить соответствующую директорию в /usr/lib/locale :
Переводы для системных программ
Локализация для основных системных программ, чтобы получать сообщения на русском языке:
Локализация для текущей сессии
Достаточно временно установить переменную окружения LANG в текущей сессии терминала:
Или даже так — передать переменную LANG конкретной программе:
Файлы конфигурации шрифта и клавиатуры
Настройки можно найти в файлах конфигурации /etc/default/console-setup и /etc/default/keyboard :
Это системные настройки, пользователь может создать свои в файлах
Настройка шрифта и клавиатуры
Чтобы сформировать файлы конфигурации /etc/default/console-setup и /etc/default/keyboard можно использовать команды:
После того, как файлы конфигурации будут сформированы, нужно выполнить команду setupcon без аргументов или перезагрузить систему.
Источник
Linux wine japan locale
Post by dziki » Sun Jun 13, 2010 11:36 am
Even on plain WINEPREFIX I am unable to get Polish-specific chars to work.
On unix (Arch x64) everytching works fine.
Wine is setting wrong codepage in registry ( in HKEY_CURRENT_USER\Software\Wine\Fonts\Codepages apears «1252,437» while it should be «1252,437»)
doesn’t do the job. Both on wine wine-1.1.43 and wine-1.2_rc2-1
Help me pleas
Post by PaulVriens » Sun Jun 13, 2010 12:36 pm
export LANG=pl_PL.UTF-8
winecfg (or whatever).
Post by dziki » Sun Jun 13, 2010 1:12 pm
PaulVriens wrote: Try:
export LANG=pl_PL.UTF-8
winecfg (or whatever).
I’ve checked codepage in registry, it’s wrong one.
Maybe some of this will help:
WINE is ignoring locale settings
Post by James McKenzie » Sun Jun 13, 2010 1:30 pm
Even on plain WINEPREFIX I am unable to get Polish-specific chars to work.
On unix (Arch x64) everytching works fine.
Wine is setting wrong codepage in registry ( in HKEY_CURRENT_USER\Software\Wine\Fonts\Codepages apears «1252,437» while it should be «1252,437»)
$ LC_ALL=pl_PL wine notepad.exe
— or —
$ export LC_ALL=pl_PL
$ export LANG=pl_PL
$ wine notepad.exe
There is a way to force this, but since I’m on a Mac it does not work.
I actually have to change the codepage at the top of the screen for this
to work.
Post by PaulVriens » Sun Jun 13, 2010 1:33 pm
Yeah, sorry that last reply of mine didn’t make sense (as you’ve already tried that).
If I start with pl_PL.UTF-8 on a clean .wine I get 1250,852 in the registry. (1252,437 normally for me).
So sorry, no idea what is wrong on your box.
Re: WINE is ignoring locale settings
Post by dziki » Sun Jun 13, 2010 1:48 pm
Sorry, it should be, for pl_PL.utf8: 1250,852. But in registry i have 1252,437 ( en_Us.C)
So there a way to force wine to use codepage and ignore LC_* LANG etc. ? Where can i find it?
Might it all because wine looks for UTF-8 and ignores utf8?
I don’t know if it has something in common but I found that glibc converts UTF-8 to utf8, and programs should use its functions to get locale and charsets not system vars.
WINE is ignoring locale settings
Post by James McKenzie » Sun Jun 13, 2010 1:53 pm
export LANG=pl_PL.UTF-8
winecfg (or whatever).
Nothing changes
$ export LANG=pl_PL.UTF-8
$ mkdir /tmp/l
$ export WINEPREFIX=/tmp/l
$ wine notepad.exe
I’ve checked codepage in registry, it’s wrong one.
Maybe some of this will help:
$ locale -a
C
en_US
en_US.iso88591
en_US.utf8
pl_PL
pl_PL.iso88592
pl_PL.utf8
polish
POSIX
ru_RU.utf8
ru_UA.utf8
Code:
$ WINEDEBUG=warn+keyboard wine notepad.exe
warnX11DRV_KEYBOARD_DetectLayout 6 keysyms per keycode not supported, set to 4
warnX11DRV_KEYBOARD_DetectLayout Using closest match (Polish (programmer’s) keyboard layout) for scan/virtual codes mapping.
warnX11DRV_InitKeyboard vkey 010D is being used by more than one keycode
Looks like the use of Polish and Cyrillic is causing problems here, but
I’m not certain.
Re: WINE is ignoring locale settings
Post by dziki » Sun Jun 13, 2010 2:23 pm
Post by dziki » Mon Jun 14, 2010 8:07 am
After: WINEDEBUG=trace+all wine notepad.exe &> log i found that wine ignores pl_PL in some way.
Is there a way to determine why wine flips back to C locale?
WINE is ignoring locale settings
Post by James McKenzie » Fri Jun 18, 2010 9:46 pm
After: WINEDEBUG=trace+all wine notepad.exe &> log i found that wine ignores pl_PL in some way.
Is there a way to determine why wine flips back to C locale?
$ cat log | grep GetLocaleInfoW
001d:trace:nls:GetLocaleInfoW (lcid=0x409,lctype=0x1004,0xffea3f40,2)
001d:trace:nls:GetLocaleInfoW (lcid=0x409,lctype=0x1004,0xffea3f40,2) returning number 1252
001d:trace:nls:GetLocaleInfoW (lcid=0x409,lctype=0x1011,0xffea3f48,2)
001d:trace:nls:GetLocaleInfoW (lcid=0x409,lctype=0x1011,0xffea3f48,2) returning number 10000
001d:trace:nls:GetLocaleInfoW (lcid=0x409,lctype=0xb,0xffea3f4c,2)
001d:trace:nls:GetLocaleInfoW (lcid=0x409,lctype=0xb,0xffea3f4c,2) returning number 437
001d:trace:nls:GetLocaleInfoW (lcid=0x409,lctype=0x1030,0xffea3f44,2)
001d:trace:nls:GetLocaleInfoW (lcid=0x409,lctype=0x1030,0xffea3f44,2) returning number 28591
001d:trace:imports:import_dll — GetLocaleInfoW kernel32.dll.506 = 0x7ee32ea0
001d:trace:imports:import_dll — GetLocaleInfoW kernel32.dll.506 = 0x7ee0e4f0
001d:trace:imports:import_dll — GetLocaleInfoW kernel32.dll.506 = 0x7ee0e4f0
001d:trace:imports:import_dll — GetLocaleInfoW kernel32.dll.506 = 0x7ee0e4f0
001d:trace:imports:import_dll — GetLocaleInfoW KERNEL32.dll.285 = 0x7ee0e4f0
001d:trace:nls:GetLocaleInfoW (lcid=0x409,lctype=0x1004,0x34facc,2)
001d:trace:nls:GetLocaleInfoW (lcid=0x409,lctype=0x1004,0x34facc,2) returning number 1252
001d:trace:nls:GetLocaleInfoW (lcid=0x409,lctype=0xb,0x34fac4,2)
001d:trace:nls:GetLocaleInfoW (lcid=0x409,lctype=0xb,0x34fac4,2) returning number 437
Looks like this is in your registry. Can you check what locale is set
there?
Источник