refinerycms-i18n 2.0.2 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +7 -0
  2. data/.travis.yml +27 -9
  3. data/Gemfile +17 -7
  4. data/Rakefile +2 -0
  5. data/app/assets/images/refinery/icons/flags/ko.png +0 -0
  6. data/app/assets/images/refinery/icons/flags/{ua.png → uk.png} +0 -0
  7. data/lib/generators/refinery/i18n_generator.rb +2 -1
  8. data/lib/generators/refinery/templates/config/initializers/refinery/i18n.rb.erb +0 -2
  9. data/lib/refinery/i18n-filter.rb +4 -4
  10. data/lib/refinery/i18n.rb +10 -6
  11. data/lib/refinery/i18n/configuration.rb +10 -2
  12. data/lib/refinery/i18n/engine.rb +20 -18
  13. data/refinerycms-i18n.gemspec +8 -6
  14. data/script/rails +5 -0
  15. data/spec/{requests → features}/dashboard_locale_picker_spec.rb +2 -2
  16. data/spec/spec_helper.rb +20 -46
  17. data/spec/support/refinery/i18n/set_defaults.rb +17 -0
  18. metadata +25 -97
  19. data/config/locales/ar.yml +0 -124
  20. data/config/locales/bg.yml +0 -280
  21. data/config/locales/bn-IN.yml +0 -183
  22. data/config/locales/bs.yml +0 -117
  23. data/config/locales/ca.yml +0 -170
  24. data/config/locales/cs.rb +0 -168
  25. data/config/locales/cy.yml +0 -181
  26. data/config/locales/da.yml +0 -195
  27. data/config/locales/de-AT.yml +0 -154
  28. data/config/locales/de-CH.yml +0 -154
  29. data/config/locales/de.yml +0 -193
  30. data/config/locales/dsb.yml +0 -185
  31. data/config/locales/el.yml +0 -133
  32. data/config/locales/en-AU.yml +0 -180
  33. data/config/locales/en-GB.yml +0 -210
  34. data/config/locales/en-US.yml +0 -182
  35. data/config/locales/eo.yml +0 -182
  36. data/config/locales/es-AR.yml +0 -177
  37. data/config/locales/es-CO.yml +0 -179
  38. data/config/locales/es-MX.yml +0 -186
  39. data/config/locales/es-PE.yml +0 -124
  40. data/config/locales/es.yml +0 -285
  41. data/config/locales/et.yml +0 -187
  42. data/config/locales/eu.yml +0 -264
  43. data/config/locales/fa.yml +0 -143
  44. data/config/locales/fi.yml +0 -155
  45. data/config/locales/fr-CA.yml +0 -187
  46. data/config/locales/fr-CH.yml +0 -184
  47. data/config/locales/fr.yml +0 -182
  48. data/config/locales/fun/en-AU.rb +0 -105
  49. data/config/locales/fun/gibberish.rb +0 -109
  50. data/config/locales/fur.yml +0 -144
  51. data/config/locales/gl-ES.yml +0 -196
  52. data/config/locales/gsw-CH.yml +0 -182
  53. data/config/locales/he.yml +0 -106
  54. data/config/locales/hi-IN.yml +0 -181
  55. data/config/locales/hi.yml +0 -181
  56. data/config/locales/hr.yml +0 -119
  57. data/config/locales/hsb.yml +0 -193
  58. data/config/locales/hu.yml +0 -147
  59. data/config/locales/id.yml +0 -142
  60. data/config/locales/is.yml +0 -145
  61. data/config/locales/it.yml +0 -198
  62. data/config/locales/ja.yml +0 -191
  63. data/config/locales/ko.yml +0 -186
  64. data/config/locales/lo.yml +0 -204
  65. data/config/locales/lt.yml +0 -144
  66. data/config/locales/lv.yml +0 -181
  67. data/config/locales/mk.yml +0 -118
  68. data/config/locales/mn.yml +0 -159
  69. data/config/locales/nb.yml +0 -140
  70. data/config/locales/nl.yml +0 -186
  71. data/config/locales/nn.yml +0 -99
  72. data/config/locales/pl.yml +0 -193
  73. data/config/locales/pt-BR.yml +0 -208
  74. data/config/locales/pt-PT.yml +0 -190
  75. data/config/locales/rm.yml +0 -137
  76. data/config/locales/ro.yml +0 -155
  77. data/config/locales/ru.yml +0 -213
  78. data/config/locales/sk.yml +0 -195
  79. data/config/locales/sl.yml +0 -193
  80. data/config/locales/sr-Latn.yml +0 -119
  81. data/config/locales/sr.yml +0 -119
  82. data/config/locales/sv.yml +0 -244
  83. data/config/locales/sw.yml +0 -182
  84. data/config/locales/th.rb +0 -200
  85. data/config/locales/tr.yml +0 -142
  86. data/config/locales/uk.yml +0 -240
  87. data/config/locales/vi.yml +0 -201
  88. data/config/locales/zh-CN.yml +0 -210
  89. data/config/locales/zh-TW.yml +0 -210
  90. data/lib/gemspec.rb +0 -29
