refinerycms-i18n 0.9.8

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.
Files changed (88) hide show
  1. data/REFINERY_README +8 -0
  2. data/Rakefile +34 -0
  3. data/config/locales/ar.yml +121 -0
  4. data/config/locales/bg.yml +198 -0
  5. data/config/locales/bn-IN.yml +180 -0
  6. data/config/locales/bs.yml +114 -0
  7. data/config/locales/ca-ES.yml +155 -0
  8. data/config/locales/cz.rb +166 -0
  9. data/config/locales/da.yml +167 -0
  10. data/config/locales/de-AT.yml +140 -0
  11. data/config/locales/de.yml +141 -0
  12. data/config/locales/dsb.yml +182 -0
  13. data/config/locales/el.yml +191 -0
  14. data/config/locales/es-AR.yml +168 -0
  15. data/config/locales/es-CO.yml +146 -0
  16. data/config/locales/es-MX.yml +118 -0
  17. data/config/locales/es.yml +186 -0
  18. data/config/locales/et.yml +109 -0
  19. data/config/locales/fa.yml +119 -0
  20. data/config/locales/fi.yml +154 -0
  21. data/config/locales/fr-CH.yml +123 -0
  22. data/config/locales/fr.yml +140 -0
  23. data/config/locales/fun/en-AU.rb +105 -0
  24. data/config/locales/fun/gibberish.rb +109 -0
  25. data/config/locales/fur.yml +141 -0
  26. data/config/locales/gl-ES.yml +193 -0
  27. data/config/locales/he.yml +103 -0
  28. data/config/locales/hr.yml +116 -0
  29. data/config/locales/hsb.yml +190 -0
  30. data/config/locales/hu.yml +144 -0
  31. data/config/locales/id.yml +122 -0
  32. data/config/locales/is.yml +142 -0
  33. data/config/locales/it.yml +146 -0
  34. data/config/locales/ja.yml +139 -0
  35. data/config/locales/ko.yml +153 -0
  36. data/config/locales/lo.yml +201 -0
  37. data/config/locales/lt.yml +141 -0
  38. data/config/locales/lv.yml +132 -0
  39. data/config/locales/mk.yml +115 -0
  40. data/config/locales/nb.yml +103 -0
  41. data/config/locales/nl.yml +173 -0
  42. data/config/locales/nn.yml +96 -0
  43. data/config/locales/pl.yml +127 -0
  44. data/config/locales/pt-BR.yml +148 -0
  45. data/config/locales/pt-PT.yml +220 -0
  46. data/config/locales/rm.yml +134 -0
  47. data/config/locales/ro.yml +152 -0
  48. data/config/locales/ru.yml +210 -0
  49. data/config/locales/sk.yml +139 -0
  50. data/config/locales/sl.yml +190 -0
  51. data/config/locales/sr-Latn.yml +116 -0
  52. data/config/locales/sr.yml +116 -0
  53. data/config/locales/sv-SE.yml +191 -0
  54. data/config/locales/sw.yml +123 -0
  55. data/config/locales/th.rb +222 -0
  56. data/config/locales/tr.yml +139 -0
  57. data/config/locales/uk.yml +237 -0
  58. data/config/locales/vi.yml +198 -0
  59. data/config/locales/zh-CN.yml +131 -0
  60. data/config/locales/zh-TW.yml +132 -0
  61. data/i18n-js-readme.rdoc +249 -0
  62. data/lib/gemspec.rb +29 -0
  63. data/lib/refinery/i18n-filter.rb +38 -0
  64. data/lib/refinery/i18n-js.rb +132 -0
  65. data/lib/refinery/i18n-js.yml +4 -0
  66. data/lib/refinery/i18n.js +339 -0
  67. data/lib/refinery/i18n.rb +146 -0
  68. data/lib/refinery/translate.rb +13 -0
  69. data/lib/tasks/i18n-js_tasks.rake +16 -0
  70. data/lib/tasks/translate.rake +200 -0
  71. data/lib/translate/file.rb +35 -0
  72. data/lib/translate/keys.rb +123 -0
  73. data/lib/translate/log.rb +39 -0
  74. data/lib/translate/storage.rb +20 -0
  75. data/test/i18n-test.html +50 -0
  76. data/test/i18n-test.js +661 -0
  77. data/test/i18n_js_test.rb +168 -0
  78. data/test/jsunittest/jsunittest.js +1017 -0
  79. data/test/jsunittest/unittest.css +54 -0
  80. data/test/resources/custom_path.yml +4 -0
  81. data/test/resources/default.yml +4 -0
  82. data/test/resources/locales.yml +76 -0
  83. data/test/resources/multiple_files.yml +6 -0
  84. data/test/resources/no_scope.yml +3 -0
  85. data/test/resources/simple_scope.yml +4 -0
  86. data/test/test_helper.rb +24 -0
  87. data/translate-readme.md +61 -0
  88. metadata +154 -0
