Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #12487
| From | David Lamb <dalamb@cs.queensu.ca> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: i18n/l10n question |
| Date | 2012-02-28 07:21 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <jiigt7$k6c$1@dont-email.me> (permalink) |
| References | <XnsA005D98F1F5D2jpnasty@94.75.214.39> |
On 26/02/2012 9:16 PM, Novice wrote: > I'd like all of my classes to be locale-sensitive so that all of the > things they are displaying in GUIs, including text and error messages, > are displayed in the user's language (or, more precisely, the language in > the resource bundle that is the "closest fit" to the language of the > user). My approach might be excessively convoluted, but I think it's appropriately more general that just getting the default locale. I have written and experimental program where the user might want to change locale while running the program, because they were demonstrating something to a non-native speaker on a machine where they wouldn't want to exit and restart with new locale parameters. Haven't had a chance to get very far yet, but I thought it might be useful in my university-level teaching environment where we get a lot of international students. In this case, the individual packages that report to users get told what the locale is and have to be prepared to have some package-appropriate collection of Observer class(es) be told to change in mid-stream. A package would have to register its Observer(s) with a central authority, which authority then reacts to GUI operations (such as a collection of language-specific menus, or a dialog box to set locale arbitrarily). Of course there also has to be some associated method for getting the localization strings but that's already well understood as involving property files or XML files. I really have to get back to that experiment; given all those international students it ought to be possible to get everything translated for some small example program.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
i18n/l10n question Novice <novice@example..com> - 2012-02-27 02:16 +0000
Re: i18n/l10n question Arne Vajhøj <arne@vajhoej.dk> - 2012-02-26 21:31 -0500
Re: i18n/l10n question Novice <novice@example..com> - 2012-02-27 04:30 +0000
Re: i18n/l10n question Arne Vajhøj <arne@vajhoej.dk> - 2012-02-27 17:01 -0500
Re: i18n/l10n question David Lamb <dalamb@cs.queensu.ca> - 2012-02-28 07:21 -0500
Re: i18n/l10n question Novice <novice@example..com> - 2012-02-29 14:46 +0000
Re: i18n/l10n question David Lamb <dalamb@cs.queensu.ca> - 2012-03-10 09:13 -0500
csiph-web