Index: chrome/common/plural_formatter_example.grd |
diff --git a/chrome/common/plural_formatter_example.grd b/chrome/common/plural_formatter_example.grd |
new file mode 100644 |
index 0000000000000000000000000000000000000000..31dddee1e00ba43b7c1995acc419979077ac6527 |
--- /dev/null |
+++ b/chrome/common/plural_formatter_example.grd |
@@ -0,0 +1,95 @@ |
+<?xml version="1.0" encoding="UTF-8"?> |
+ |
+<!-- |
+ |
+This file contains an EXAMPLE of the six messages needed to use the |
+PluralFormatter class. This file is not (and SHOULD NOT BE) used by |
+any code: it just contains example messages that will be added to the |
+main string resource .grd file. |
+ |
+See plural_formatter.h for more information. |
+ |
+--> |
+ |
+<grit base_dir="." latest_public_release="0" current_release="1" |
+ source_lang_id="en" enc_check="möl"> |
+ <release seq="1" allow_pseudo="false"> |
+ <messages fallback_to_english="true"> |
+ |
+<!-- Begin Example Messages --> |
+ |
+ <if expr="lang in ['ar', 'ro', 'lv']"> |
+ <message name="IDS_EELS_ZERO" |
+ desc="Describes the number of eels in a hovercraft. NUMBER_ZERO is 0 (Arabic, Latvian) or 0, 2..19, 101..119, ... (Romanian). For other languages, do NOT translate."> |
+ Your hovercraft has <ph name="NUMBER_ZERO"><ex>0</ex>#</ph> eels |
+ </message> |
+ </if> |
+ <if expr="lang not in ['ar', 'ro', 'lv']"> |
+ <message translateable="false" name="IDS_EELS_ZERO" |
+ desc=""> |
+ NA |
+ </message> |
+ </if> |
+ |
+ <if expr="lang not in ['zh-CN', 'zh-TW', 'ko', 'ja', 'vi', 'tr', 'kn']"> |
+ <message name="IDS_EEL_ONE" |
+ desc="Describes the number of eels in a hovercraft. NUMBER_ONE is one or one-like numbers : 1 (many European and most Indian languages), 1 and 0 (French, Brazilian Portuguese and Hindi), 1,21,31, .. (Russian, Ukrainian, Croatian, Serbian, Latvian, Lithuanian), or 1, 101, 201, .. (Slovenian). Do NOT translate this for CJK, Vietnamese, Turkish and Kannada"> |
+ Your hovercraft has <ph name="NUMBER_ONE"><ex>1</ex>#</ph> eel. |
+ </message> |
+ </if> |
+ <if expr="lang in ['zh-CN', 'zh-TW', 'ko', 'ja', 'vi', 'tr', 'kn']"> |
+ <message translateable="false" name="IDS_EEL_SINGULAR" |
+ desc=""> |
+ NA |
+ </message> |
+ </if> |
+ |
+ <if expr="lang in ['ga', 'sl', 'ar']"> |
+ <message name="IDS_EELS_TWO" |
+ desc="Describes the number of eels in a hovercraft. NUMBER_TWO is two or two-like/dual numbers : 2 (Arabic and Irish) or 2, 102, 202 ... (Slovenian). For other languages, do NOT translated."> |
+ Your hovercraft has <ph name="NUMBER_TWO"><ex>2</ex>#</ph> eels |
+ </message> |
+ </if> |
+ <if expr="lang not in ['ga', 'sl', 'ar']"> |
+ <message translateable="false" name="IDS_EELS_TWO" |
+ desc=""> |
+ NA |
+ </message> |
+ </if> |
+ |
+ <if expr="lang in ['ru', 'lt', 'hr', 'uk', 'cs', 'sk', 'pl', 'sl', 'ar']"> |
+ <message name="IDS_EELS_FEW" |
+ desc="Describes the number of eels in a hovercraft. NUMBER_FEW is few or few-like numbers in Arabic, Russian, Polish, Croatian, Serbian, Ukrainian, Czech, Slovak, Slovenian, Latvian. For other languages, do NOT translate."> |
+ Your hovercraft has <ph name="NUMBER_FEW"><ex>3</ex>#</ph> eels |
+ </message> |
+ </if> |
+ <if expr="lang not in ['ru', 'lt', 'hr', 'uk', 'cs', 'sk', 'pl', 'sl', 'ar']"> |
+ <message translateable="false" name="IDS_EELS_FEW" |
+ desc=""> |
+ NA |
+ </message> |
+ </if> |
+ |
+ <if expr="lang == 'ar'"> |
+ <message name="IDS_EELS_MANY" |
+ desc="Describes the number of eels in a hovercraft. NUMBER_MANY is 11 through 99 in Arabic. For all other languages, do NOT translate."> |
+ Your hovercraft has <ph name="NUMBER_MANY"><ex>23</ex>#</ph> eels |
+ </message> |
+ </if> |
+ <if expr="lang != 'ar'"> |
+ <message translateable="false" name="IDS_EELS_MANY" |
+ desc=""> |
+ NA |
+ </message> |
+ </if> |
+ |
+ <message name="IDS_EELS_DEFAULT" |
+ desc="Describes the number of eels in a hovercraft. This is necessary for every language. This is the default for all the numbers NOT covered by special cases (singular, dual/two, few, many) some languages need. For CJK, Vietnamese, Turkish and Kannada, this is the only string necessary. For languages with singular-plural distinction, this is the generic plural. For Lithuanian, NUMBER_DEFAULT is 11 .. 19."> |
+ Your hovercraft has <ph name="NUMBER_DEFAULT"><ex>42</ex>#</ph> eels. |
+ </message> |
+ |
+<!-- End Example Messages --> |
+ |
+ </messages> |
+ </release> |
+</grit> |