Each string tag contains exactly one text string in a given language.
Here are some examples from the U.S. English file:
|
OK
Cancel
Apply
Cluster Map
[B]Have questions? Found a bug? Want a feature?[/B] Send
your e-mail to <spacemonger@sixty-five.cc> and we will
be happy to hear what you have to say.[BR]
|
Here are the same examples from the French language file:
|
OK
Annuler
Appliquer
Plan des cluster
[B]Des questions? Trouvé un bug? Besoin d'une
nouvelle fonctionnalité?[/B] Envoyez vos email
à <spacemonger@sixty-five.cc> et nous seront
heureux de vous écouter.[BR]
|
When SpaceMonger wants to display a string of text, such as "Cancel",
it searches the database to find the appropriate string to display. Thus
to display the correct string for a "Cancel" button in French, SpaceMonger
searches for commmon/buttons/Cancel, thus finding
the "Cancel" string inside the "buttons" group which is inside the "common"
group:
When it finds that string, it then knows to display "Annuler" every
time it wants to display "Cancel".
The text for "help" above is obviously a fake example,
but it serves to demonstrate several important principles. First, in
several places where long text strings can be displayed, SpaceMonger will
automatically wrap the text to additional lines as necessary. Second,
you can use HTML entities (things like &...;)
instead of the literal characters. (You should use entities like é
instead of é wherever possible, because it helps to
maintain portability.) Third, long strings
can often be formatted using HTML-like tags; for example, [BR] for
"line-break" and [I] for italics.
If you're not interested in foreign languages and you're only intrested
in customization, you can replace the strings for a variety of different
effects. For example, here's the same set of strings in California Surfer:
|
Duuude
Weak
Sweet
Cluster Me
[B]Like got questions? Somethin' lame? Awesome concept?[/B]
Dude, whip your e-mail over to <spacemonger@sixty-five.cc>
and we'll like totally read it and shoot one back.[BR]
|
In general, you should be sure to match capitalization if your language
uses capitalization. So if you see a string named "Cancel",
you should replace it with "Annuler" and not "annuler"
or "ANNULER".
By the way, if you're preparing a configuration file for a new language,
be sure to test in several different fonts to make sure that all of your
text fits without any getting chopped off. In particular, if your language
uses Roman or Cyrillic characters, be sure to test with both of Microsoft's
Arial and Verdana fonts, because Arial is SpaceMonger's default, and Verdana
is very wide.
If you're doing a complete translation, there are some strings to
which you should pay special attention:
|
$text and $text
from $text
|
SpaceMonger will use the "and" string in places where it needs to join two
strings together with the conjunction "and". The two $texts will be replaced
with the actual strings being joined. Thus if SpaceMonger wants to display
"1 folder and 2 files" it will insert
"1 folder" and "2 files"
in place of both $texts in "$text and $text".
This string describes how to display percentages. It says that
the number ($text) will go before a % symbol.
If this is not appropriate in your language (for example, if you prefer
to have the % before the number) you should change this
string accordingly.
These two strings describe what symbols to use to format numbers. If
you don't use . to separate whole numbers from fractions or
, to separate thousands-digits, you should change these strings
to whatever your language uses.
The short-date and long-date strings describe how
to format dates for display. Every language does this differently, so
you should adjust these strings accordingly.
|
...
English translation by Sean Werkema <seanw@sixty-five.cc>[BR]
|
If you're doing a foreign-language translation, you should be sure to
put your name and e-mail address in the contact information so that
people who find errors in the text know who to contact to get them fixed.