OpenTTD 0.5.0-RC5

OpenTTD is a fully open-sourced reimplementation of TTD, written in C++, boasting improved gameplay and many new features.

Moderator: OpenTTD Developers

User avatar
chentz
Engineer
Engineer
Posts: 4
Joined: 14 Apr 2006 10:51

Post by chentz »

Rubidium wrote:Set a font with Simplified Chinese unicode glyphs in openttd.cfg as described in the readme.
:oops: I cannot find 'readme' in the game's directory and this topic. :oops:
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Post by Rubidium »

chentz wrote: :oops: I cannot find 'readme' in the game's directory and this topic. :oops:
Also no readme.txt? Anyway http://openttd.org/readme.txt
User avatar
chentz
Engineer
Engineer
Posts: 4
Joined: 14 Apr 2006 10:51

Post by chentz »

Rubidium wrote:
chentz wrote: :oops: I cannot find 'readme' in the game's directory and this topic. :oops:
Also no readme.txt? Anyway http://openttd.org/readme.txt
Thank you very much!I've found a way to solve this Q.

Here I offer the config lines(You have to copy the font file simsun.ttc):

small_font = simsun.ttc
medium_font = simsun.ttc
large_font = simsun.ttc
small_size = 8
medium_size = 12
large_size = 20
User avatar
glx
OpenTTD Developer
OpenTTD Developer
Posts: 622
Joined: 02 Dec 2005 15:43
Location: Drancy(93) - France
Contact:

Post by glx »

You can just write "simsun" and it will work without copying the font :)
mkko
Engineer
Engineer
Posts: 1
Joined: 26 Sep 2004 13:06
Location: Finland

Re: OpenTTD 0.5.0-RC5

Post by mkko »

Darkvater (on '[url=http://www.tt-forums.net/viewtopic.php?p=532327#532327]OpenTTD 0.5.0-RC1[/url]') wrote:
  • - Feature: [OSX] Macs with touchpads that support two finger scrolling can now use this feature to move around the map (r5460)
I have a MacBook (rev. A), but using two finger scroll on the map only zooms in and out. Should I enable this feature somehow?

-- Mikko
ickoonite
Engineer
Engineer
Posts: 21
Joined: 19 Jan 2007 02:38
Location: Cambridge, UK

Post by ickoonite »

thomasau wrote:We are having problems (I believe Jap/SC are having the same problem) on the date translation and the Company League table. First of all, could the date format be re-arranged to YYYYMMDD ? It looks more natural to Chinese and Japanese when the dates are in Chinese characters (kanji).
Japanese translator here seconding the call for configurable (or localisation-based) order of date display. DDMMYYYY makes very little sense in Japanese.
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Post by Rubidium »

ickoonite wrote:Japanese translator here seconding the call for configurable (or localisation-based) order of date display. DDMMYYYY makes very little sense in Japanese.
One question: does Japanese need the reverse order for all date formats in OTTD? So:
1th Jan 2000 becomes 2000 Jan 1th
January 2000 becomes 2000 January
01-01-2000 becomes 2000-01-01
ickoonite
Engineer
Engineer
Posts: 21
Joined: 19 Jan 2007 02:38
Location: Cambridge, UK

Post by ickoonite »

Rubidium wrote:One question: does Japanese need the reverse order for all date formats in OTTD? So:
1th Jan 2000 becomes 2000 Jan 1th
January 2000 becomes 2000 January
01-01-2000 becomes 2000-01-01
In a word, yes.

To my mind, the best way to solve this problem is just to have a localisable string, so that we could do something like:

For short dates:
English: {DAY}/{MONTH}/{YEAR}
Japanese: {2:YEAR}/{1:MONTH}/{0:DAY}

For long dates:
English: {DAY}{TH} {MONTH} {YEAR}
Japanese: {2:YEAR}nen{1:MONTH}gatsu{0:DAY}nichi
(except that instead of nen, gatsu and nichi you have Japanese characters)

The same applies to Chinese as well.

Hope this is useful. Any questions, just ask me.
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Post by Rubidium »

What I've got now (in english.txt)

Code: Select all

STR_DATE_TINY   :{STRING}-{STRING}-{NUM}
STR_DATE_SHORT  :{STRING} {NUM}
STR_DATE_LONG   :{STRING} {STRING} {NUM}
Which would translate to the following formatted strings:
DATE_TINY = 31-12-2006
DATE_SHORT = December 2006
DATE_LONG = 31st Dec 2006

The day and month of DATE_TINY are strings as they are zero-padded (those numbers are not in the translation file).

I hope that this is what you wanted. You can try it yourself with the attached diff.
Attachments
japanese_dates.png
japanese_dates.png (24.26 KiB) Viewed 3142 times
language_configurable_date_format.diff
Made for trunk r8889
(11.78 KiB) Downloaded 169 times
ickoonite
Engineer
Engineer
Posts: 21
Joined: 19 Jan 2007 02:38
Location: Cambridge, UK

Post by ickoonite »

Dude, you rock. :D That's excellent.
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Post by Rubidium »

The localisable date formatting is now in trunk.
It will not make it into 0.5.0 (there is no sense in adding it without changed strings). However, I think it is a candidate to be backported for 0.5.1.

Happy translating ;)
User avatar
Darkvater
Tycoon
Tycoon
Posts: 3053
Joined: 24 Feb 2003 18:45
Location: Hong Kong

Post by Darkvater »

TrueLight: "Did you bother to read any of the replies, or you just pressed 'Reply' and started typing?"
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
Locked

Return to “General OpenTTD”

Who is online

Users browsing this forum: No registered users and 7 guests