rails-i18n 5.1.2 → 5.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/README.md +19 -22
- data/rails/locale/en-AU.yml +12 -2
- data/rails/locale/en-CA.yml +8 -1
- data/rails/locale/en-CY.yml +7 -0
- data/rails/locale/en-GB.yml +9 -2
- data/rails/locale/en-IE.yml +8 -1
- data/rails/locale/en-IN.yml +9 -2
- data/rails/locale/en-NZ.yml +8 -1
- data/rails/locale/en-US.yml +2 -0
- data/rails/locale/en-ZA.yml +4 -0
- data/rails/locale/es-419.yml +2 -0
- data/rails/locale/es-AR.yml +2 -0
- data/rails/locale/es-CL.yml +2 -0
- data/rails/locale/es-CO.yml +2 -0
- data/rails/locale/es-CR.yml +2 -0
- data/rails/locale/es-EC.yml +2 -0
- data/rails/locale/es-ES.yml +2 -0
- data/rails/locale/es-MX.yml +2 -0
- data/rails/locale/es-NI.yml +2 -0
- data/rails/locale/es-PA.yml +2 -0
- data/rails/locale/es-PE.yml +2 -0
- data/rails/locale/es-US.yml +2 -0
- data/rails/locale/es-VE.yml +2 -0
- data/rails/locale/he.yml +1 -1
- data/rails/locale/sr.yml +2 -0
- data/rails/pluralization/hu.rb +2 -2
- data/rails/transliteration/fa.yml +47 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b27cc2fbe3eb1192768fb88f710a25692fd4bfc
|
4
|
+
data.tar.gz: 97773d24cb73497882574a939dc77e9850d5d0c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4dd3799373bb597c969580b696fc8f77739f59284e6a4942b4a42433fa4928966a3ed87fa280b44ba994eafe5db8490471344e2b1f8286833b3ef899e666706
|
7
|
+
data.tar.gz: bb9ebc09793e14d715b4dff68f87ea3a674f782af1d5a46fd4c4a54b4a761e5e707c2cf6a35de4b13e200588752fb7cc8117cf730956b7fe8e690ed52567b5cd
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
## 5.1.3 (2019-01-28)
|
2
|
+
|
3
|
+
- Update following locales:
|
4
|
+
- Spanish (es-*)
|
5
|
+
- English (en-*)
|
6
|
+
- Hungarian (hu)
|
7
|
+
- Hebrew (he)
|
8
|
+
- Cyrillic Serbian (sr)
|
9
|
+
- Farsi/Persian (fa)
|
10
|
+
|
1
11
|
## 5.1.2 (2018-10-29)
|
2
12
|
- Add Telugu (te) locale
|
3
13
|
- Update following locales:
|
data/README.md
CHANGED
@@ -4,11 +4,11 @@ Rails Locale Data Repository
|
|
4
4
|
[](http://badge.fury.io/rb/rails-i18n)
|
5
5
|
[](http://travis-ci.org/svenfuchs/rails-i18n)
|
6
6
|
|
7
|
-
|
7
|
+
Centralization of locale data collection for Ruby on Rails.
|
8
8
|
|
9
|
-
## Gem
|
9
|
+
## Gem Installation
|
10
10
|
|
11
|
-
|
11
|
+
Include the gem to your Gemfile:
|
12
12
|
|
13
13
|
gem 'rails-i18n', '~> 5.1' # For 5.0.x, 5.1.x and 5.2.x
|
14
14
|
gem 'rails-i18n', '~> 4.0' # For 4.0.x
|
@@ -17,20 +17,17 @@ Add to your Gemfile:
|
|
17
17
|
gem 'rails-i18n', github: 'svenfuchs/rails-i18n', branch: 'rails-4-x' # For 4.x
|
18
18
|
gem 'rails-i18n', github: 'svenfuchs/rails-i18n', branch: 'rails-3-x' # For 3.x
|
19
19
|
|
20
|
-
|
20
|
+
Alternatively, execute the following command:
|
21
21
|
|
22
22
|
gem install rails-i18n -v '~> 5.1' # For For 5.0.x, 5.1.x and 5.2.x
|
23
23
|
gem install rails-i18n -v '~> 4.0' # For 4.0.x
|
24
24
|
gem install rails-i18n -v '~> 3.0' # For 3.x
|
25
25
|
|
26
|
-
Note that your
|
26
|
+
Note that your Ruby on Rails version must be 3.0 or higher in order to install the `rails-i18n` gem. For rails 2.x, install it manually as described in the Manual Installation section below.
|
27
27
|
|
28
28
|
## Configuration
|
29
29
|
|
30
|
-
|
31
|
-
transliteration rules available in the gem. This behaviour can be changed, if you
|
32
|
-
specify in `config/environments/*` the locales which have to be loaded via
|
33
|
-
`I18n.available_locales` option:
|
30
|
+
`rails-i18n` gem initially loads all available locale files, pluralization and transliteration rules. This default behaviour can be changed. If you specify in `config/environments/*` the locales which have to be loaded via `I18n.available_locales` option:
|
34
31
|
|
35
32
|
config.i18n.available_locales = ['es-CO', :de]
|
36
33
|
|
@@ -38,9 +35,9 @@ or
|
|
38
35
|
|
39
36
|
config.i18n.available_locales = :nl
|
40
37
|
|
41
|
-
## Manual
|
38
|
+
## Manual Installation
|
42
39
|
|
43
|
-
Download
|
40
|
+
Download desired locale files found in [rails/locale](http://github.com/svenfuchs/rails-i18n/tree/master/rails/locale/) directory and move them into the `config/locales` directory of your Rails application.
|
44
41
|
|
45
42
|
If any translation doesn't suit well to the requirements of your application, edit them or add your own locale files.
|
46
43
|
|
@@ -52,7 +49,7 @@ Locale data whose structure is compatible with Rails 2.3 are available on the se
|
|
52
49
|
|
53
50
|
## Available Locales
|
54
51
|
|
55
|
-
Available locales
|
52
|
+
Available locales:
|
56
53
|
|
57
54
|
> af, ar, az, be, bg, bn, bs, ca, cs, cy, da, de, de-AT, de-CH, de-DE, el, el-CY,
|
58
55
|
> en, en-AU, en-CA, en-GB, en-IE, en-IN, en-NZ, en-US, en-ZA, en-CY,eo, es,
|
@@ -62,7 +59,7 @@ Available locales are:
|
|
62
59
|
> pa, pl, pt, pt-BR, rm, ro, ru, sk, sl, sq, sr, sw, ta, te, th, tl, tr, tt, ug,
|
63
60
|
> ur, uz, vi, wo, zh-CN, zh-HK, zh-TW, zh-YUE
|
64
61
|
|
65
|
-
Complete locales
|
62
|
+
Complete locales:
|
66
63
|
|
67
64
|
> af, da, de, de-AT, de-CH, de-DE, en-US, es, es-419, es-AR, es-CL, es-CO, es-CR, es-EC,
|
68
65
|
> es-ES, es-MX, es-NI, es-PA, es-PE, es-US, es-VE, et, fa, fr, fr-CA, fr-CH, fr-FR, id, ja, ka, ml, nb,
|
@@ -78,7 +75,7 @@ Currently, most locales are incomplete. Typically they lack the following keys:
|
|
78
75
|
|
79
76
|
We always welcome your contributions!
|
80
77
|
|
81
|
-
## Currency
|
78
|
+
## Currency Symbols
|
82
79
|
|
83
80
|
Some locales have the symbol of the currency (e.g. `€`) under the key `number.currency.format.unit`,
|
84
81
|
while others have the code (e.g. `CHF`). The value of the key depends on the widespread adoption of
|
@@ -87,7 +84,7 @@ the unicode currency symbols by fonts.
|
|
87
84
|
For example the Turkish Lira sign (`₺`) was recently added in Unicode 6.2 and while most popular
|
88
85
|
fonts have a glyph, there are still many fonts that will not render the character correctly.
|
89
86
|
|
90
|
-
If you want to provide a different value,
|
87
|
+
If you want to provide a different value, you can create a custom locale file under
|
91
88
|
`config/locales/tr.yml` and override the respective key:
|
92
89
|
|
93
90
|
```YAML
|
@@ -98,29 +95,29 @@ tr:
|
|
98
95
|
unit: TL
|
99
96
|
```
|
100
97
|
|
101
|
-
## How to
|
98
|
+
## How to Contribute
|
102
99
|
|
103
|
-
### Quick
|
100
|
+
### Quick Contribution
|
104
101
|
|
105
|
-
If you are familiar with GitHub operations, follow the procedures described in the subsequent sections.
|
102
|
+
If you are familiar with GitHub operations, then follow the procedures described in the subsequent sections.
|
106
103
|
|
107
|
-
If
|
104
|
+
If not,
|
108
105
|
|
109
106
|
* Save your locale data on the [Gist](http://gist.github.com).
|
110
107
|
* Open an issue with reference to the Gist you created.
|
111
108
|
|
112
|
-
###
|
109
|
+
### Fetching the `rails-i18n` Repository
|
113
110
|
|
114
111
|
* Get a github account and Git program if you haven't. See [Help.Github](http://help.github.com/) for instructions.
|
115
112
|
* Fork `svenfuchs/rails-i18n` repository and clone it into your PC.
|
116
113
|
|
117
|
-
###
|
114
|
+
### Creating or Editing your Locale File
|
118
115
|
|
119
116
|
* Have a look in `rails/locale/en.yml`, which should be used as the base of your translation.
|
120
117
|
* Create or edit your locale file.
|
121
118
|
Please pay attention to save your files as UTF-8.
|
122
119
|
|
123
|
-
###
|
120
|
+
### Testing your Locale File
|
124
121
|
|
125
122
|
Before committing and pushing your changes, test the integrity of your locale file.
|
126
123
|
|
data/rails/locale/en-AU.yml
CHANGED
@@ -3,7 +3,10 @@ en-AU:
|
|
3
3
|
activerecord:
|
4
4
|
errors:
|
5
5
|
messages:
|
6
|
-
record_invalid:
|
6
|
+
record_invalid: "Validation failed: %{errors}"
|
7
|
+
restrict_dependent_destroy:
|
8
|
+
has_one: "Cannot delete record because a dependent %{record} exists"
|
9
|
+
has_many: "Cannot delete record because dependent %{record} exist"
|
7
10
|
date:
|
8
11
|
abbr_day_names:
|
9
12
|
- Sun
|
@@ -92,7 +95,7 @@ en-AU:
|
|
92
95
|
other: "%{count} months"
|
93
96
|
x_years:
|
94
97
|
one: 1 year
|
95
|
-
other: "%{count} years"
|
98
|
+
other: "%{count} years"
|
96
99
|
x_seconds:
|
97
100
|
one: 1 second
|
98
101
|
other: "%{count} seconds"
|
@@ -108,6 +111,7 @@ en-AU:
|
|
108
111
|
messages:
|
109
112
|
accepted: must be accepted
|
110
113
|
blank: can't be blank
|
114
|
+
present: must be blank
|
111
115
|
confirmation: doesn't match %{attribute}
|
112
116
|
empty: can't be empty
|
113
117
|
equal_to: must be equal to %{count}
|
@@ -119,9 +123,11 @@ en-AU:
|
|
119
123
|
invalid: is invalid
|
120
124
|
less_than: must be less than %{count}
|
121
125
|
less_than_or_equal_to: must be less than or equal to %{count}
|
126
|
+
model_invalid: "Validation failed: %{errors}"
|
122
127
|
not_a_number: is not a number
|
123
128
|
not_an_integer: must be an integer
|
124
129
|
odd: must be odd
|
130
|
+
required: must exist
|
125
131
|
taken: has already been taken
|
126
132
|
too_long:
|
127
133
|
one: is too long (maximum is 1 character)
|
@@ -132,6 +138,7 @@ en-AU:
|
|
132
138
|
wrong_length:
|
133
139
|
one: is the wrong length (should be 1 character)
|
134
140
|
other: is the wrong length (should be %{count} characters)
|
141
|
+
other_than: must be other than %{count}
|
135
142
|
template:
|
136
143
|
body: 'There were problems with the following fields:'
|
137
144
|
header:
|
@@ -185,9 +192,12 @@ en-AU:
|
|
185
192
|
kb: KB
|
186
193
|
mb: MB
|
187
194
|
tb: TB
|
195
|
+
pb: PB
|
196
|
+
eb: EB
|
188
197
|
percentage:
|
189
198
|
format:
|
190
199
|
delimiter: ''
|
200
|
+
format: "%n%"
|
191
201
|
precision:
|
192
202
|
format:
|
193
203
|
delimiter: ''
|
data/rails/locale/en-CA.yml
CHANGED
@@ -3,7 +3,7 @@ en-CA:
|
|
3
3
|
activerecord:
|
4
4
|
errors:
|
5
5
|
messages:
|
6
|
-
record_invalid:
|
6
|
+
record_invalid: "Validation failed: %{errors}"
|
7
7
|
restrict_dependent_destroy:
|
8
8
|
has_one: "Cannot delete record because a dependent %{record} exists"
|
9
9
|
has_many: "Cannot delete record because dependent %{record} exist"
|
@@ -111,6 +111,7 @@ en-CA:
|
|
111
111
|
messages:
|
112
112
|
accepted: must be accepted
|
113
113
|
blank: can't be blank
|
114
|
+
present: must be blank
|
114
115
|
confirmation: doesn't match %{attribute}
|
115
116
|
empty: can't be empty
|
116
117
|
equal_to: must be equal to %{count}
|
@@ -122,9 +123,11 @@ en-CA:
|
|
122
123
|
invalid: is invalid
|
123
124
|
less_than: must be less than %{count}
|
124
125
|
less_than_or_equal_to: must be less than or equal to %{count}
|
126
|
+
model_invalid: "Validation failed: %{errors}"
|
125
127
|
not_a_number: is not a number
|
126
128
|
not_an_integer: must be an integer
|
127
129
|
odd: must be odd
|
130
|
+
required: must exist
|
128
131
|
taken: has already been taken
|
129
132
|
too_long:
|
130
133
|
one: is too long (maximum is 1 character)
|
@@ -135,6 +138,7 @@ en-CA:
|
|
135
138
|
wrong_length:
|
136
139
|
one: is the wrong length (should be 1 character)
|
137
140
|
other: is the wrong length (should be %{count} characters)
|
141
|
+
other_than: must be other than %{count}
|
138
142
|
template:
|
139
143
|
body: 'There were problems with the following fields:'
|
140
144
|
header:
|
@@ -188,9 +192,12 @@ en-CA:
|
|
188
192
|
kb: KB
|
189
193
|
mb: MB
|
190
194
|
tb: TB
|
195
|
+
pb: PB
|
196
|
+
eb: EB
|
191
197
|
percentage:
|
192
198
|
format:
|
193
199
|
delimiter: ''
|
200
|
+
format: "%n%"
|
194
201
|
precision:
|
195
202
|
format:
|
196
203
|
delimiter: ''
|
data/rails/locale/en-CY.yml
CHANGED
@@ -111,6 +111,7 @@ en-CY:
|
|
111
111
|
messages:
|
112
112
|
accepted: must be accepted
|
113
113
|
blank: can't be blank
|
114
|
+
present: must be blank
|
114
115
|
confirmation: doesn't match %{attribute}
|
115
116
|
empty: can't be empty
|
116
117
|
equal_to: must be equal to %{count}
|
@@ -122,9 +123,11 @@ en-CY:
|
|
122
123
|
invalid: is invalid
|
123
124
|
less_than: must be less than %{count}
|
124
125
|
less_than_or_equal_to: must be less than or equal to %{count}
|
126
|
+
model_invalid: "Validation failed: %{errors}"
|
125
127
|
not_a_number: is not a number
|
126
128
|
not_an_integer: must be an integer
|
127
129
|
odd: must be odd
|
130
|
+
required: must exist
|
128
131
|
taken: has already been taken
|
129
132
|
too_long:
|
130
133
|
one: is too long (maximum is 1 character)
|
@@ -135,6 +138,7 @@ en-CY:
|
|
135
138
|
wrong_length:
|
136
139
|
one: is the wrong length (should be 1 character)
|
137
140
|
other: is the wrong length (should be %{count} characters)
|
141
|
+
other_than: must be other than %{count}
|
138
142
|
template:
|
139
143
|
body: 'There were problems with the following fields:'
|
140
144
|
header:
|
@@ -188,9 +192,12 @@ en-CY:
|
|
188
192
|
kb: KB
|
189
193
|
mb: MB
|
190
194
|
tb: TB
|
195
|
+
pb: PB
|
196
|
+
eb: EB
|
191
197
|
percentage:
|
192
198
|
format:
|
193
199
|
delimiter: ''
|
200
|
+
format: "%n%"
|
194
201
|
precision:
|
195
202
|
format:
|
196
203
|
delimiter: ''
|
data/rails/locale/en-GB.yml
CHANGED
@@ -3,7 +3,7 @@ en-GB:
|
|
3
3
|
activerecord:
|
4
4
|
errors:
|
5
5
|
messages:
|
6
|
-
record_invalid:
|
6
|
+
record_invalid: "Validation failed: %{errors}"
|
7
7
|
restrict_dependent_destroy:
|
8
8
|
has_one: "Cannot delete record because a dependent %{record} exists"
|
9
9
|
has_many: "Cannot delete record because dependent %{record} exist"
|
@@ -95,7 +95,7 @@ en-GB:
|
|
95
95
|
other: "%{count} months"
|
96
96
|
x_years:
|
97
97
|
one: 1 year
|
98
|
-
other: "%{count} years"
|
98
|
+
other: "%{count} years"
|
99
99
|
x_seconds:
|
100
100
|
one: 1 second
|
101
101
|
other: "%{count} seconds"
|
@@ -111,6 +111,7 @@ en-GB:
|
|
111
111
|
messages:
|
112
112
|
accepted: must be accepted
|
113
113
|
blank: can't be blank
|
114
|
+
present: must be blank
|
114
115
|
confirmation: doesn't match %{attribute}
|
115
116
|
empty: can't be empty
|
116
117
|
equal_to: must be equal to %{count}
|
@@ -122,9 +123,11 @@ en-GB:
|
|
122
123
|
invalid: is invalid
|
123
124
|
less_than: must be less than %{count}
|
124
125
|
less_than_or_equal_to: must be less than or equal to %{count}
|
126
|
+
model_invalid: "Validation failed: %{errors}"
|
125
127
|
not_a_number: is not a number
|
126
128
|
not_an_integer: must be an integer
|
127
129
|
odd: must be odd
|
130
|
+
required: must exist
|
128
131
|
taken: has already been taken
|
129
132
|
too_long:
|
130
133
|
one: is too long (maximum is 1 character)
|
@@ -135,6 +138,7 @@ en-GB:
|
|
135
138
|
wrong_length:
|
136
139
|
one: is the wrong length (should be 1 character)
|
137
140
|
other: is the wrong length (should be %{count} characters)
|
141
|
+
other_than: must be other than %{count}
|
138
142
|
template:
|
139
143
|
body: 'There were problems with the following fields:'
|
140
144
|
header:
|
@@ -188,9 +192,12 @@ en-GB:
|
|
188
192
|
kb: KB
|
189
193
|
mb: MB
|
190
194
|
tb: TB
|
195
|
+
pb: PB
|
196
|
+
eb: EB
|
191
197
|
percentage:
|
192
198
|
format:
|
193
199
|
delimiter: ''
|
200
|
+
format: "%n%"
|
194
201
|
precision:
|
195
202
|
format:
|
196
203
|
delimiter: ''
|
data/rails/locale/en-IE.yml
CHANGED
@@ -95,7 +95,7 @@ en-IE:
|
|
95
95
|
other: "%{count} months"
|
96
96
|
x_years:
|
97
97
|
one: 1 year
|
98
|
-
other: "%{count} years"
|
98
|
+
other: "%{count} years"
|
99
99
|
x_seconds:
|
100
100
|
one: 1 second
|
101
101
|
other: "%{count} seconds"
|
@@ -111,6 +111,7 @@ en-IE:
|
|
111
111
|
messages:
|
112
112
|
accepted: must be accepted
|
113
113
|
blank: can't be blank
|
114
|
+
present: must be blank
|
114
115
|
confirmation: doesn't match %{attribute}
|
115
116
|
empty: can't be empty
|
116
117
|
equal_to: must be equal to %{count}
|
@@ -122,9 +123,11 @@ en-IE:
|
|
122
123
|
invalid: is invalid
|
123
124
|
less_than: must be less than %{count}
|
124
125
|
less_than_or_equal_to: must be less than or equal to %{count}
|
126
|
+
model_invalid: "Validation failed: %{errors}"
|
125
127
|
not_a_number: is not a number
|
126
128
|
not_an_integer: must be an integer
|
127
129
|
odd: must be odd
|
130
|
+
required: must exist
|
128
131
|
taken: has already been taken
|
129
132
|
too_long:
|
130
133
|
one: is too long (maximum is 1 character)
|
@@ -135,6 +138,7 @@ en-IE:
|
|
135
138
|
wrong_length:
|
136
139
|
one: is the wrong length (should be 1 character)
|
137
140
|
other: is the wrong length (should be %{count} characters)
|
141
|
+
other_than: must be other than %{count}
|
138
142
|
template:
|
139
143
|
body: 'There were problems with the following fields:'
|
140
144
|
header:
|
@@ -188,9 +192,12 @@ en-IE:
|
|
188
192
|
kb: KB
|
189
193
|
mb: MB
|
190
194
|
tb: TB
|
195
|
+
pb: PB
|
196
|
+
eb: EB
|
191
197
|
percentage:
|
192
198
|
format:
|
193
199
|
delimiter: ''
|
200
|
+
format: "%n%"
|
194
201
|
precision:
|
195
202
|
format:
|
196
203
|
delimiter: ''
|
data/rails/locale/en-IN.yml
CHANGED
@@ -3,7 +3,7 @@ en-IN:
|
|
3
3
|
activerecord:
|
4
4
|
errors:
|
5
5
|
messages:
|
6
|
-
record_invalid:
|
6
|
+
record_invalid: "Validation failed: %{errors}"
|
7
7
|
restrict_dependent_destroy:
|
8
8
|
has_one: "Cannot delete record because a dependent %{record} exists"
|
9
9
|
has_many: "Cannot delete record because dependent %{record} exist"
|
@@ -95,7 +95,7 @@ en-IN:
|
|
95
95
|
other: "%{count} months"
|
96
96
|
x_years:
|
97
97
|
one: 1 year
|
98
|
-
other: "%{count} years"
|
98
|
+
other: "%{count} years"
|
99
99
|
x_seconds:
|
100
100
|
one: 1 second
|
101
101
|
other: "%{count} seconds"
|
@@ -111,6 +111,7 @@ en-IN:
|
|
111
111
|
messages:
|
112
112
|
accepted: must be accepted
|
113
113
|
blank: can't be blank
|
114
|
+
present: must be blank
|
114
115
|
confirmation: doesn't match %{attribute}
|
115
116
|
empty: can't be empty
|
116
117
|
equal_to: must be equal to %{count}
|
@@ -122,9 +123,11 @@ en-IN:
|
|
122
123
|
invalid: is invalid
|
123
124
|
less_than: must be less than %{count}
|
124
125
|
less_than_or_equal_to: must be less than or equal to %{count}
|
126
|
+
model_invalid: "Validation failed: %{errors}"
|
125
127
|
not_a_number: is not a number
|
126
128
|
not_an_integer: must be an integer
|
127
129
|
odd: must be odd
|
130
|
+
required: must exist
|
128
131
|
taken: has already been taken
|
129
132
|
too_long:
|
130
133
|
one: is too long (maximum is 1 character)
|
@@ -135,6 +138,7 @@ en-IN:
|
|
135
138
|
wrong_length:
|
136
139
|
one: is the wrong length (should be 1 character)
|
137
140
|
other: is the wrong length (should be %{count} characters)
|
141
|
+
other_than: must be other than %{count}
|
138
142
|
template:
|
139
143
|
body: 'There were problems with the following fields:'
|
140
144
|
header:
|
@@ -188,9 +192,12 @@ en-IN:
|
|
188
192
|
kb: KB
|
189
193
|
mb: MB
|
190
194
|
tb: TB
|
195
|
+
pb: PB
|
196
|
+
eb: EB
|
191
197
|
percentage:
|
192
198
|
format:
|
193
199
|
delimiter: ''
|
200
|
+
format: "%n%"
|
194
201
|
precision:
|
195
202
|
format:
|
196
203
|
delimiter: ''
|
data/rails/locale/en-NZ.yml
CHANGED
@@ -95,7 +95,7 @@ en-NZ:
|
|
95
95
|
other: "%{count} months"
|
96
96
|
x_years:
|
97
97
|
one: 1 year
|
98
|
-
other: "%{count} years"
|
98
|
+
other: "%{count} years"
|
99
99
|
x_seconds:
|
100
100
|
one: 1 second
|
101
101
|
other: "%{count} seconds"
|
@@ -111,6 +111,7 @@ en-NZ:
|
|
111
111
|
messages:
|
112
112
|
accepted: must be accepted
|
113
113
|
blank: can't be blank
|
114
|
+
present: must be blank
|
114
115
|
confirmation: doesn't match %{attribute}
|
115
116
|
empty: can't be empty
|
116
117
|
equal_to: must be equal to %{count}
|
@@ -122,9 +123,11 @@ en-NZ:
|
|
122
123
|
invalid: is invalid
|
123
124
|
less_than: must be less than %{count}
|
124
125
|
less_than_or_equal_to: must be less than or equal to %{count}
|
126
|
+
model_invalid: "Validation failed: %{errors}"
|
125
127
|
not_a_number: is not a number
|
126
128
|
not_an_integer: must be an integer
|
127
129
|
odd: must be odd
|
130
|
+
required: must exist
|
128
131
|
taken: has already been taken
|
129
132
|
too_long:
|
130
133
|
one: is too long (maximum is 1 character)
|
@@ -135,6 +138,7 @@ en-NZ:
|
|
135
138
|
wrong_length:
|
136
139
|
one: is the wrong length (should be 1 character)
|
137
140
|
other: is the wrong length (should be %{count} characters)
|
141
|
+
other_than: must be other than %{count}
|
138
142
|
template:
|
139
143
|
body: 'There were problems with the following fields:'
|
140
144
|
header:
|
@@ -188,9 +192,12 @@ en-NZ:
|
|
188
192
|
kb: KB
|
189
193
|
mb: MB
|
190
194
|
tb: TB
|
195
|
+
pb: PB
|
196
|
+
eb: EB
|
191
197
|
percentage:
|
192
198
|
format:
|
193
199
|
delimiter: ''
|
200
|
+
format: "%n%"
|
194
201
|
precision:
|
195
202
|
format:
|
196
203
|
delimiter: ''
|
data/rails/locale/en-US.yml
CHANGED
data/rails/locale/en-ZA.yml
CHANGED
@@ -123,9 +123,11 @@ en-ZA:
|
|
123
123
|
invalid: is invalid
|
124
124
|
less_than: must be less than %{count}
|
125
125
|
less_than_or_equal_to: must be less than or equal to %{count}
|
126
|
+
model_invalid: "Validation failed: %{errors}"
|
126
127
|
not_a_number: is not a number
|
127
128
|
not_an_integer: must be an integer
|
128
129
|
odd: must be odd
|
130
|
+
required: must exist
|
129
131
|
taken: has already been taken
|
130
132
|
too_long:
|
131
133
|
one: is too long (maximum is 1 character)
|
@@ -190,6 +192,8 @@ en-ZA:
|
|
190
192
|
kb: KB
|
191
193
|
mb: MB
|
192
194
|
tb: TB
|
195
|
+
pb: PB
|
196
|
+
eb: EB
|
193
197
|
percentage:
|
194
198
|
format:
|
195
199
|
delimiter: ''
|
data/rails/locale/es-419.yml
CHANGED
data/rails/locale/es-AR.yml
CHANGED
data/rails/locale/es-CL.yml
CHANGED
data/rails/locale/es-CO.yml
CHANGED
data/rails/locale/es-CR.yml
CHANGED
data/rails/locale/es-EC.yml
CHANGED
data/rails/locale/es-ES.yml
CHANGED
data/rails/locale/es-MX.yml
CHANGED
data/rails/locale/es-NI.yml
CHANGED
data/rails/locale/es-PA.yml
CHANGED
data/rails/locale/es-PE.yml
CHANGED
data/rails/locale/es-US.yml
CHANGED
data/rails/locale/es-VE.yml
CHANGED
data/rails/locale/he.yml
CHANGED
data/rails/locale/sr.yml
CHANGED
@@ -142,9 +142,11 @@ sr:
|
|
142
142
|
invalid: није исправан
|
143
143
|
less_than: мора бити мањи од %{count}
|
144
144
|
less_than_or_equal_to: мора бити мањи или једнак %{count}
|
145
|
+
model_invalid: 'Валидација није успела: %{errors}'
|
145
146
|
not_a_number: није број
|
146
147
|
not_an_integer: није цео број
|
147
148
|
odd: мора бити непаран
|
149
|
+
required: мора постојати
|
148
150
|
taken: је већ заузет
|
149
151
|
too_long:
|
150
152
|
one: је предугачак (максимум је %{count} знак)
|
data/rails/pluralization/hu.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
require 'rails_i18n/common_pluralizations/
|
1
|
+
require 'rails_i18n/common_pluralizations/one_other'
|
2
2
|
|
3
|
-
::RailsI18n::Pluralization::
|
3
|
+
::RailsI18n::Pluralization::OneOther.with_locale(:hu)
|
@@ -0,0 +1,47 @@
|
|
1
|
+
fa:
|
2
|
+
i18n:
|
3
|
+
transliterate:
|
4
|
+
rule:
|
5
|
+
'آ': 'a'
|
6
|
+
'ا': 'a'
|
7
|
+
'ب': 'b'
|
8
|
+
'پ': 'p'
|
9
|
+
'ت': 't'
|
10
|
+
'ث': 's'
|
11
|
+
'ج': 'g'
|
12
|
+
'چ': 'ch'
|
13
|
+
'ح': 'h'
|
14
|
+
'خ': 'kh'
|
15
|
+
'د': 'd'
|
16
|
+
'ذ': 'z'
|
17
|
+
'ر': 'r'
|
18
|
+
'ز': 'z'
|
19
|
+
'ژ': 'j'
|
20
|
+
'س': 's'
|
21
|
+
'ش': 'sh'
|
22
|
+
'ص': 's'
|
23
|
+
'ض': 'z'
|
24
|
+
'ط': 't'
|
25
|
+
'ظ': 'z'
|
26
|
+
'ع': 'a'
|
27
|
+
'غ': 'q'
|
28
|
+
'ف': 'f'
|
29
|
+
'ق': 'q'
|
30
|
+
'ک': 'k'
|
31
|
+
'گ': 'gh'
|
32
|
+
'ل': 'l'
|
33
|
+
'م': 'm'
|
34
|
+
'ن': 'n'
|
35
|
+
'و': 'v'
|
36
|
+
'ه': 'h'
|
37
|
+
'ی': 'i'
|
38
|
+
'۰': '0'
|
39
|
+
'۱': '1'
|
40
|
+
'۲': '2'
|
41
|
+
'۳': '3'
|
42
|
+
'۴': '4'
|
43
|
+
'۵': '5'
|
44
|
+
'۶': '6'
|
45
|
+
'۷': '7'
|
46
|
+
'۸': '8'
|
47
|
+
'۹': '9'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-i18n
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.1.
|
4
|
+
version: 5.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rails I18n Group
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|
@@ -374,6 +374,7 @@ files:
|
|
374
374
|
- rails/transliteration/de.yml
|
375
375
|
- rails/transliteration/el.yml
|
376
376
|
- rails/transliteration/es.yml
|
377
|
+
- rails/transliteration/fa.yml
|
377
378
|
- rails/transliteration/fr.yml
|
378
379
|
- rails/transliteration/hu.yml
|
379
380
|
- rails/transliteration/oc.yml
|