rails-i18n 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. data/README.md +109 -7
  2. data/rails/locale/ar.yml +173 -205
  3. data/rails/locale/az.yml +172 -202
  4. data/rails/locale/bg.yml +172 -212
  5. data/rails/locale/bn-IN.yml +158 -222
  6. data/rails/locale/bs.yml +214 -230
  7. data/rails/locale/ca.yml +172 -232
  8. data/rails/locale/cs.yml +167 -189
  9. data/rails/locale/csb.yml +183 -213
  10. data/rails/locale/cy.yml +172 -201
  11. data/rails/locale/da.yml +172 -216
  12. data/rails/locale/de-AT.yml +167 -192
  13. data/rails/locale/de-CH.yml +167 -192
  14. data/rails/locale/de.yml +167 -194
  15. data/rails/locale/dsb.yml +185 -208
  16. data/rails/locale/el.yml +164 -193
  17. data/rails/locale/en-AU.yml +179 -208
  18. data/rails/locale/en-GB.yml +179 -208
  19. data/rails/locale/en-IN.yml +166 -221
  20. data/rails/locale/en-US.yml +179 -204
  21. data/rails/locale/eo.yml +166 -188
  22. data/rails/locale/es-AR.yml +175 -197
  23. data/rails/locale/es-CL.yml +172 -203
  24. data/rails/locale/es-CO.yml +175 -198
  25. data/rails/locale/es-MX.yml +175 -204
  26. data/rails/locale/es-PE.yml +152 -169
  27. data/rails/locale/es.yml +173 -206
  28. data/rails/locale/et.yml +172 -203
  29. data/rails/locale/eu.yml +173 -206
  30. data/rails/locale/fa.yml +173 -203
  31. data/rails/locale/fi.yml +172 -206
  32. data/rails/locale/fr-CA.yml +172 -199
  33. data/rails/locale/fr-CH.yml +172 -196
  34. data/rails/locale/fr.yml +172 -196
  35. data/rails/locale/fur.yml +175 -208
  36. data/rails/locale/gl-ES.yml +153 -197
  37. data/rails/locale/gsw-CH.yml +164 -190
  38. data/rails/locale/he.yml +175 -205
  39. data/rails/locale/hi-IN.yml +172 -201
  40. data/rails/locale/hi.yml +172 -201
  41. data/rails/locale/hr.yml +141 -157
  42. data/rails/locale/hsb.yml +184 -212
  43. data/rails/locale/hu.yml +173 -198
  44. data/rails/locale/id.yml +164 -228
  45. data/rails/locale/is.yml +180 -210
  46. data/rails/locale/it.yml +181 -219
  47. data/rails/locale/ja.yml +172 -208
  48. data/rails/locale/kn.yml +172 -202
  49. data/rails/locale/ko.yml +171 -207
  50. data/rails/locale/lo.yml +162 -213
  51. data/rails/locale/lt.yml +158 -181
  52. data/rails/locale/lv.yml +164 -193
  53. data/rails/locale/mk.yml +141 -157
  54. data/rails/locale/mn.yml +162 -193
  55. data/rails/locale/nb.yml +174 -194
  56. data/rails/locale/nl.yml +172 -203
  57. data/rails/locale/nn.yml +130 -139
  58. data/rails/locale/pl.yml +183 -215
  59. data/rails/locale/pt-BR.yml +180 -213
  60. data/rails/locale/pt-PT.yml +180 -211
  61. data/rails/locale/rm.yml +147 -167
  62. data/rails/locale/ro.yml +172 -192
  63. data/rails/locale/ru.yml +229 -281
  64. data/rails/locale/sk.yml +174 -210
  65. data/rails/locale/sl.yml +195 -242
  66. data/rails/locale/sr-Latn.yml +141 -157
  67. data/rails/locale/sr.yml +141 -157
  68. data/rails/locale/sv-SE.yml +176 -257
  69. data/rails/locale/sw.yml +170 -203
  70. data/rails/locale/th.yml +147 -179
  71. data/rails/locale/tr.yml +144 -162
  72. data/rails/locale/uk.yml +233 -299
  73. data/rails/locale/vi.yml +159 -212
  74. data/rails/locale/zh-CN.yml +164 -185
  75. data/rails/locale/zh-TW.yml +164 -186
  76. metadata +77 -102
