com.google.gwt.i18n.client |
Internationalization support for GWT applications.
GWT includes a flexible set of tools to help you internationalize your
applications and libraries. GWT internationalization support provides a
variety of techniques to internationalize strings, typed values, and classes.
|
Java Source File Name | Type | Comment |
ColorsAndShapes.java | Interface | TODO: document me. |
ColorsAndShapesAndConcepts.java | Interface | TODO: document me. |
Constants.java | Interface | A tag interface that facilitates locale-sensitive, compile-time binding of
constant values supplied from properties files. |
ConstantsWithLookup.java | Interface | Like
com.google.gwt.i18n.client.Constants , a tag interface that
facilitates locale-sensitive, compile-time binding of constant values
supplied from properties files with the added ability to look up constants at
runtime with a string key. |
DateRecord.java | Class | DateRecord class exposes almost the same set of interface as Date class with
only a few exceptions. |
DateTimeFormat.java | Class | Formats and parses dates and times using locale-sensitive patterns.
Patterns
Symbol |
Meaning |
Presentation |
Example |
G |
era designator |
Text |
AD |
y |
year |
Number |
1996 |
M |
month in year |
Text or Number |
July (or) 07 |
d |
day in month |
Number |
10 |
h |
hour in am/pm (1-12) |
Number |
12 |
H |
hour in day (0-23) |
Number |
0 |
m |
minute in hour |
Number |
30 |
s |
second in minute |
Number |
55 |
S |
fractional second |
Number |
978 |
E |
day of week |
Text |
Tuesday |
a |
am/pm marker |
Text |
PM |
k |
hour in day (1-24) |
Number |
24 |
K |
hour in am/pm (0-11) |
Number |
0 |
z |
time zone |
Text |
Pacific Standard Time |
Z |
time zone (RFC 822) |
Number |
-0800 |
v |
time zone (generic) |
Text |
Pacific Time |
' |
escape for text |
Delimiter |
'Date=' |
'' |
single quote |
Literal |
'o''clock' |
The number of pattern letters influences the format, as follows:
- Text
- if 4 or more, then use the full form; if less than 4, use short or
abbreviated form if it exists (e.g.,
"EEEE" produces
"Monday" , "EEE" produces "Mon" )
- Number
- the minimum number of digits.
|
DateTimeFormat_de_Test.java | Class | Tests formatting functionality in
DateTimeFormat for the German
language. |
DateTimeParse_en_Test.java | Class | Tests parsing functionality in
DateTimeFormat for the English
language. |
DateTimeParse_zh_CN_Test.java | Class | Tests formatting functionality in
DateTimeFormat for the Chinese
language. |
Dictionary.java | Class | Provides dynamic string lookup of key/value string pairs defined in a
module's host HTML page. |
I18N2Test.java | Class | TODO: document me. |
I18NTest.java | Class | Tests Internationalization. |
Localizable.java | Interface | A tag interface that serves as the root of a family of types used in static
internationalization. |
Messages.java | Interface | A tag interface that facilitates locale-sensitive, compile-time binding of
messages supplied from properties files. |
Moods.java | Interface | Testing class to represent Moods. |
NumberFormat.java | Class | Formats and parses numbers using locale-sensitive patterns.
This class provides comprehensive and flexible support for a wide variety of
localized formats, including
- Locale-specific symbols such as decimal point, group separator,
digit representation, currency symbol, percent, and permill
- Numeric variations including integers ("123"), fixed-point
numbers ("123.4"), scientific notation ("1.23E4"), percentages ("12%"), and
currency amounts ("$123")
- Predefined standard patterns that can be used both for parsing
and formatting, including
NumberFormat.getDecimalFormat() decimal ,
NumberFormat.getCurrencyFormat() currency ,
NumberFormat.getPercentFormat() percentages , and
NumberFormat.getScientificFormat() scientific
- Custom patterns and supporting features designed to make it
possible to parse and format numbers in any locale, including support for
Western, Arabic, and Indic digits
Patterns
Formatting and parsing are based on customizable patterns that can include a
combination of literal characters and special characters that act as
placeholders and are replaced by their localized counterparts. |
NumberFormat_en_Test.java | Class | GWT JUnit tests must extend GWTTestCase. |
NumberFormat_fr_Test.java | Class | GWT JUnit tests must extend GWTTestCase. |
NumberParse_en_Test.java | Class | GWT JUnit tests must extend GWTTestCase. |
NumberParse_fr_Test.java | Class | GWT JUnit tests must extend GWTTestCase. |
TestBinding.java | Interface | TODO: document me. |
TestConstants.java | Interface | Interface to represent the contents of resourcePattern bundle
com/google/gwt/i18n/client/TestConstants.properties. |
TestConstantsWithLookup.java | Interface | TODO: document me. |
TestLeafBundle.java | Class | TODO: document me. |
TestTypedMessages.java | Interface | TODO: document me. |