/
420.txt
86 lines (64 loc) · 2.72 KB
/
420.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
* [CODE[Plural-Forms:]] 欄 (.PO)
[1]
[PRE(example code)[
Plural-Forms: nplurals=2; plural=(n != 1);
]PRE]
[2]
[PRE(example code)[
Plural-Forms: nplurals=2; plural=n != 1;
]PRE]
[3]
[PRE(example code)[
Plural-Forms: nplurals=1; plural=0;
]PRE]
[4]
[PRE(example code)[
Plural-Forms: nplurals=2; plural=(n==1?0:1);
]PRE]
[5]
[PRE(example code)[
Plural-Forms: nplurals=2; plural=n>1;
]PRE]
* 日本語
[6] [[複数形]]は、[[接尾辞]]「[DFN[[[群]]]]」と訳すことがあります。
[FIG(quote)[
[FIGCAPTION[
[7] [CITE@ar[Plural Forms - Arabeyes Wiki - ويكي عربآيز]]
([TIME[2015-04-25 22:23:56 +09:00]] 版)
<http://www.arabeyes.org/Plural_Forms>
]FIGCAPTION]
> For Mozilla products (Firefox, Thunderbird, Sunbird, Fennec), the case where n == 0 is shifted to become the last case (due to some backward compatibility with the older plural rule).
> Plural formula
> This is the plural formula used for the forms above:
> nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 ? 4 : 5;
> An exception for Mozilla products is:
> nplurals=6; plural=n==0 ? 5 : n==1 ? 0 : n==2 ? 1 : n%100>=3 && n%100<=10 ? 2 : n%100>=11 ? 3 : 4;
]FIG]
[8] [CITE[mozilla mozilla/intl/locale/src/PluralForm.jsm]]
([TIME[2008-03-13 08:52:06 +09:00]] 版)
<http://mxr.mozilla.org/mozilla/source/intl/locale/src/PluralForm.jsm#39>
[9] [CITE[Plural Forms — Localization Guide 0.9.0 documentation]]
([TIME[2015-03-12 03:51:13 +09:00]] 版)
<http://localization-guide.readthedocs.org/en/latest/l10n/pluralforms.html>
[10] [CITE[Language Plural Rules]]
([TIME[2015-04-01 02:08:49 +09:00]] 版)
<http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html>
[11] [CITE@en-US[Localization and Plurals - Mozilla | MDN]]
([TIME[2014-05-27 20:01:28 +09:00]] 版)
<https://developer.mozilla.org/en-US/docs/Mozilla/Localization/Localization_and_Plurals>
[FIG(quote)[
[FIGCAPTION[
[12] [CITE[Mozilla L10N :: トピックを表示 - ''''''[''''''fixed'''''']''''''%S つ]]
([TIME[2015-04-25 22:38:34 +09:00]] 版)
<http://forums.firehacks.org/l10n/viewtopic.php?t=2722>
]FIGCAPTION]
> %Sが10以上になることを考えると「%S つ」ではまずいと思います。
> 改善案: %S 個 or %S 件
> PluralForm.jsmで「1-9とそれ以外」のplural rule新設を主張すれば、通るでしょうか...?
]FIG]
[13] [CITE[GNU gettext utilities: Plural forms]]
([TIME[2015-04-25 22:43:45 +09:00]] 版)
<https://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html>
[14] [CITE@en[gecko-dev/PluralForm.jsm at master · mozilla/gecko-dev]]
([TIME[2015-04-26 11:43:04 +09:00]] 版)
<https://github.com/mozilla/gecko-dev/blob/master/intl/locale/PluralForm.jsm>