@@ -1,183 +0,0 @@
1
- # Benagli (India) translations for Rails
2
- # by Arindam Ghosh (makghosh@gmail.com)
3
-
4
- bn-IN:
5
- number:
6
- # Used in number_with_delimiter()
7
- # These are also the defaults for 'currency', 'percentage', 'precision', and 'human'
8
- format:
9
- # Sets the separator between the units, for more precision (e.g. 1.0 / 2.0 == 0.5)
10
- separator: "."
11
- # Delimets thousands (e.g. 1,000,000 is a million) (always in groups of three)
12
- delimiter: ","
13
- # Number of decimals, behind the separator (1 with a precision of 2 gives: 1.00)
14
- precision: 2
15
-
16
- # Used in number_to_currency()
17
- currency:
18
- format:
19
- # Where is the currency sign? %u is the currency unit, %n the number (default: $5.00)
20
- format: "%u %n"
21
- unit: "Rs."
22
- # These three are to override number.format and are optional
23
- separator: "."
24
- delimiter: ","
25
- precision: 2
26
-
27
- # Used in number_to_percentage()
28
- percentage:
29
- format:
30
- # These three are to override number.format and are optional
31
- # separator:
32
- delimiter: ""
33
- # precision:
34
-
35
- # Used in number_to_precision()
36
- precision:
37
- format:
38
- # These three are to override number.format and are optional
39
- # separator:
40
- delimiter: ""
41
- # precision:
42
-
43
- # Used in number_to_human_size()
44
- human:
45
- format:
46
- # These three are to override number.format and are optional
47
- # separator:
48
- delimiter: ""
49
- precision: 1
50
- # Rails <= v2.2.2
51
- # storage_units: [Bytes, KB, MB, GB, TB]
52
- # Rails >= v2.3
53
- storage_units:
54
- format: "%n %u"
55
- units:
56
- byte:
57
- one: "Byte"
58
- other: "Bytes"
59
- kb: "KB"
60
- mb: "MB"
61
- gb: "GB"
62
- tb: "TB"
63
-
64
- # Used in distance_of_time_in_words(), distance_of_time_in_words_to_now(), time_ago_in_words()
65
- datetime:
66
- distance_in_words:
67
- half_a_minute: "অার্ধেক মিনিট"
68
- less_than_x_seconds:
69
- one: "১ সেকেন্ডর কম "
70
- other: "%{count} সেকেন্ডের কম"
71
- x_seconds:
72
- one: "১ সেকেন্ড"
73
- other: "%{count} সেকেন্ড"
74
- less_than_x_minutes:
75
- one: "১ মিনিটের কম"
76
- other: "%{count} মিনিটের কম"
77
- x_minutes:
78
- one: "১ মিনিট"
79
- other: "%{count} মিনিট"
80
- about_x_hours:
81
- one: "প্রায় ১ ঘন্টা"
82
- other: "প্রায় %{count} ঘন্টা"
83
- x_days:
84
- one: "১ দিন"
85
- other: "%{count} দিন"
86
- about_x_months:
87
- one: "প্রায় ১ মাস"
88
- other: "প্রায় %{count} মাস"
89
- x_months:
90
- one: "১ মাস"
91
- other: "%{count} মাস"
92
- about_x_years:
93
- one: "প্রায় ১ বছর"
94
- other: "প্রায় %{count} বছর"
95
- over_x_years:
96
- one: "১ বছরের বেশি"
97
- other: "%{count} বছরের বেশি"
98
- prompts:
99
- year: "বছর"
100
- month: "মাস"
101
- day: "দিন"
102
- hour: "ঘন্টা"
103
- minute: "মিনিট"
104
- second: "সেকেন্ড"
105
-
106
- activerecord:
107
- errors:
108
- template:
109
- header:
110
- one: "১ টি ত্রুটির কারনে %{model} সংরক্ষন করা সম্ভব হয়নি"
111
- other: "%{count} টি ত্রুটির কারনে %{model} সংরক্ষন করা সম্ভব হয়নি"
112
- # The variable :count is also available
113
- body: "এই ফিল্ডগুলোতে কিছু সমস্যা দেখা দিয়েছে:"
114
-
115
- # The values :model, :attribute and :value are always available for interpolation
116
- # The value :count is available when applicable. Can be used for pluralization.
117
- messages:
118
- inclusion: "লিস্টে অন্তর্ভুক্ত নয়"
119
- exclusion: "রিসার্ভ করা অাছে"
120
- invalid: "সঠিক নয়"
121
- confirmation: "অনুমোদনের সঙ্গে মিলছে না"
122
- accepted: "গ্রাহ্য করতে হবে"
123
- empty: "খালি রাখা যাবে না"
124
- blank: "ফাঁকা রাখা যাবে না"
125
- too_long: "খুব বড়ো (সর্বোচ্চ %{count} অক্ষর)"
126
- too_short: "খুব ছোটো (সর্বনিম্ন %{count} অক্ষর)"
127
- wrong_length: "দৈর্ঘ্যটি সঠিক নয় (%{count} অক্ষর হতে হবে)"
128
- taken: "অাগেই নিয়ে নেওয়া হয়েছে"
129
- not_a_number: "নম্বর নয়"
130
- greater_than: "%{count} থেকে বড়ো হতে হবে"
131
- greater_than_or_equal_to: "%{count} থেকে বড়ো অথবা তার সমান হতে হবে"
132
- equal_to: "%{count} এর সঙ্গে সমান হতে হবে"
133
- less_than: "%{count} থেকে ছোটো হতে হবে"
134
- less_than_or_equal_to: "%{count} থেকে ছোটো অথবা তার সমান হতে হবে"
135
- odd: "বেজোড় হতে হবে"
136
- even: "জোড় হতে হবে"
137
-
138
- # Append your own errors here or at the model/attributes scope.
139
-
140
- # models:
141
- # Overrides default messages
142
-
143
- # attributes:
144
- # Overrides model and default messages.
145
-
146
- date:
147
- formats:
148
- # Use the strftime parameters for formats.
149
- # When no format has been given, it uses default.
150
- # You can provide other formats here if you like!
151
- default: "%e/%m/%Y"
152
- short: "%e de %b"
153
- long: "%e de %B de %Y"
154
-
155
- day_names: [রবিবার, সোমবার, মঙ্গলবার, বুধবার, বৃহস্পতিবার, শুক্রবার, শনিবার]
156
- abbr_day_names: [রবিবার, সোমবার, মঙ্গলবার, বুধবার, বৃহস্পতিবার, শুক্রবার, শনিবার]
157
-
158
- # Don't forget the nil at the beginning; there's no such thing as a 0th month
159
- month_names: [~, জানুয়ারি, ফেব্রুয়ারি, মার্চ, এপ্রিল, মে, জুন, জুলাই, অগাস্ট, সেপ্টেমবার, অক্টোবার, নভেম্বার, ডিসেম্বার]
160
- abbr_month_names: [~, জানুয়ারি, ফেব্রুয়ারি, মার্চ, এপ্রিল, মে, জুন, জুলাই, অগাস্ট, সেপ্টেমবার, অক্টোবার, নভেম্বার, ডিসেম্বার]
161
- # Used in date_select and datime_select.
162
- order:
163
- - :year
164
- - :month
165
- - :day
166
-
167
- time:
168
- formats:
169
- default: "%A, %e de %B de %Y %H:%M:%S %z"
170
- short: "%e de %b %H:%M"
171
- long: "%e de %B de %Y %H:%M"
172
- am: "am"
173
- pm: "pm"
174
-
175
- # Used in array.to_sentence.
176
- support:
177
- array:
178
- # Rails <= v.2.2.2
179
- # sentence_connector: "y"
180
- # Rails >= v.2.3
181
- words_connector: ", "
182
- two_words_connector: " এবং "
183
- last_word_connector: ", এবং "
@@ -1,117 +0,0 @@
1
- # bs [Bosnian] are the same as bs_BA [Bosnian (Bosnia and Herzegovina)]
2
- # translations for Ruby on Rails by Dejan Dimić (dejan.dimic@gmail.com)
3
-
4
- "bs":
5
- date:
6
- formats:
7
- default: "%d/%m/%Y"
8
- short: "%e %b"
9
- long: "%B %e, %Y"
10
- only_day: "%e"
11
-
12
- day_names: [nedjelja, ponedjeljak, utorak, srijeda, četvrtak, petak, subota]
13
- abbr_day_names: [ned, pon, uto, sri, čet, pet, sub]
14
- month_names: [~, Januar, Februar, Mart, April, Maj, Јun, Јul, Аvgust, Septembar, Оktobar, Novembar, Decembar]
15
- abbr_month_names: [~, Jan, Feb, Mar, Apr, Мaj, Jun, Јul, Avg, Sep, Okt, Nov, Dec]
16
- order:
17
- - :day
18
- - :month
19
- - :year
20
-
21
- time:
22
- formats:
23
- default: "%a %b %d %H:%M:%S %Z %Y"
24
- time: "%H:%M"
25
- short: "%d %b %H:%M"
26
- long: "%B %d, %Y %H:%M"
27
- only_second: "%S"
28
-
29
- am: 'АМ'
30
- pm: 'PМ'
31
-
32
- datetime:
33
- formats:
34
- default: "%Y-%m-%dT%H:%M:%S%Z"
35
- distance_in_words:
36
- half_a_minute: 'pola minute'
37
- less_than_x_seconds:
38
- zero: 'manje od 1 sekunde'
39
- one: 'manje od 1 sekunde'
40
- few: 'manje od %{count} sekunde'
41
- other: 'manje od %{count} sekundi'
42
- x_seconds:
43
- one: '1 sekunda'
44
- few: '%{count} sekunde'
45
- other: '%{count} sekundi'
46
- less_than_x_minutes:
47
- zero: 'manje оd minuta'
48
- one: 'manje od 1 minut'
49
- other: 'manje od %{count} minuta'
50
- x_minutes:
51
- one: '1 minut'
52
- other: '%{count} minuta'
53
- about_x_hours:
54
- one: 'oko 1 sat'
55
- few: 'око %{count} sata'
56
- other: 'око %{count} sati'
57
- x_days:
58
- one: '1 dan'
59
- other: '%{count} dana'
60
- about_x_months:
61
- one: 'око 1 mjesec'
62
- few: 'око %{count} mjeseca'
63
- other: 'око %{count} mjeseci'
64
- x_months:
65
- one: '1 mjesec'
66
- few: '%{count} mjeseca'
67
- other: '%{count} mjeseci'
68
- about_x_years:
69
- one: 'око 1 godine'
70
- other: 'око %{count} godine'
71
- over_x_years:
72
- one: 'preko 1 godine'
73
- other: 'preko %{count} godine'
74
-
75
- number:
76
- format:
77
- precision: 3
78
- separator: ','
79
- delimiter: '.'
80
- currency:
81
- format:
82
- unit: 'KM'
83
- precision: 2
84
- format: '%n %u'
85
-
86
- support:
87
- array:
88
- sentence_connector: "i"
89
-
90
- activerecord:
91
- errors:
92
- template:
93
- header:
94
- one: 'nisam uspio sačuvati %{model}: 1 greška.'
95
- few: 'nisam uspio sačuvati %{model}: %{count} greške.'
96
- other: 'nisam uspio sačuvati %{model}: %{count} greški.'
97
- body: "Molim Vas da provjerite slijedeća polja:"
98
- messages:
99
- inclusion: "nije u listi"
100
- exclusion: "nije dostupno"
101
- invalid: "nije ispravan"
102
- confirmation: "se ne slaže sa svojom potvrdom"
103
- accepted: "mora biti prihvaćeno"
104
- empty: "mora biti dat"
105
- blank: "mora biti dat"
106
- too_long: "je predugačak (ne više od %{count} karaktera)"
107
- too_short: "је prekratak (ne manje od %{count} karaktera)"
108
- wrong_length: "nije odgovarajuće dužine (mora biti %{count} karaktera)"
109
- taken: "је zauzeto"
110
- not_a_number: "nije broj"
111
- greater_than: "mora biti veće od %{count}"
112
- greater_than_or_equal_to: "mora biti veće ili jednako %{count}"
113
- equal_to: "mora biti jednako %{count}"
114
- less_than: "mora biti manje od %{count}"
115
- less_than_or_equal_to: "mora biti manje ili jednako %{count}"
116
- odd: "mora biti neparno"
117
- even: "mora biti parno"
@@ -1,170 +0,0 @@
1
- # Catalan translations for Rails
2
- # by Emili Parreño (emili@eparreno.com - www.eparreno.com)
3
-
4
- ca:
5
- number:
6
- # Used in number_with_delimiter()
7
- # These are also the defaults for 'currency', 'percentage', 'precision', and 'human'
8
- format:
9
- # Sets the separator between the units, for more precision (e.g. 1.0 / 2.0 == 0.5)
10
- separator: ","
11
- # Delimets thousands (e.g. 1,000,000 is a million) (always in groups of three)
12
- delimiter: "."
13
- # Number of decimals, behind the separator (1 with a precision of 2 gives: 1.00)
14
- precision: 3
15
-
16
- # Used in number_to_currency()
17
- currency:
18
- format:
19
- # Where is the currency sign? %u is the currency unit, %n the number (default: $5.00)
20
- format: "%n %u"
21
- unit: "€"
22
- # These three are to override number.format and are optional
23
- separator: ","
24
- delimiter: "."
25
- precision: 2
26
-
27
- # Used in number_to_percentage()
28
- percentage:
29
- format:
30
- # These three are to override number.format and are optional
31
- # separator:
32
- delimiter: ""
33
- # precision:
34
-
35
- # Used in number_to_precision()
36
- precision:
37
- format:
38
- # These three are to override number.format and are optional
39
- # separator:
40
- delimiter: ""
41
- # precision:
42
-
43
- # Used in number_to_human_size()
44
- human:
45
- format:
46
- # These three are to override number.format and are optional
47
- # separator:
48
- delimiter: ""
49
- precision: 1
50
- storage_units:
51
- # Storage units output formatting.
52
- # %u is the storage unit, %n is the number (default: 2 MB)
53
- format: "%n %u"
54
- units:
55
- byte:
56
- one: "Byte"
57
- other: "Bytes"
58
- kb: "KB"
59
- mb: "MB"
60
- gb: "GB"
61
- tb: "TB"
62
-
63
- # Used in distance_of_time_in_words(), distance_of_time_in_words_to_now(), time_ago_in_words()
64
- datetime:
65
- distance_in_words:
66
- half_a_minute: "mig minut"
67
- less_than_x_seconds:
68
- one: "menys d'1 segon"
69
- other: "menys de %{count} segons"
70
- x_seconds:
71
- one: "1 segon"
72
- other: "%{count} segons"
73
- less_than_x_minutes:
74
- one: "menys d'1 minut"
75
- other: "menys de %{count} minuts"
76
- x_minutes:
77
- one: "1 minut"
78
- other: "%{count} minuts"
79
- about_x_hours:
80
- one: "aproximadament 1 hora"
81
- other: "aproximadament %{count} hores"
82
- x_days:
83
- one: "1 dia"
84
- other: "%{count} dies"
85
- about_x_months:
86
- one: "aproximadament 1 mes"
87
- other: "aproximadament %{count} mesos"
88
- x_months:
89
- one: "1 mes"
90
- other: "%{count} mesos"
91
- about_x_years:
92
- one: "aproximadament 1 any"
93
- other: "aproximadament %{count} anys"
94
- over_x_years:
95
- one: "més d'1 any"
96
- other: "més de %{count} anys"
97
-
98
- activerecord:
99
- errors:
100
- template:
101
- header:
102
- one: "No s'ha pogut desar aquest/a %{model} perquè hi ha 1 error"
103
- other: "No s'ha pogut desar aquest/a %{model} perquè hi ha hagut %{count} errors"
104
- # The variable :count is also available
105
- body: "Hi ha hagut problemes amb els següents camps:"
106
-
107
- # The values :model, :attribute and :value are always available for interpolation
108
- # The value :count is available when applicable. Can be used for pluralization.
109
- messages:
110
- inclusion: "no està incluós a la llista"
111
- exclusion: "està reservat"
112
- invalid: "no és vàlid"
113
- confirmation: "no coincideix"
114
- accepted: "ha de ser acceptat"
115
- empty: "no pot estar buit"
116
- blank: "no pot estar en blanc"
117
- too_long: "és massa llarg (%{count} caràcters màxim)"
118
- too_short: "és massa curt (%{count} caràcters mínim)"
119
- wrong_length: "no té la longitud correcte (%{count} caràcters exactament)"
120
- taken: "no està disponible"
121
- not_a_number: "no és un número"
122
- greater_than: "ha de ser més gran que %{count}"
123
- greater_than_or_equal_to: "ha de ser més gran o igual a %{count}"
124
- equal_to: "ha de ser igual a %{count}"
125
- less_than: "ha de ser menor que %{count}"
126
- less_than_or_equal_to: "ha de ser menor o igual a %{count}"
127
- odd: "ha de ser imparell"
128
- even: "ha de ser parell"
129
-
130
- # Append your own errors here or at the model/attributes scope.
131
-
132
- models:
133
- # Overrides default messages
134
-
135
- attributes:
136
- # Overrides model and default messages.
137
-
138
- date:
139
- formats:
140
- # Use the strftime parameters for formats.
141
- # When no format has been given, it uses default.
142
- # You can provide other formats here if you like!
143
- default: "%Y-%m-%d"
144
- short: "%d de %b"
145
- long: "%d de %B de %Y"
146
-
147
- day_names: [diumenge, dilluns, dimarts, dimecres, dijous, divendres, dissabte]
148
- abbr_day_names: [dg, dl, dm, dc, dj, dv, ds]
149
-
150
- # Don't forget the nil at the beginning; there's no such thing as a 0th month
151
- month_names: [~, gener, febrer, març, abril, maig, juny, juliol, agost, setembre, octubre, novembre, desembre]
152
- abbr_month_names: [~, Gen, Feb, Mar, Abr, Mai, Jun, Jul, Ago, Set, Oct, Nov, Des]
153
- # Used in date_select and datime_select.
154
- order:
155
- - :day
156
- - :month
157
- - :year
158
-
159
- time:
160
- formats:
161
- default: "%A, %d de %B de %Y %H:%M:%S %z"
162
- short: "%d de %b %H:%M"
163
- long: "%d de %B de %Y %H:%M"
164
- am: "am"
165
- pm: "pm"
166
-
167
- # Used in array.to_sentence.
168
- support:
169
- array:
170
- sentence_connector: "i"