Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2000:
[Freeciv-Dev] Improved grammatic handling of nation names.
Home

[Freeciv-Dev] Improved grammatic handling of nation names.

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Improved grammatic handling of nation names.
From: Erik Sigra <freeciv@xxxxxxx>
Date: Mon, 21 Aug 2000 16:05:09 +0200

Hi,

This patch (2000-08-21) improves the grammatic handling of nation names.
It is needed for translations. It replaces the old system:

*name
*name_plural

With the new richer system (examples included):

*adjective_capitalized:Swedish, Svensk
*adjective:Swedish, svensk

and

+Nouns indefinite--------------------+-----------------------------+
|        |                           |genitive                     |
+--------+---------------------------+-----------------------------+
|singular|"a Swede", "en svensk"     |"a Swede's", "en svensks"    |
+--------+---------------------------+-----------------------------+
|plural  |"Swedes", "svenskar"       |"Swedes'", "svenskars"       |
+--------+---------------------------+-----------------------------+

+Nouns definite----------------------+-----------------------------+
|        |                           |genitive                     |
+--------+---------------------------+-----------------------------+
|singular|"the Swede", "svensken"    |"the Swede's", "svenskens"   |
+--------+---------------------------+-----------------------------+
|plural  |"the Swedes", "svenskarna" |"the Swedes'", "svenskarnas" |
+--------+---------------------------+-----------------------------+


See the source code for more info.

This is not a perfect sytem, but it is an improvement over the old. The
Swedish translation will be of better quality with this patch. I believe
that other european languages can benefit from it too. I don't know
about the exotic languages such as japanese, but I think it at least
can't get worse, and hopefully better. Maybe even the English version
can benefit from it.

Of course, there might be little errors here and there, English is not
my native language, but they can be corrected now and then as they
appear, once the concept is in. Some native english speaker can check it
out.

I was able to compile and run the program without crashes after the
chages.

Erik Sigra

Attachment: nation_name_i18n_improvement.diff.bz2
Description: Binary data


[Prev in Thread] Current Thread [Next in Thread]