@@ -0,0 +1,140 @@
1
+ # German translations for Ruby on Rails
2
+ # by Clemens Kofler (clemens@railway.at)
3
+
4
+ de-AT:
5
+ date:
6
+ formats:
7
+ default: "%d.%m.%Y"
8
+ short: "%e. %b"
9
+ long: "%e. %B %Y"
10
+ only_day: "%e"
11
+
12
+ day_names: [Sonntag, Montag, Dienstag, Mittwoch, Donnerstag, Freitag, Samstag]
13
+ abbr_day_names: [So, Mo, Di, Mi, Do, Fr, Sa]
14
+ month_names: [~, Jänner, Februar, März, April, Mai, Juni, Juli, August, September, Oktober, November, Dezember]
15
+ abbr_month_names: [~, Jän, Feb, Mär, Apr, Mai, Jun, Jul, Aug, Sep, Okt, Nov, Dez]
16
+ order: [ :day, :month, :year ]
17
+
18
+ time:
19
+ formats:
20
+ default: "%A, %d. %B %Y, %H:%M Uhr"
21
+ short: "%d. %B, %H:%M Uhr"
22
+ long: "%A, %d. %B %Y, %H:%M Uhr"
23
+ time: "%H:%M"
24
+
25
+ am: "vormittags"
26
+ pm: "nachmittags"
27
+
28
+ datetime:
29
+ distance_in_words:
30
+ half_a_minute: 'eine halbe Minute'
31
+ less_than_x_seconds:
32
+ zero: 'weniger als 1 Sekunde'
33
+ one: 'weniger als 1 Sekunde'
34
+ other: 'weniger als %{count} Sekunden'
35
+ x_seconds:
36
+ one: '1 Sekunde'
37
+ other: '%{count} Sekunden'
38
+ less_than_x_minutes:
39
+ zero: 'weniger als 1 Minute'
40
+ one: 'weniger als eine Minute'
41
+ other: 'weniger als %{count} Minuten'
42
+ x_minutes:
43
+ one: '1 Minute'
44
+ other: '%{count} Minuten'
45
+ about_x_hours:
46
+ one: 'etwa 1 Stunde'
47
+ other: 'etwa %{count} Stunden'
48
+ x_days:
49
+ one: '1 Tag'
50
+ other: '%{count} Tage'
51
+ about_x_months:
52
+ one: 'etwa 1 Monat'
53
+ other: 'etwa %{count} Monate'
54
+ x_months:
55
+ one: '1 Monat'
56
+ other: '%{count} Monate'
57
+ about_x_years:
58
+ one: 'etwa 1 Jahr'
59
+ other: 'etwa %{count} Jahre'
60
+ over_x_years:
61
+ one: 'mehr als 1 Jahr'
62
+ other: 'mehr als %{count} Jahre'
63
+ prompts:
64
+ second: "Sekunden"
65
+ minute: "Minuten"
66
+ hour: "Stunden"
67
+ day: "Tag"
68
+ month: "Monat"
69
+ year: "Jahr"
70
+
71
+ number:
72
+ format:
73
+ precision: 2
74
+ separator: ','
75
+ delimiter: '.'
76
+ currency:
77
+ format:
78
+ unit: '€'
79
+ format: '%n%u'
80
+ separator:
81
+ delimiter:
82
+ precision:
83
+ percentage:
84
+ format:
85
+ delimiter: ""
86
+ precision:
87
+ format:
88
+ delimiter: ""
89
+ human:
90
+ format:
91
+ delimiter: ""
92
+ precision: 1
93
+ storage_units:
94
+ # Storage units output formatting.
95
+ # %u is the storage unit, %n is the number (default: 2 MB)
96
+ format: "%n %u"
97
+ units:
98
+ byte:
99
+ one: "Byte"
100
+ other: "Bytes"
101
+ kb: "KB"
102
+ mb: "MB"
103
+ gb: "GB"
104
+ tb: "TB"
105
+
106
+ support:
107
+ array:
108
+ words_connector: ", "
109
+ two_words_connector: " und "
110
+ last_word_connector: " und "
111
+
112
+ activerecord:
113
+ errors:
114
+ template:
115
+ header:
116
+ one: "Konnte dieses %{model} Objekt nicht speichern: 1 Fehler."
117
+ other: "Konnte dieses %{model} Objekt nicht speichern: %{count} Fehler."
118
+ body: "Bitte überprüfen Sie die folgenden Felder:"
119
+
120
+ messages:
121
+ inclusion: "ist kein gültiger Wert"
122
+ exclusion: "ist nicht verfügbar"
123
+ invalid: "ist nicht gültig"
124
+ confirmation: "stimmt nicht mit der Bestätigung überein"
125
+ accepted: "muss akzeptiert werden"
126
+ empty: "muss ausgefüllt werden"
127
+ blank: "muss ausgefüllt werden"
128
+ too_long: "ist zu lang (nicht mehr als %{count} Zeichen)"
129
+ too_short: "ist zu kurz (nicht weniger als %{count} Zeichen)"
130
+ wrong_length: "hat die falsche Länge (muss genau %{count} Zeichen haben)"
131
+ taken: "ist bereits vergeben"
132
+ not_a_number: "ist keine Zahl"
133
+ greater_than: "muss größer als %{count} sein"
134
+ greater_than_or_equal_to: "muss größer oder gleich %{count} sein"
135
+ equal_to: "muss genau %{count} sein"
136
+ less_than: "muss kleiner als %{count} sein"
137
+ less_than_or_equal_to: "muss kleiner oder gleich %{count} sein"
138
+ odd: "muss ungerade sein"
139
+ even: "muss gerade sein"
140
+ models:
@@ -0,0 +1,141 @@
1
+ # German translations for Ruby on Rails
2
+ # by Clemens Kofler (clemens@railway.at)
3
+
4
+ de:
5
+ date:
6
+ formats:
7
+ default: "%d.%m.%Y"
8
+ short: "%e. %b"
9
+ long: "%e. %B %Y"
10
+ only_day: "%e"
11
+
12
+ day_names: [Sonntag, Montag, Dienstag, Mittwoch, Donnerstag, Freitag, Samstag]
13
+ abbr_day_names: [So, Mo, Di, Mi, Do, Fr, Sa]
14
+ month_names: [~, Januar, Februar, März, April, Mai, Juni, Juli, August, September, Oktober, November, Dezember]
15
+ abbr_month_names: [~, Jan, Feb, Mär, Apr, Mai, Jun, Jul, Aug, Sep, Okt, Nov, Dez]
16
+ order: [ :day, :month, :year ]
17
+
18
+ time:
19
+ formats:
20
+ default: "%A, %d. %B %Y, %H:%M Uhr"
21
+ short: "%d. %B, %H:%M Uhr"
22
+ long: "%A, %d. %B %Y, %H:%M Uhr"
23
+ time: "%H:%M"
24
+
25
+ am: "vormittags"
26
+ pm: "nachmittags"
27
+
28
+ datetime:
29
+ distance_in_words:
30
+ half_a_minute: 'eine halbe Minute'
31
+ less_than_x_seconds:
32
+ zero: 'weniger als 1 Sekunde'
33
+ one: 'weniger als 1 Sekunde'
34
+ other: 'weniger als %{count} Sekunden'
35
+ x_seconds:
36
+ one: '1 Sekunde'
37
+ other: '%{count} Sekunden'
38
+ less_than_x_minutes:
39
+ zero: 'weniger als 1 Minute'
40
+ one: 'weniger als eine Minute'
41
+ other: 'weniger als %{count} Minuten'
42
+ x_minutes:
43
+ one: '1 Minute'
44
+ other: '%{count} Minuten'
45
+ about_x_hours:
46
+ one: 'etwa 1 Stunde'
47
+ other: 'etwa %{count} Stunden'
48
+ x_days:
49
+ one: '1 Tag'
50
+ other: '%{count} Tage'
51
+ about_x_months:
52
+ one: 'etwa 1 Monat'
53
+ other: 'etwa %{count} Monate'
54
+ x_months:
55
+ one: '1 Monat'
56
+ other: '%{count} Monate'
57
+ about_x_years:
58
+ one: 'etwa 1 Jahr'
59
+ other: 'etwa %{count} Jahre'
60
+ over_x_years:
61
+ one: 'mehr als 1 Jahr'
62
+ other: 'mehr als %{count} Jahre'
63
+ prompts:
64
+ second: "Sekunden"
65
+ minute: "Minuten"
66
+ hour: "Stunden"
67
+ day: "Tag"
68
+ month: "Monat"
69
+ year: "Jahr"
70
+
71
+ number:
72
+ format:
73
+ precision: 2
74
+ separator: ','
75
+ delimiter: '.'
76
+ currency:
77
+ format:
78
+ unit: '€'
79
+ format: '%n%u'
80
+ separator:
81
+ delimiter:
82
+ precision:
83
+ percentage:
84
+ format:
85
+ delimiter: ""
86
+ precision:
87
+ format:
88
+ delimiter: ""
89
+ human:
90
+ format:
91
+ delimiter: ""
92
+ precision: 1
93
+ storage_units:
94
+ # Storage units output formatting.
95
+ # %u is the storage unit, %n is the number (default: 2 MB)
96
+ format: "%n %u"
97
+ units:
98
+ byte:
99
+ one: "Byte"
100
+ other: "Bytes"
101
+ kb: "KB"
102
+ mb: "MB"
103
+ gb: "GB"
104
+ tb: "TB"
105
+
106
+ support:
107
+ array:
108
+ words_connector: ", "
109
+ two_words_connector: " und "
110
+ last_word_connector: " und "
111
+
112
+ activerecord:
113
+ errors:
114
+ template:
115
+ header:
116
+ one: "Konnte dieses %{model} Objekt nicht speichern: 1 Fehler."
117
+ other: "Konnte dieses %{model} Objekt nicht speichern: %{count} Fehler."
118
+ body: "Bitte überprüfen Sie die folgenden Felder:"
119
+
120
+ messages:
121
+ inclusion: "ist kein gültiger Wert"
122
+ exclusion: "ist nicht verfügbar"
123
+ invalid: "ist nicht gültig"
124
+ confirmation: "stimmt nicht mit der Bestätigung überein"
125
+ accepted: "muss akzeptiert werden"
126
+ empty: "muss ausgefüllt werden"
127
+ blank: "muss ausgefüllt werden"
128
+ too_long: "ist zu lang (nicht mehr als %{count} Zeichen)"
129
+ too_short: "ist zu kurz (nicht weniger als %{count} Zeichen)"
130
+ wrong_length: "hat die falsche Länge (muss genau %{count} Zeichen haben)"
131
+ taken: "ist bereits vergeben"
132
+ not_a_number: "ist keine Zahl"
133
+ greater_than: "muss größer als %{count} sein"
134
+ greater_than_or_equal_to: "muss größer oder gleich %{count} sein"
135
+ equal_to: "muss genau %{count} sein"
136
+ less_than: "muss kleiner als %{count} sein"
137
+ less_than_or_equal_to: "muss kleiner oder gleich %{count} sein"
138
+ odd: "muss ungerade sein"
139
+ even: "muss gerade sein"
140
+ record_invalid: "Gültigkeitsprüfung ist fehlgeschlagen: %{errors}"
141
+ models:
@@ -0,0 +1,182 @@
1
+ # Lower Sorbian translations for Ruby on Rails
2
+ # by Michael Wolf (preklady@wolfmicha.de)
3
+
4
+ hsb:
5
+ # ActiveSupport
6
+ support:
7
+ array:
8
+ words_connector: ", "
9
+ two_words_connector: " a "
10
+ last_word_connector: " a "
11
+ sentence_connector: "a"
12
+ skip_last_comma: true
13
+
14
+ # Date
15
+ date:
16
+ formats:
17
+ default: "%d. %m. %Y"
18
+ short: "%d %b"
19
+ long: "%d. %B %Y"
20
+ day_names: [njeźela, pónjeźele, wałtora, srjoda, stwórtk, pětk, sobota]
21
+ abbr_day_names: [Nj, Pó, Wu, Sr, St, Pě, So]
22
+ month_names: [~, Januar, Februar, Měrc, Apryl, Maj, Junij, Julij, Awgust, September, Oktober, Nowember, December]
23
+ abbr_month_names: [~, jan, feb, měr, apr, maj, jun, jul, awg, sep, okt, now, dec]
24
+ order: [:day, :month, :year]
25
+
26
+ # Time
27
+ time:
28
+ formats:
29
+ default: "%A, %d. %B %Y, %H:%M hodź"
30
+ short: "%d. %B, %H:%M hodź."
31
+ long: "%A, %d. %B %Y, %H:%M hodź."
32
+ am: "dopołdnja"
33
+ pm: "wótpołdnja"
34
+
35
+
36
+ # Numbers
37
+ number:
38
+ format:
39
+ precision: 3
40
+ separator: ","
41
+ delimiter: "."
42
+ currency:
43
+ format:
44
+ unit: "€"
45
+ precision: 2
46
+ format: "%n %u"
47
+ separator: ","
48
+ delimiter: " "
49
+ human:
50
+ format:
51
+ precision: 1
52
+ delimiter: ""
53
+ storage_units:
54
+ format: "%n %u"
55
+ units:
56
+ byte:
57
+ one: "bajt"
58
+ two: "bajta"
59
+ few: "bajty"
60
+ other: "bajtow"
61
+ kb: "KB"
62
+ mb: "MB"
63
+ gb: "GB"
64
+ tb: "TB"
65
+
66
+ percentage:
67
+ format:
68
+ delimiter: ""
69
+
70
+ precision:
71
+ format:
72
+ delimiter: ""
73
+
74
+
75
+ # Distance of time ... helper
76
+ # Used in distance_of_time_in_words(), distance_of_time_in_words_to_now(), time_ago_in_words()
77
+ datetime:
78
+ distance_in_words:
79
+ half_a_minute: "poł minuty"
80
+ less_than_x_seconds:
81
+ one: "mjenjej ako 1 sekundu"
82
+ two: "mjenjej ako %{count} sekundoma"
83
+ few: "mjenjej ako %{count} sekundami"
84
+ other: "mjenjej ako %{count} sekundami"
85
+ x_seconds:
86
+ one: "1 sekundu"
87
+ two: "%{count} sekundoma"
88
+ few: "%{count} sekundami"
89
+ other: "%{count} sekundami"
90
+ less_than_x_minutes:
91
+ one: "mjenjej ako 1 minutu"
92
+ two: "mjenjej ako %{count} minutoma"
93
+ few: "mjenjej ako %{count} minutami"
94
+ other: "mjenjej ako %{count} minutami"
95
+ x_minutes:
96
+ one: "1 minutu"
97
+ two: "%{count} minutoma"
98
+ few: "%{count} minutami"
99
+ other: "%{count} minutami"
100
+ about_x_hours:
101
+ one: "něźi 1 góźinu"
102
+ two: "něźi %{count} góźinoma"
103
+ few: "něźi %{count} góźinami"
104
+ other: "něźi %{count} góźinami"
105
+ x_days:
106
+ one: "1 dnjom"
107
+ two: "%{count} dnjoma"
108
+ few: "%{count} dnjami"
109
+ other: "%{count} dnjami"
110
+ about_x_months:
111
+ one: "něźi 1 mjasecom"
112
+ two: "něźi %{count} mjasecoma"
113
+ few: "něźi %{count} mjasecami"
114
+ other: "něźi %{count} mjasecami"
115
+ x_months:
116
+ one: "1 mjasecom"
117
+ two: "%{count} mjasecoma"
118
+ few: "%{count} mjasecami"
119
+ other: "%{count} mjasecami"
120
+ about_x_years:
121
+ one: "něźi 1 lětom"
122
+ two: "něźi %{count} lětoma"
123
+ few: "něźi %{count} lětami"
124
+ other: "něźi %{count} lětami"
125
+ over_x_years:
126
+ one: "wěcej ako 1 lětom"
127
+ two: "wěcej ako %{count} lětoma"
128
+ few: "wěcej ako %{count} lětami"
129
+ other: "wěcej ako %{count} lětami"
130
+ prompts:
131
+ year: "Lěto"
132
+ month: "Mjasec"
133
+ day: "Źeń"
134
+ hour: "Góźina"
135
+ minute: "Minuta"
136
+ second: "Sekunda"
137
+
138
+ # ActiveRecord validation messages
139
+ activerecord:
140
+ errors:
141
+ messages:
142
+ inclusion: "njejo płaśiwa gódnota"
143
+ exclusion: "njestoj k dispoziciji"
144
+ invalid: "njejo płaśiwy"
145
+ confirmation: "njejo se wobkšuśiło"
146
+ accepted: "musy se wobkšuśiś"
147
+ empty: "njesmějo prozny byś"
148
+ blank: "jo trěbny"
149
+ too_long:
150
+ one: "jo pśedłujki (maks. 1 znamješko)"
151
+ two: "jo pśedłujki (maks. %{count} znamješce)"
152
+ few: "jo pśedłujki (maks. %{count} znamješka)"
153
+ other: "jo pśedłujki (maks. %{count} znamješkow)"
154
+ too_short:
155
+ one: "jo překrotki (min. 1 znamješko)"
156
+ two: "jo překrotki (min. %{count} znamješće)"
157
+ few: "jo překrotki (min. %{count} znamješka)"
158
+ other: "jo překrotki (min. %{count} znamješkow)"
159
+ wrong_length:
160
+ one: "njama pšawu dłujkosć (1 znamješko wócakane)"
161
+ two: "njama pšawu dłujkosć (%{count} znamješce wócakanej)"
162
+ few: "njama pšawu dłujkosć (%{count} znamješka wócakane)"
163
+ other: "njama pšawu dłujkosć (%{count} znamješkow wócakanych)"
164
+ taken: "jo južo w datowej bance"
165
+ not_a_number: "njejo licba"
166
+ greater_than: "musy wětšy ako %{count} byś"
167
+ greater_than_or_equal_to: "musy wětšy abo jadnak %{count} być"
168
+ equal_to: "musy jadnak %{count} byś"
169
+ less_than: "musy mjeńšy ako %{count} byś"
170
+ less_than_or_equal_to: "musy mjeńšy abo jadnak %{count} byś"
171
+ odd: "musy njerowna licba byś"
172
+ even: "musy rowna licba byś"
173
+
174
+ template:
175
+ header:
176
+ one: "Pśi składowanju objekta %{model} jo k zmólce dojšło a njejo było móžno składowaś"
177
+ two: "Pśi składowanju objekta %{model} jo k %{count} zmólkam dojšło a njejo było móžno składowaś"
178
+ few: "Pśi składowanju objekta %{model} jo k %{count} zmólkam dojšło a njejo było móžno składowaś"
179
+ other: "Pśi składowanju objekta %{model} jo k %{count} zmólkam dojšło a njejo było móžno składowaś"
180
+ body: "Pšosym pśeglědaj slědujuce póla:"
181
+
182
+ models: