Language Support: Japanese

Having trouble with the game? Report issues and get help here. Read this first!

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
Post Reply
Drake Dun

Language Support: Japanese

Post by Drake Dun »

Hello all. I have been following Wesnoth which much joy for a few months now and I just installed version .9.1b. I am an American but I live in Japan and speak Japanese and have a Japanese OS installed on my machine.

The Japanese for Wesnoth should be replaced with English until it can be done right. First, half of it doesn't even work. Even in the main menu, half of the buttons have no labels. Second, where it does work, it is *utter* nonsense. I speak Japanese nearly fluently, and trust me, with the way the Japanese looks right now most Japanese people would have an easier time with English.

I would be willing to do some translation work for this project, if you want. It won't be as good as if a native speaker did it, perhaps, but it will be a *lot* better than what there is right now.

Also, there should be an option to pick your language in the installer. It wouldn't bother me if the Japanese was comprehensible, but since it isn't I would like to be able to pick English. I can't figure out anyway to install the game in English now, so I have to dig throught the screwed up menus or not play.

Let me know if you want any further comments or translation help.

-Drake
User avatar
Viliam
Translator
Posts: 1341
Joined: January 30th, 2004, 11:07 am
Location: Bratislava, Slovakia
Contact:

Re: Language Support: Japanese

Post by Viliam »

Drake Dun wrote:Also, there should be an option to pick your language in the installer. It wouldn't bother me if the Japanese was comprehensible, but since it isn't I would like to be able to pick English. I can't figure out anyway to install the game in English now, so I have to dig throught the screwed up menus or not play.
IMHO, the language is not selected during install, but only after the game is installed. (The game is installed with all languages; that is, unless you download "wesnoth-lite" edition.)

At first run, the language is detected automatically from you OS. On main screen one of buttons means "select language" - click it, and select English. Your selection is saved in configuration file, so next time you start game, it will be automatically in English.
sanna
Posts: 425
Joined: June 5th, 2004, 9:59 am
Location: Halmstad, Sweden

Post by sanna »

First of all, I must ask if you have installed the japanese font?

You can find the download link here: http://wesnoth.slack.it/?WesnothAsianLanguages

We are still in a bit of a quandary if we should include it in the main distribution or not, simply because of its huge size. But so far we have opted not to. I would imagine that lacking that font would lead to quite some oddities. If the problem persists after installing the font, could you please give us a screenshot, either here, or preferably at http://bugs.wesnoth.org adding information on what os you are using.

And as Villiam said, by clicking the Language button, you select which language you want to be your default language.
Drake Dun

Wesnoth in Japanese

Post by Drake Dun »

Pardon me if there are typos in this message. I am pretty drunk.

I was able to switch Wesnoth to English. Thank you.

When I ran Wesnoth previously, the nonsense that it showed *was* in Japanese. Assuming the standard Japanese fonts are installed, it should not be necessary to install another Japanese font. Howeve,r I installed the Japanese font you linked me too and it still looked the same.

Here is a screenshot.

http://www.immortalcoil.org/drake/wsnth_jp.jpg

I don't know if you read any Japanese, but half the stuff on that screen is total nonsense.

If you want any more infor or anything like that let me know.

Keep up the good work,
Drake
User avatar
Viliam
Translator
Posts: 1341
Joined: January 30th, 2004, 11:07 am
Location: Bratislava, Slovakia
Contact:

Re: Wesnoth in Japanese

Post by Viliam »

Drake Dun wrote:I don't know if you read any Japanese, but half the stuff on that screen is total nonsense.
Seems to me like kanji characters are missing, and only hiragana ones are displayed. In the localization file ja.po (CVS) there seems to be more text than is displayed on the screenshot.

However, I do not speak Japanese, neither have proper fonts installed, so most of what I wrote is guessing... The string "Tome of Wesnoth" seems to be translated as "Wesnoth<2-UTF8- characters>", but on the screenshot there is only "Wesnoth<1-hiragana-character>" displayed, which has the meaning "... of Wesnoth". I think the secong character is not displayed.
okyada
Posts: 5
Joined: March 29th, 2005, 7:17 pm

Post by okyada »

Hello,

I'm a Japanese translation maintainer of Wesnoth.
What is the Japanese OS you are using ?

I also had a problem displaying Kanji characters (only Kanji, Hiragana was OK) at first when I was trying on MS-Windows with Sazanami-font.
My old screenshot is also there in:
http://wesnoth.slack.it/?JapaneseTranslation
at Screenshot section, "failed on Windows".

Actually, the modified sdl_ttf is included in the Wesnoth, so if your playing binaries are compiled properly, you can see the Japanese messages correctly. I still hear some people having trouble displaying Kanji characters on some platforms.
So, are you using any packages prepared by other guys, or compiled by yourself ?
I'll check your binaries or how you build the game if I can.
okyada
Posts: 5
Joined: March 29th, 2005, 7:17 pm

Japanese messages on Windows binaries

Post by okyada »

Sorry, you mentioned .9.1b in the first post, which means you are using 0.9.1b Windows binaries available from the official download page, right ?
I'll check it later. Maybe the Windows binary packager isn't using the local SDL_ttf.[ch].

I had written some memo about how to build the Wesnoth on Windows to display Japanese messages correctly on
http://wesnoth.homeip.net/win32/README.txt
There are also old packages(0.9.0) I created there on
http://wesnoth.homeip.net/win32/
You can try them if you want. They are not including Installer though.
okyada
Posts: 5
Joined: March 29th, 2005, 7:17 pm

Post by okyada »

Hi, I have just tried the binary installation and confirmed the corrupt Japanese messages.
But then I just copied sazanami-gothic.ttf to installed directory (C:\Program Files\Wesnoth\fonts ) and now I can see the correct messages.
I think the Windows binary works pretty fine.

If you are actually missing the font, you would see the error messages in stderr.txt on the installed directory as follows:

started music
3963
showing title screen...
3964
error display: Failed opening font 'sazanami-gothic.ttf'
error display: Failed opening font 'sazanami-gothic.ttf'
error display: Failed opening font 'sazanami-gothic.ttf'
error display: Failed opening font 'sazanami-gothic.ttf'
error display: Failed opening font 'sazanami-gothic.ttf'
(... repeated)
Drake Dun

Got it working.

Post by Drake Dun »

Okay, when I put that font in the fonts folder in the Wesnoth directory, it started working. Wouldn't it make more sense to just use a system font?

Thanks for the help, and keep up the good work.

-Drake
ott
Inactive Developer
Posts: 838
Joined: September 28th, 2004, 10:20 am

Re: Got it working.

Post by ott »

Drake Dun wrote:Wouldn't it make more sense to just use a system font?
Most certainly, if we knew that there was a typeface guaranteed to exist on all our supported platforms. Unfortunately, there isn't one, which is why we are relying on a free font instead. Note that Windows, Mac OS X and the various flavours of Unix/Linux we support have very different ideas of what the "system" fonts are.
This quote is not attributable to Antoine de Saint-Exupéry.
User avatar
Viliam
Translator
Posts: 1341
Joined: January 30th, 2004, 11:07 am
Location: Bratislava, Slovakia
Contact:

Re: Got it working.

Post by Viliam »

ott wrote:Note that Windows, Mac OS X and the various flavours of Unix/Linux we support have very different ideas of what the "system" fonts are.
How about specifying a sequence of fonts? Similar to how CSS does it; e.g. like this:

font="windows-japanese-font.ttf, mac-japanese-font.ttf, free-japanese-font.ttf"
ott
Inactive Developer
Posts: 838
Joined: September 28th, 2004, 10:20 am

Re: Got it working.

Post by ott »

Viliam wrote:How about specifying a sequence of fonts?
We already use a sequence, from wesnoth/ja.po:

Code: Select all

msgid "Vera.ttf,Bepa-Roman.ttf,FreeSans.ttf,sazanami-gothic.ttf"
msgstr "Vera.ttf,Bepa-Roman.ttf,FreeSans.ttf,sazanami-gothic.ttf"
although this is only giving a single font option for Japanese and Chinese. Could someone investigate whether adding a system font to that list would work?
This quote is not attributable to Antoine de Saint-Exupéry.
Post Reply