summaryrefslogtreecommitdiffstats
path: root/vendor/golang.org/x/text/cmd/gotext/examples/extract/locales/en-US/out.gotext.json
blob: 31785bf809386b633b926f71c764b98636a46263 (plain)
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
{
    "language": "en-US",
    "messages": [
        {
            "id": "Hello world!",
            "message": "Hello world!",
            "translation": "Hello world!"
        },
        {
            "id": "Hello {City}!",
            "message": "Hello {City}!",
            "translation": "Hello {City}n",
            "placeholders": [
                {
                    "id": "City",
                    "string": "%[1]s",
                    "type": "string",
                    "underlyingType": "string",
                    "argNum": 1,
                    "expr": "city"
                }
            ]
        },
        {
            "id": "{Person} is visiting {Place}!",
            "message": "{Person} is visiting {Place}!",
            "translation": "{Person} is visiting {Place}!",
            "placeholders": [
                {
                    "id": "Person",
                    "string": "%[1]s",
                    "type": "string",
                    "underlyingType": "string",
                    "argNum": 1,
                    "expr": "person",
                    "comment": "The person of matter."
                },
                {
                    "id": "Place",
                    "string": "%[2]s",
                    "type": "string",
                    "underlyingType": "string",
                    "argNum": 2,
                    "expr": "place",
                    "comment": "Place the person is visiting."
                }
            ]
        },
        {
            "id": "{2} files remaining!",
            "message": "{2} files remaining!",
            "translation": "{2} files remaining!",
            "translatorComment": "Copied from source.",
            "placeholders": [
                {
                    "id": "2",
                    "string": "%[1]d",
                    "type": "int",
                    "underlyingType": "int",
                    "argNum": 1,
                    "expr": "2"
                }
            ],
            "fuzzy": true
        },
        {
            "id": "{N} more files remaining!",
            "message": "{N} more files remaining!",
            "translation": {
                "select": {
                    "feature": "plural",
                    "arg": "N",
                    "cases": {
                        "one": {
                            "msg": "One file remaining!"
                        },
                        "other": {
                            "msg": "There are {N} more files remaining!"
                        }
                    }
                }
            },
            "placeholders": [
                {
                    "id": "N",
                    "string": "%[1]d",
                    "type": "int",
                    "underlyingType": "int",
                    "argNum": 1,
                    "expr": "n"
                }
            ]
        },
        {
            "id": "Use the following code for your discount: {ReferralCode}",
            "message": "Use the following code for your discount: {ReferralCode}",
            "translation": "Use the following code for your discount: {ReferralCode}",
            "translatorComment": "Copied from source.",
            "placeholders": [
                {
                    "id": "ReferralCode",
                    "string": "%[1]d",
                    "type": "golang.org/x/text/cmd/gotext/examples/extract.referralCode",
                    "underlyingType": "int",
                    "argNum": 1,
                    "expr": "c"
                }
            ],
            "fuzzy": true
        },
        {
            "id": [
                "msgOutOfOrder",
                "{Device} is out of order!"
            ],
            "message": "{Device} is out of order!",
            "translation": "{Device} is out of order!",
            "comment": "FOO\n",
            "placeholders": [
                {
                    "id": "Device",
                    "string": "%[1]s",
                    "type": "string",
                    "underlyingType": "string",
                    "argNum": 1,
                    "expr": "device"
                }
            ]
        },
        {
            "id": "{Miles} miles traveled ({Miles_1})",
            "message": "{Miles} miles traveled ({Miles_1})",
            "translation": "{Miles} miles traveled ({Miles_1})",
            "placeholders": [
                {
                    "id": "Miles",
                    "string": "%.2[1]f",
                    "type": "float64",
                    "underlyingType": "float64",
                    "argNum": 1,
                    "expr": "miles"
                },
                {
                    "id": "Miles_1",
                    "string": "%[1]f",
                    "type": "float64",
                    "underlyingType": "float64",
                    "argNum": 1,
                    "expr": "miles"
                }
            ]
        }
    ]
}