I18N Section Index | Page 3
I need to present a "mask" on a GUI screen representing a date in the current locale's short format, which may include a 4-digit year. How do I know which field is the year? I can get the localized pattern used by the DateFormat object, but the symbols seem to change based on the Locale!
Use SimpleDateFormat.toPattern() to get the unlocalized pattern ( as opposed to toLocalizedPattern() ). The returned String uses the symbols referenced in the SimpleDateFormat documentation. F...more
One method involves modifying the existing pattern from "yy" to "yyyy". The DateFormat factory methods generally return a SimpleDateFormat. Use SimpleDateFormat's toPattern()...more
One place to check is Appendix C: Localization Word Lists in Java Look and Feel Design Guidelines, 2nd Edition. Common terms are given in several European and Asian languages. The bad news is th...more
Yes. Since JDK 1.2, the Lucida Sans ( Sans-serif), Lucida Bright ( Serif ) and Lucida Sans Typewriter ( Monospaced ) fonts have been included. There is a page in the JDK documentation about thes...more
Yes. Microsoft has made available the Arial Unicode MS Font for Publisher 2000. It supports "all of the approximately 40,000 alphabetical characters, ideographic characters, and symbols def...more
Java recognizes five font names: Serif, Sans-serif, Monospaced, Dialog and DialogInput along with four font styles: plain, bold, italic, and bolditalic regardless of platform. These are not real ...more
The primary one is do not name a ResourcePropertyBundle ( less the ".properties" extension ) the same as the application or any other class. The only exception would be for a ListResour...more
How can a message which embeds dynamic information be generalized?... How can a message which embeds dynamic information be generalized? For example, how can we use ResourceBundle to give the outpu...more
How can I use MessageFormat if I need to provide more... How can I use MessageFormat if I need to provide more than 10 parameters?
How do I get TimeZone descriptions - which countries a TimeZone is for - so I can display eg (GMT-9.00), Alaska (GMT-8.00), Pacific Time(US & Canada) etc
How do I get TimeZone descriptions - which countries a TimeZone is for - so I can display eg (GMT-9.00), Alaska (GMT-8.00), Pacific Time(US & Canada); Tijuana etc.
If an HTML form encoded in UTF-8 is presented, users may enter any character their computer allows into the form. This includes high ASCII characters, which the browser escapes as %NN. What must I do to properly decode their intended characters? Ex: the "Euro" symbol is hex value "80" on the PC but hex value "DB" on the Mac. There are also differences between international versions of windows as well, CPXXXX etc, where high ASCII values differ. On a side question, does the browser reliably take care of any conversion for me?
If an HTML form encoded in UTF-8 is presented, users... If an HTML form encoded in UTF-8 is presented, users may enter any character their computer allows into the form. This includes high ASCII c...more
The "best" choice depends on the application's requirements. Since the ListResourceBundle is based on a java class, for every modification a recompile is required which can be cumbersom...more
As several responders noted, java.sql.Date is a subclass of java.util.Date, with hour, minute, second and millisecond values set to zero. The various databases differ in their expectation of the ...more
Internationalization involves writing and designing an application so that it can be used with different languages, date, time, currency and other values without software modification. Localizati...more
How do you make locale sensitive classes accept your own resourceBundle classes? For example, how would I make DecimalFormat take my locale that points to my ResourceBundle? As far as I can see th...more