data/README.md CHANGED
@@ -1,21 +1,123 @@
1
- I18n Data Repository for Rails 2.3
2
- ==================================
1
+ Rails Locale Data Repository
2
+ ============================
3
3
 
4
4
  [![Build Status](https://secure.travis-ci.org/svenfuchs/rails-i18n.png)](http://travis-ci.org/svenfuchs/rails-i18n)
5
5
 
6
- Central point to collect locale data for use in Ruby on Rails 2.3.
6
+ Central point to collect locale data for use in Ruby on Rails.
7
7
 
8
- If your Rails version is 4.0 or above, visit the [master](https://github.com/svenfuchs/rails-i18n) branch.
9
- If your Rails version is 3.x, visit the [rails-3-x](https://github.com/svenfuchs/rails-i18n/tree/rails-3-x) branch.
8
+ ## Gem installation
10
9
 
11
- ## Installation
10
+ Add to your Gemfile:
12
11
 
13
- Download the locale files that are found in the directory [rails/locale](http://github.com/svenfuchs/rails-i18n/tree/rails-2-3/rails/locale/) and put them into the `config/locales` directory of your Rails application.
12
+ gem 'rails-i18n'
13
+
14
+ or run this command:
15
+
16
+ gem install rails-i18n
17
+
18
+ Note that your rails version must be 3.0 or higher if you want to install `rails-i18n` as a gem. For rails 2.x, install it manually as described below.
19
+
20
+ ## Manual installation
21
+
22
+ Download the locale files that are found in the directory [rails/locale](http://github.com/svenfuchs/rails-i18n/tree/master/rails/locale/) and put them into the `config/locales` directory of your Rails application.
14
23
 
15
24
  If any translation doesn't suit well to the requirements of your application, edit them or add your own locale files.
16
25
 
17
26
  For more information, visit [Rails Internationalization (I18n) API](http://guides.rubyonrails.org/i18n.html) on the _RailsGuides._
18
27
 
28
+ ## Usage on Rails 2.3
29
+
30
+ Locale data whose structure is compatible with Rails 2.3 are available on the separate branch [rails-2-3](https://github.com/svenfuchs/rails-i18n/tree/rails-2-3).
31
+
32
+ ## Available Locales
33
+
34
+ Available locales are:
35
+
36
+ > ar, az, bg, bn-IN, bs, ca, cs, csb, cy, da, de, de-AT, de-CH, dsb, el, en-AU, en-GB, en-IN, en-US, eo, es,
37
+ > es-AR, es-CL, es-CO, es-MX, es-PE, et, eu, fa, fi, fr, fr-CA, fr-CH, fur, gl-ES,
38
+ > gsw-CH, he, hi-IN, hr, hsb, hu, id, is, it, ja, kn, ko, lo, lt, lv, mk, mn, nb,
39
+ > nl, nn, pl, pt-BR, pt-PT, rm, ro, ru, sk, sl, sr, sr-Latn, sv-SE, sw, th,
40
+ > tr, uk, vi, zh-CN, zh-TW
41
+
42
+ Note that all locale files are not yet ready for Rails 3. Currently, following locales are ready for Rails 2 and 3:
43
+
44
+ > ar, az, bg, bs, ca, cs, csb, cy, da, de, de-AT, de-CH, el, en-AU, en-GB, en-US, eo, es, es-AR, es-CL, es-CO, es-MX, et,
45
+ > eu, fa, fi, fr, fr-CA, fr-CH, fur, gsw-CH, he, hi, hi-IN, hu, is, it, ja, kn, ko, lv, nb,
46
+ > nl, pl, pt-BR, pt-PT, ro, ru, sk, sv-SE, sw, th, uk, zh-CN, zh-TW
47
+
48
+ Not-yet-ready locales are:
49
+
50
+ > bn-IN, dsb, en-IN, es-PE, gl-ES, hr, hsb, id, lo, lt, mk, mn, nn, rm, sl, sr, sr-Latn, tr, vi
51
+
52
+ We always welcome your contributions!
53
+
54
+ ## Gem translations
55
+
56
+ Gems that are often used with Rails may have their own
57
+ translations. These translations are kept in the [project root](http://github.com/svenfuchs/rails-i18n/tree/master/).
58
+
59
+ If you need one of these, simply copy the appropriate translation files
60
+ to `config/locales`.
61
+
62
+ cp rails-i18n/will_paginate/nl.yml my_app/config/locales/will_paginate.yml
63
+
64
+ ## How to contribute
65
+
66
+ ### Quick contribution
67
+
68
+ If you are familiar with GitHub operations, follow the procedures described in the subsequent sections.
69
+
70
+ If you are not,
71
+
72
+ * Save your locale data on the [Gist](http://gist.github.com).
73
+ * Open an issue with reference to the Gist you created.
74
+
75
+ ### Fetch the `rails-18n` repository
76
+
77
+ * Get a github account and Git program if you haven't. See [Help.Github](http://help.github.com/) for instructions.
78
+ * Fork `svenfuchs/rails-i18n` repository and clone it into your PC.
79
+
80
+ ### Create or edit your locale file
81
+
82
+ * Have a look in `rails/locale/en-US.yml`, which can be used as the base of your translation.
83
+ This file is a compound of all translation files in the Rails 2 and 3 packages.
84
+ Note that we use `&errors_messages` and `<<: *errors_messages` to anchor and merge a part of translation data.
85
+ * Create or edit your locale file.
86
+ Please include a comment with the language/locale name and your name and email address (or other contact information like your github profile) to the locale file so people can come contact you and ask questions etc.
87
+ Also, please pay attention to save your files as UTF-8.
88
+
89
+ ### Test your locale file
90
+
91
+ Before committing and pushing your changes, test the integrity of your locale file.
92
+
93
+ rake spec
94
+
95
+ Make sure you have included all translations with:
96
+
97
+ rake i18n-spec:completeness rails/locale/en-US.yml rails/locale/YOUR_NEW_LOCALE.yml
98
+
99
+ You can list all locales that are ready both for Rails version 2 and 3:
100
+
101
+ thor locales:ready
102
+
103
+ You can also list the locales ready for a specific version of Rails. For example:
104
+
105
+ thor locales:ready_for 3
106
+
107
+ Lastly, you can list all available locales:
108
+
109
+ thor locales:list
110
+
111
+ ### Edit README.md
112
+
113
+ Add your locale name to the list in `README.md` if it isn't there.
114
+
115
+ ### Send pull request
116
+
117
+ If you are ready, push the repository into the Github and send us a pull request.
118
+
119
+ We will do the formality check and publish it as quick as we can.
120
+
19
121
  ## License
20
122
 
21
123
  [MIT](https://github.com/svenfuchs/rails-i18n/blob/master/MIT-LICENSE.txt)
@@ -1,224 +1,192 @@
1
- # Arabic translations for Ruby on Rails
2
- # by Rida Al Barazi (me@rida.me)
3
- # updated by Ahmed Hazem (nardgo@gmail.com)
4
- # Rails 3 edit by rbjarnason
5
-
6
- "ar":
1
+ ar:
7
2
  date:
8
- formats:
9
- default: "%Y-%m-%d"
10
- short: "%e %b"
11
- long: "%B %e, %Y"
12
-
13
- day_names:
14
- - الأحد
15
- - الإثنين
16
- - الثلاثاء
17
- - الأربعاء
18
- - الخميس
19
- - الجمعة
20
- - السبت
21
3
  abbr_day_names:
22
- - الأحد
23
- - الإثنين
24
- - الثلاثاء
25
- - الأربعاء
26
- - الخميس
27
- - الجمعة
28
- - السبت
29
-
30
- month_names:
31
- - ~
32
- - يناير
33
- - فبراير
34
- - مارس
35
- - ابريل
36
- - مايو
37
- - يونيو
38
- - يوليو
39
- - اغسطس
40
- - سبتمبر
41
- - اكتوبر
42
- - نوفمبر
43
- - ديسمبر
4
+ - الأحد
5
+ - الإثنين
6
+ - الثلاثاء
7
+ - الأربعاء
8
+ - الخميس
9
+ - الجمعة
10
+ - السبت
44
11
  abbr_month_names:
45
- - ~
46
- - يناير
47
- - فبراير
48
- - مارس
49
- - ابريل
50
- - مايو
51
- - يونيو
52
- - يوليو
53
- - اغسطس
54
- - سبتمبر
55
- - اكتوبر
56
- - نوفمبر
57
- - ديسمبر
58
- order:
59
- - :day
60
- - :month
61
- - :year
62
-
63
- time:
12
+ -
13
+ - يناير
14
+ - فبراير
15
+ - مارس
16
+ - ابريل
17
+ - مايو
18
+ - يونيو
19
+ - يوليو
20
+ - اغسطس
21
+ - سبتمبر
22
+ - اكتوبر
23
+ - نوفمبر
24
+ - ديسمبر
25
+ day_names:
26
+ - الأحد
27
+ - الإثنين
28
+ - الثلاثاء
29
+ - الأربعاء
30
+ - الخميس
31
+ - الجمعة
32
+ - السبت
64
33
  formats:
65
- default: "%a %b %d %H:%M:%S %Z %Y"
66
- short: "%d %b %H:%M"
67
- long: "%B %d, %Y %H:%M"
68
- am: 'صباحا'
69
- pm: 'مساءا'
70
-
71
- support:
72
- array:
73
- words_connector: ", "
74
- two_words_connector: " و "
75
- last_word_connector: ", و "
76
-
34
+ default: ! '%Y-%m-%d'
35
+ long: ! '%B %e, %Y'
36
+ short: ! '%e %b'
37
+ month_names:
38
+ -
39
+ - يناير
40
+ - فبراير
41
+ - مارس
42
+ - ابريل
43
+ - مايو
44
+ - يونيو
45
+ - يوليو
46
+ - اغسطس
47
+ - سبتمبر
48
+ - اكتوبر
49
+ - نوفمبر
50
+ - ديسمبر
51
+ order:
52
+ - :day
53
+ - :month
54
+ - :year
55
+ datetime:
56
+ distance_in_words:
57
+ about_x_hours:
58
+ one: حوالي ساعة واحدة
59
+ other: ! '%{count} ساعات'
60
+ about_x_months:
61
+ one: حوالي شهر واحد
62
+ other: ! '%{count} أشهر'
63
+ about_x_years:
64
+ one: حوالي سنة
65
+ other: ! '%{count} سنوات'
66
+ almost_x_years:
67
+ one: تقريبا سنة واحدة
68
+ other: ما يقرب من %{count} سنة
69
+ half_a_minute: نصف دقيقة
70
+ less_than_x_minutes:
71
+ one: أقل من دقيقة
72
+ other: ! '%{count} دقائق'
73
+ less_than_x_seconds:
74
+ one: أقل من ثانية
75
+ other: ! '%{count} ثوان'
76
+ over_x_years:
77
+ one: أكثر من سنة
78
+ other: ! '%{count} سنوات'
79
+ x_days:
80
+ one: يوم واحد
81
+ other: ! '%{count} أيام'
82
+ x_minutes:
83
+ one: دقيقة واحدة
84
+ other: ! '%{count} دقائق'
85
+ x_months:
86
+ one: شهر واحد
87
+ other: ! '%{count} أشهر'
88
+ x_seconds:
89
+ one: ثانية واحدة
90
+ other: ! '%{count} ثوان'
91
+ prompts:
92
+ day: اليوم
93
+ hour: ساعة
94
+ minute: دقيقة
95
+ month: الشهر
96
+ second: ثانية
97
+ year: السنة
98
+ errors:
99
+ format: ! '%{attribute} %{message}'
100
+ messages:
101
+ accepted: يجب أن تقبل
102
+ blank: فارغ، يرجى ملء الحقل
103
+ confirmation: لا تتوافق مع التأكيد
104
+ empty: فارغ، يرجى ملء الحقل
105
+ equal_to: يجب أن يساوي %{count}
106
+ even: يجب أن يكون زوجي
107
+ exclusion: محجوز
108
+ greater_than: يجب أن يكون أكبر من %{count}
109
+ greater_than_or_equal_to: يجب أن يكون أكبر من أو يساوي %{count}
110
+ inclusion: ليس خيارا مقبولا
111
+ invalid: غير معرف أو محدد
112
+ less_than: يجب أن يكون أصغر من %{count}
113
+ less_than_or_equal_to: يجب أن يكون أصغر من أو يساوي %{count}
114
+ not_a_number: ليس رقما
115
+ not_an_integer: يجب أن يكون صحيحا
116
+ odd: يجب أن يكون فردي
117
+ record_invalid: ! '%{errors} فشل التحقق من صحة'
118
+ taken: غير متوفر (مستخدم)
119
+ too_long: أطول من اللازم (الحد الأقصى هو %{count})
120
+ too_short: أقصر من اللازم (الحد الأدنى هو %{count})
121
+ wrong_length: بطول غير مناسب (يجب أن يكون %{count})
122
+ template:
123
+ body: ! 'يرجى التحقق من الحقول التالية:'
124
+ header:
125
+ one: ! 'ليس بالامكان حفظ %{model}: خطأ واحد.'
126
+ other: ! 'ليس بالامكان حفظ %{model}: %{count} أخطاء.'
127
+ helpers:
77
128
  select:
78
- prompt: "الرجاء اختيار"
79
-
129
+ prompt: الرجاء اختيار
130
+ submit:
131
+ create: ! '%{model} إنشاء'
132
+ submit: ! '%{model} حفظ'
133
+ update: ! '%{model} نموذج'
80
134
  number:
81
- format:
82
- separator: "."
83
- delimiter: ","
84
- precision: 3
85
- significant: false
86
- strip_insignificant_zeros: false
87
-
88
135
  currency:
89
136
  format:
90
- format: "%u%n"
91
- unit: "$"
92
- separator: "."
93
- delimiter: ","
137
+ delimiter: ! ','
138
+ format: ! '%u%n'
94
139
  precision: 2
140
+ separator: .
95
141
  significant: false
96
142
  strip_insignificant_zeros: false
97
-
98
- percentage:
99
- format:
100
- delimiter: ""
101
-
102
- precision:
103
- format:
104
- delimiter: ""
105
-
143
+ unit: $
144
+ format:
145
+ delimiter: ! ','
146
+ precision: 3
147
+ separator: .
148
+ significant: false
149
+ strip_insignificant_zeros: false
106
150
  human:
151
+ decimal_units:
152
+ format: ! '%n %u'
153
+ units:
154
+ billion: مليار
155
+ million: مليون
156
+ quadrillion: الكدريليون رقم
157
+ thousand: ألف
158
+ trillion: تريليون
159
+ unit: ''
107
160
  format:
108
- delimiter: ""
161
+ delimiter: ''
109
162
  precision: 3
110
163
  significant: true
111
164
  strip_insignificant_zeros: true
112
165
  storage_units:
113
- format: "%n %u"
166
+ format: ! '%n %u'
114
167
  units:
115
168
  byte:
116
- one: "Byte"
117
- other: "Bytes"
118
- kb: "KB"
119
- mb: "MB"
120
- gb: "GB"
121
- tb: "TB"
122
- decimal_units:
123
- format: "%n %u"
124
- units:
125
- unit: ""
126
- thousand: ألف
127
- million: مليون
128
- billion: مليار
129
- trillion: تريليون
130
- quadrillion: الكدريليون رقم
131
-
132
- datetime:
133
- distance_in_words:
134
- half_a_minute: 'نصف دقيقة'
135
- less_than_x_seconds:
136
- one: 'أقل من ثانية'
137
- other: '%{count} ثوان'
138
- x_seconds:
139
- one: 'ثانية واحدة'
140
- other: '%{count} ثوان'
141
- less_than_x_minutes:
142
- one: 'أقل من دقيقة'
143
- other: '%{count} دقائق'
144
- x_minutes:
145
- one: 'دقيقة واحدة'
146
- other: '%{count} دقائق'
147
- about_x_hours:
148
- one: 'حوالي ساعة واحدة'
149
- other: '%{count} ساعات'
150
- x_days:
151
- one: 'يوم واحد'
152
- other: '%{count} أيام'
153
- about_x_months:
154
- one: 'حوالي شهر واحد'
155
- other: '%{count} أشهر'
156
- x_months:
157
- one: 'شهر واحد'
158
- other: '%{count} أشهر'
159
- about_x_years:
160
- one: 'حوالي سنة'
161
- other: '%{count} سنوات'
162
- over_x_years:
163
- one: 'أكثر من سنة'
164
- other: '%{count} سنوات'
165
- almost_x_years:
166
- one: "تقريبا سنة واحدة"
167
- other: "ما يقرب من %{count} سنة"
168
- prompts:
169
- year: "السنة"
170
- month: "الشهر"
171
- day: "اليوم"
172
- hour: "ساعة"
173
- minute: "دقيقة"
174
- second: "ثانية"
175
-
176
- helpers:
177
- select:
178
- prompt: "الرجاء اختيار"
179
-
180
- submit:
181
- create: "%{model} إنشاء"
182
- update: "%{model} نموذج"
183
- submit: "%{model} حفظ"
184
-
185
- errors:
186
- format: "%{attribute} %{message}"
187
-
188
- messages: &errors_messages
189
- inclusion: "ليس خيارا مقبولا"
190
- exclusion: "محجوز"
191
- invalid: "غير معرف أو محدد"
192
- confirmation: "لا تتوافق مع التأكيد"
193
- accepted: "يجب أن تقبل"
194
- empty: "فارغ، يرجى ملء الحقل"
195
- blank: "فارغ، يرجى ملء الحقل"
196
- too_long: "أطول من اللازم (الحد الأقصى هو %{count})"
197
- too_short: "أقصر من اللازم (الحد الأدنى هو %{count})"
198
- wrong_length: "بطول غير مناسب (يجب أن يكون %{count})"
199
- not_an_integer: "يجب أن يكون صحيحا"
200
- not_a_number: "ليس رقما"
201
- greater_than: "يجب أن يكون أكبر من %{count}"
202
- greater_than_or_equal_to: "يجب أن يكون أكبر من أو يساوي %{count}"
203
- equal_to: "يجب أن يساوي %{count}"
204
- less_than: "يجب أن يكون أصغر من %{count}"
205
- less_than_or_equal_to: "يجب أن يكون أصغر من أو يساوي %{count}"
206
- odd: "يجب أن يكون فردي"
207
- even: "يجب أن يكون زوجي"
208
- taken: "غير متوفر (مستخدم)"
209
- record_invalid: "%{errors} فشل التحقق من صحة"
210
- template: &errors_template
211
- header:
212
- one: "ليس بالامكان حفظ %{model}: خطأ واحد."
213
- other: "ليس بالامكان حفظ %{model}: %{count} أخطاء."
214
- body: "يرجى التحقق من الحقول التالية:"
215
-
216
- activerecord:
217
- errors:
218
- messages:
219
- <<: *errors_messages
220
- template:
221
- <<: *errors_template
222
-
223
- full_messages:
224
- format: "%{attribute} %{message}"
169
+ one: Byte
170
+ other: Bytes
171
+ gb: GB
172
+ kb: KB
173
+ mb: MB
174
+ tb: TB
175
+ percentage:
176
+ format:
177
+ delimiter: ''
178
+ precision:
179
+ format:
180
+ delimiter: ''
181
+ support:
182
+ array:
183
+ last_word_connector: ! ', و '
184
+ two_words_connector: ! ' و '
185
+ words_connector: ! ', '
186
+ time:
187
+ am: صباحا
188
+ formats:
189
+ default: ! '%a %b %d %H:%M:%S %Z %Y'
190
+ long: ! '%B %d, %Y %H:%M'
191
+ short: ! '%d %b %H:%M'
192
+ pm: مساءا