Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ ROM ➜ Running the server ➜ Translating

Translating

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Baturon   (2 posts)  Bio
Date Sun 02 Dec 2007 02:00 PM (UTC)

Amended on Sun 02 Dec 2007 02:04 PM (UTC) by Baturon

Message
I want to translate ROM into my language.Commands,skills,battle reports(example "you misses")
and i change my title screen.How do i this? I using Rom (last version)...Thank you.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #1 on Sun 02 Dec 2007 07:28 PM (UTC)
Message
You can change commands by editing the commands.dat file.

You can change the welcome screen by editing one of the help files (and of course you can change the help messages).

You can change room descriptions, mob descriptions, and object descriptions by editing the area files.

As for stuff like "x misses y" that is a big, long job. You need to edit the source files, look for every string you want to translate, and replace it. I estimate there will be thousands of them.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #2 on Mon 03 Dec 2007 02:52 AM (UTC)
Message
And not only will you have thousands of strings to translate, but also, depending on your target language, some will simply not be translatable without more work.

A simple example is:

You see the 'x'.

You might think this translates to

Vous voyez le 'x' (in French)

but actually it's more complicated... you need to change "le" depending on what 'x' is. If 'x' is a feminine noun, you need "la" instead of "le"; if it starts with a vowel (or certain consonants, in some cases) you need l' instead of "le" or "la"...

Even if you don't aim to support multiple languages, you have a lot of work ahead of you. (Frankly, though, I'm not sure supporting multiple languages is that different from having to support a single language with a relatively complex grammar, compared to English's relatively simple agreement between components of a sentence.)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Baturon   (2 posts)  Bio
Date Reply #3 on Thu 06 Dec 2007 04:25 PM (UTC)
Message
okay.i not found commands.dat.where is it
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #4 on Thu 06 Dec 2007 07:45 PM (UTC)
Message
Sorry, I was thinking of Smaug.

ROM has its commands hard-coded into interp.c file.

For example:


const   struct  cmd_type        cmd_table       [] =
{
    /*
     * Common movement commands.
     */
    { "north",          do_north,       POS_STANDING,    0,  LOG_NEVER, 0 },
    { "east",           do_east,        POS_STANDING,    0,  LOG_NEVER, 0 },
    { "south",          do_south,       POS_STANDING,    0,  LOG_NEVER, 0 },
    { "west",           do_west,        POS_STANDING,    0,  LOG_NEVER, 0 },
    { "up",             do_up,          POS_STANDING,    0,  LOG_NEVER, 0 },
    { "down",           do_down,        POS_STANDING,    0,  LOG_NEVER, 0 },

    /*
     * Common other commands.
     * Placed here so one and two letter abbreviations work.
     */
    { "at",             do_at,          POS_DEAD,       L6,  LOG_NORMAL, 1 },
    { "cast",           do_cast,        POS_FIGHTING,    0,  LOG_NORMAL, 1 },


You would have to change those.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


18,166 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.