Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(373)

Side by Side Diff: chrome/common/plural_formatter_example.grd

Issue 6736003: This adds a formatter for plurals that works for all locales. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: upload after rebase Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/plural_formatter.cc ('k') | chrome/common/plural_formatter_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4
5 This file contains an EXAMPLE of the six messages needed to use the
6 PluralFormatter class. This file is not (and SHOULD NOT BE) used by
7 any code: it just contains example messages that will be added to the
8 main string resource .grd file.
9
10 See plural_formatter.h for more information.
11
12 -->
13
14 <grit base_dir="." latest_public_release="0" current_release="1"
15 source_lang_id="en" enc_check="möl">
16 <release seq="1" allow_pseudo="false">
17 <messages fallback_to_english="true">
18
19 <!-- Begin Example Messages -->
20
21 <if expr="lang in ['ar', 'ro', 'lv']">
22 <message name="IDS_EELS_ZERO"
23 desc="Describes the number of eels in a hovercraft. NUMBER_ZERO is 0 (Arabic, Latvian) or 0, 2..19, 101..119, ... (Romanian). For other language s, do NOT translate.">
24 Your hovercraft has <ph name="NUMBER_ZERO"><ex>0</ex>#</ph> eels
25 </message>
26 </if>
27 <if expr="lang not in ['ar', 'ro', 'lv']">
28 <message translateable="false" name="IDS_EELS_ZERO"
29 desc="">
30 NA
31 </message>
32 </if>
33
34 <if expr="lang not in ['zh-CN', 'zh-TW', 'ko', 'ja', 'vi', 'tr', 'kn']">
35 <message name="IDS_EEL_ONE"
36 desc="Describes the number of eels in a hovercraft. NUMBER_ONE i s 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, Croa tian, Serbian, Latvian, Lithuanian), or 1, 101, 201, .. (Slovenian). Do NOT tran slate this for CJK, Vietnamese, Turkish and Kannada">
37 Your hovercraft has <ph name="NUMBER_ONE"><ex>1</ex>#</ph> eel.
38 </message>
39 </if>
40 <if expr="lang in ['zh-CN', 'zh-TW', 'ko', 'ja', 'vi', 'tr', 'kn']">
41 <message translateable="false" name="IDS_EEL_SINGULAR"
42 desc="">
43 NA
44 </message>
45 </if>
46
47 <if expr="lang in ['ga', 'sl', 'ar']">
48 <message name="IDS_EELS_TWO"
49 desc="Describes the number of eels in a hovercraft. NUMBER_TWO i s two or two-like/dual numbers : 2 (Arabic and Irish) or 2, 102, 202 ... (Slov enian). For other languages, do NOT translated.">
50 Your hovercraft has <ph name="NUMBER_TWO"><ex>2</ex>#</ph> eels
51 </message>
52 </if>
53 <if expr="lang not in ['ga', 'sl', 'ar']">
54 <message translateable="false" name="IDS_EELS_TWO"
55 desc="">
56 NA
57 </message>
58 </if>
59
60 <if expr="lang in ['ru', 'lt', 'hr', 'uk', 'cs', 'sk', 'pl', 'sl', 'ar']" >
61 <message name="IDS_EELS_FEW"
62 desc="Describes the number of eels in a hovercraft. NUMBER_FEW i s few or few-like numbers in Arabic, Russian, Polish, Croatian, Serbian, Ukraini an, Czech, Slovak, Slovenian, Latvian. For other languages, do NOT translate.">
63 Your hovercraft has <ph name="NUMBER_FEW"><ex>3</ex>#</ph> eels
64 </message>
65 </if>
66 <if expr="lang not in ['ru', 'lt', 'hr', 'uk', 'cs', 'sk', 'pl', 'sl', 'ar ']">
67 <message translateable="false" name="IDS_EELS_FEW"
68 desc="">
69 NA
70 </message>
71 </if>
72
73 <if expr="lang == 'ar'">
74 <message name="IDS_EELS_MANY"
75 desc="Describes the number of eels in a hovercraft. NUMBER_MANY is 11 through 99 in Arabic. For all other languages, do NOT translate.">
76 Your hovercraft has <ph name="NUMBER_MANY"><ex>23</ex>#</ph> eels
77 </message>
78 </if>
79 <if expr="lang != 'ar'">
80 <message translateable="false" name="IDS_EELS_MANY"
81 desc="">
82 NA
83 </message>
84 </if>
85
86 <message name="IDS_EELS_DEFAULT"
87 desc="Describes the number of eels in a hovercraft. This is nece ssary 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, Vie tnamese, Turkish and Kannada, this is the only string necessary. For languages w ith singular-plural distinction, this is the generic plural. For Lithuanian, NUM BER_DEFAULT is 11 .. 19.">
88 Your hovercraft has <ph name="NUMBER_DEFAULT"><ex>42</ex>#</ph> eels.
89 </message>
90
91 <!-- End Example Messages -->
92
93 </messages>
94 </release>
95 </grit>
OLDNEW
« no previous file with comments | « chrome/common/plural_formatter.cc ('k') | chrome/common/plural_formatter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698