[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  ROM
. -> [Folder]  Running the server
. . -> [Subject]  Translating

Translating

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


Posted by Baturon   (2 posts)  [Biography] 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.
[Go to top] top

Posted by Nick Gammon   Australia  (23,017 posts)  [Biography] 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
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] 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
[Go to top] top

Posted by Baturon   (2 posts)  [Biography] bio
Date Reply #3 on Thu 06 Dec 2007 04:25 PM (UTC)
Message
okay.i not found commands.dat.where is it
[Go to top] top

Posted by Nick Gammon   Australia  (23,017 posts)  [Biography] 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
[Go to top] 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.


17,022 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]