From: brett l. <wak...@gm...> - 2006-07-11 20:46:47
|
On 7/11/06, John A. Tamplin <ja...@ja...> wrote: > brett lentz wrote: > > >Of course. I was more meaning things like the many static strings > >that we use on buttons and labels (e.g. "ok" and "done") or static > >numbers like SQRT3 that are duplicated across the GUI files, etc. > > > > > Speaking of strings, what is the plan for localization? I have always > used GNU gettext myself, but I am not sure how that works with the Java > approach (even though I see there is a port of gettext to Java). > > If we aren't using something like that, then perhaps isolating all the > UI strings into a single class would make it easier to localize, perhaps > even using ClassLoader to load the appropriate one from a preference > setting. > > It's too bad Sun didn't include java.lang.Math.SQRT3 etc, and that you > can't easily add constant definitions to a class. > Java has it's own localisation methods and classes under java.util.Locale and java.util.ResourceBundle. The current plan for localization in Rails is fairly loose. Erik has started a basic amount of using the Locale class and LocalisedText.properties. I was thinking that I might at least round up all the strings and make them available for translating. ---Brett. |