| Message |
I was recently asked in an email about translating SMAUG to Russian, so I will reproduce my reply here ...
You could do it, but it would be a lot of work. You would need to translate:
1. Area files (these have descriptions of rooms, objects, monsters in them)
2. Various parts of the C code have English messages, eg.
magic.c: send_to_char( "Ok.\n\r", ch );*/
magic.c: send_to_char( "You like yourself even better!\n\r", ch );
magic.c: send_to_char( "I don't think so...\n\r", ch );
magic.c: send_to_char( "You feel charmed...\n\r", victim );
magic.c: send_to_char( "Ok.\n\r", ch );*/
magic.c: send_to_char ("Do you want it to get warmer, colder, wetter, "
magic.c: send_to_char( "It is unable to hold water.\n\r", ch );
magic.c: send_to_char( "It contains some other liquid.\n\r", ch );
You would need to translate those to Spanish. There are 3843 instances of send_to_char alone.
3. You can translate the commands easily enough by editing commands.dat, eg.
#COMMAND
Name answer~
Code do_answer
Position 104
Level 0
Log 0
Flags 1
End
In this case you would change the word "answer" to whatever the Spanish equivalent is.
There are 456 commands to be changed like that.
4. You can translate the "socials" (eg. smile) by editing socials.dat, eg.
#SOCIAL
Name smile~
CharNoArg You smile happily.~
OthersNoArg $n smiles happily.~
CharFound You smile at $M.~
OthersFound $n beams a smile at $N.~
VictFound $n smiles at you.~
CharAuto You smile at yourself.~
OthersAuto $n smiles at $mself.~
End
There are 384 socials to be changed like that.
5. Various other files have English in them, eg. herbs.dat, skills.dat ...
#HERB
Name breadl~
Type Herb
Flags 0
Target 3
Minpos 5
Slot 5
Code spell_smaug
Dammsg ~
Wearoff Everything about you takes on it's normal drab tone.~
Hitvict Life takes on a brighter, crisper outlook as you savor the breadl's
flavor.~
Hitroom $N smiles as $s enjoys the mellow flavor of the breadl.~
Affect '10' 0 '' 4194304
End
There are 6 herbs and 266 skills.
You can find the source at www.smaug.org or on my site at http://www.gammon.com.au/downloads/dlsmaug.htm
You can compile under Unix (eg. Linux) or Cygwin under Windows.
It can be done, but as you can see you will be spending a lot of time changing all those words.
Here is a web page from someone who is translating SMAUG to Russian:
http://www.shadow-lands.com/sml/1999/msg07332.html
Good luck! |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|