On Thu, 05 Mar 2009 12:35:08 +0100, "Marc Schütz" <schue...@gmx.net> wrote: >> Hello Eddy, >> >> the aproach on >> http://wiki.openstreetmap.org/wiki/Sample_driving_instructions >> with MessageFormats (phrases with markers where to insert >> text-constants) seems to work fine and is what gettext and >> the i18n-aproach in Java are using. >> >> We have run into issues with the posibility of languages having >> multiple plural forms and adopted the solution gettext() is using. >> One simple expression to return the index of the plural form to use >> based on the number. >> >> In the case of finish >> http://wiki.openstreetmap.org/wiki/Talk:Sample_driving_instructions/fi_FI >> we encountered the issue that >> a) spoken and written instructions may differ >> (ignored for now) >> b) numbers/counts may differ based on what they refer to. >> (worked around for this one case but may come up again) > > Then there are those languages that have grammatical gender. The English > "Turn right into xxx street/way" for example, would be "Biege rechts ab in > die xxx-Straße/in den xxx-Weg" in German, where the article "den" or "die" > depends on the name of the street. This is currently worked around by > leaving the article out completely. > > Other languages have the habit of inflecting not only normal nouns but also > names. > > Isn't there software out there that can handle these things? Maybe we > should have a look at MediaWiki. They seem to take grammar into account.
I am not aware of any way to detect the gender of an arbitrary street/city -name in a given language. Are you? Mediawiki simply uses text-constants saved as pages in the "mediawiki:"-namespace. Marcus _______________________________________________ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev