Implement localisation for at least 2 reasons:
1. To make messages in VStar readable by all.
2. To fix number parsing errors such as that shown to me by the German Citizen Sky 2 participant today.
Also: Spanish, Portugese, ...?
Fixed number parsing bug reported by Bikeman (see tracker 3059737) in http://vstar.svn.sourceforge.net/viewvc/vstar?view=revision&revision=597
Jaime has suggested moving all menu item, dialog box text to files. Indeed, this is within the scope of this tracker item. We will probably use Java resource bundles to do this.
Aaron commented in this tracker (closed as duplicate):
English is the language of astronomy in that professional
meetings/conferences/etc. are almost always held in English regardless of
the host nation. So localization is probably less important for us than to
other fields. With that said, it of course would be nice.
I'm not sure how localization works. For example, is it easier to do an
entire program at once or can you do it piecemeal? If the latter, then one
area to focus on would be the comma vs. decimal point issue that some
European nations have (11.3 = 11,3). This was relatively common for me when
I first coded WebObs. Most europeans know how to fix this, but not all. So,
again, low priority but if someone wants to work on it, that's cool too.
Note that some localisation we get for free, e.g. in file dialog.
See tracker 3108092 re: numbers. This has been fixed, tested by Heinz.
The key remaining issue is to create and use resources for text strings for different locales.
See this page re: Java localisation API:
and in particular, the section titled "PropertyResourceBundle" re: the text file format. In the VStar context, an example of a property in such a property file is:
Then we'd have a Spanish and German translation of this text in separate files.
That text would be selected from the appropriate property file according to the locale instead of the hardcoded string on line 189 in this file:
This needs to be done ASAP for Jaime.
Note that a substantial portion of text has been localised in the last couple of releases, initially targeting Spanish.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.