com.google.gwt.i18n.client
Interface PluralRule
- All Known Implementing Classes:
- DefaultRule, DefaultRule_af, DefaultRule_am, DefaultRule_ar, DefaultRule_az, DefaultRule_be, DefaultRule_bg, DefaultRule_bh, DefaultRule_bn, DefaultRule_bo, DefaultRule_bs, DefaultRule_ca, DefaultRule_cs, DefaultRule_cy, DefaultRule_da, DefaultRule_de, DefaultRule_dz, DefaultRule_el, DefaultRule_en, DefaultRule_eo, DefaultRule_es, DefaultRule_et, DefaultRule_eu, DefaultRule_fa, DefaultRule_fi, DefaultRule_fil, DefaultRule_fo, DefaultRule_fr, DefaultRule_fur, DefaultRule_fy, DefaultRule_ga, DefaultRule_gl, DefaultRule_gu, DefaultRule_guw, DefaultRule_ha, DefaultRule_he, DefaultRule_hi, DefaultRule_hr, DefaultRule_hu, DefaultRule_id, DefaultRule_is, DefaultRule_it, DefaultRule_ja, DefaultRule_jv, DefaultRule_ka, DefaultRule_km, DefaultRule_kn, DefaultRule_ko, DefaultRule_ku, DefaultRule_lb, DefaultRule_ln, DefaultRule_lt, DefaultRule_lv, DefaultRule_mg, DefaultRule_mk, DefaultRule_ml, DefaultRule_mn, DefaultRule_mr, DefaultRule_ms, DefaultRule_mt, DefaultRule_nah, DefaultRule_nb, DefaultRule_ne, DefaultRule_nl, DefaultRule_nn, DefaultRule_no, DefaultRule_nso, DefaultRule_om, DefaultRule_or, DefaultRule_pa, DefaultRule_pap, DefaultRule_pl, DefaultRule_ps, DefaultRule_pt, DefaultRule_pt_br, DefaultRule_ro, DefaultRule_ru, DefaultRule_se, DefaultRule_sk, DefaultRule_sl, DefaultRule_smi, DefaultRule_smj, DefaultRule_sms, DefaultRule_so, DefaultRule_sq, DefaultRule_sr, DefaultRule_sv, DefaultRule_sw, DefaultRule_ta, DefaultRule_te, DefaultRule_th, DefaultRule_ti, DefaultRule_tk, DefaultRule_tr, DefaultRule_uk, DefaultRule_ur, DefaultRule_vi, DefaultRule_wa, DefaultRule_zh, DefaultRule_zu
public interface PluralRule
The interface that plural rules must implement. Implementations of
this interface will be used both at compile time (pluralForms) and
at run time (select), so implementations must be both translatable
and not reference JSNI methods.
|
Nested Class Summary |
static class |
PluralRule.PluralForm
Information about the plural forms supported by this rule which
will be used during code generation and by tools to provide
information to translators. |
pluralForms
PluralRule.PluralForm[] pluralForms()
- Returns the list of values which are valid for this rule. The
default or "other" plural form must be first in the list with
an index of 0 -- this form will be used if no other form applies
and is also mapped to the default text for a given message.
This method will be executed at compile time and may not contain
any references, even indirectly, to JSNI methods.
select
int select(int n)
- Returns the plural form appropriate for this count.
This method will be executed at runtime, so must be translatable.
- Parameters:
n - count of items to choose plural form for
- Returns:
- the plural form to use (must be a valid index
into the array returned by pluralForms).