refinerycms-i18n 0.9.8

Sign up to get free protection for your applications and to get access to all the features.
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,191 @@
1
+ # Greek translations for Ruby on Rails
2
+ # by Nick Kokkos (nkokkos@gmail.com)
3
+
4
+ el:
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 (the number 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
+ # in Greek currency values would be represented as (e.g €5,78:five euros and seventy eight cents or €1.012,45: one thousand twelve euros and 45 cents)
21
+ format: "%u%n"
22
+ unit: "€"
23
+ # These three are to override number.format and are optional
24
+ separator: ","
25
+ delimiter: "."
26
+ precision: 2
27
+
28
+ # Used in number_to_percentage()
29
+ percentage:
30
+ format:
31
+ # These three are to override number.format and are optional
32
+ # separator:
33
+ delimiter: ""
34
+ # precision:
35
+
36
+ # Used in number_to_precision()
37
+ precision:
38
+ format:
39
+ # These three are to override number.format and are optional
40
+ # separator:
41
+ delimiter: ""
42
+ # precision:
43
+
44
+ # Used in number_to_human_size()
45
+ human:
46
+ format:
47
+ # These three are to override number.format and are optional
48
+ # separator:
49
+ delimiter: ""
50
+ precision: 1
51
+ storage_units: [Bytes, KB, MB, GB, TB]
52
+
53
+ # Used in distance_of_time_in_words(), distance_of_time_in_words_to_now(), time_ago_in_words()
54
+ datetime:
55
+ distance_in_words:
56
+ half_a_minute: "μισό λεπτό"
57
+ less_than_x_seconds:
58
+ one: "λιγότερο απο ένα δευτερόλεπτο"
59
+ other: "λιγότερο απο %{count} δευτερόλεπτα"
60
+ x_seconds:
61
+ one: "1 δευτερόλεπτο"
62
+ other: "%{count} δευτερόλεπτα"
63
+ less_than_x_minutes:
64
+ one: "λιγότερο απο ένα λεπτό"
65
+ other: "λιγότερο απο %{count} λεπτά"
66
+ x_minutes:
67
+ one: "ένα λεπτό"
68
+ other: "%{count} λεπτά"
69
+ about_x_hours:
70
+ one: "1 ώρα περίπου"
71
+ other: "%{count} hours περίπου"
72
+ x_days:
73
+ one: "1 μέρα"
74
+ other: "%{count} μέρες"
75
+ about_x_months:
76
+ one: "1 μήνα περίπου"
77
+ other: "%{count} μήνες περίπου"
78
+ x_months:
79
+ one: "1 μήνα"
80
+ other: "%{count} μήνες"
81
+ about_x_years:
82
+ one: "ένα χρόνο περίπου"
83
+ other: "%{count} χρόνια περίπου"
84
+ over_x_years:
85
+ one: "πάνω απο 1 χρόνο"
86
+ other: "πάνω απο %{count} χρόνια"
87
+
88
+ activerecord:
89
+ errors:
90
+ template:
91
+ header:
92
+ one: "1 λάθος παρεμπόδισε αυτό το %{model} να αποθηκευθεί"
93
+ other: "%{count} λάθη εμπόδισαν αυτό το %{model} να αποθηκευθεί"
94
+ # The variable :count is also available
95
+ body: "Υπήρξαν προβλήματα με τα ακόλουθα πεδία :"
96
+
97
+
98
+ activerecord:
99
+ errors:
100
+ # The values :model, :attribute and :value are always available for interpolation
101
+ # The value :count is available when applicable. Can be used for pluralization.
102
+ messages:
103
+ inclusion: "δεν συμπεριλαβάνεται στη λίστα"
104
+ exclusion: "είναι δεσμευμένο"
105
+ invalid: "είναι άκυρο"
106
+ confirmation: "δεν ταιριάζει με την επικύρωση"
107
+ accepted: "πρέπει να είναι αποδεκτό"
108
+ empty: "δεν πρέπει να είναι άδειο"
109
+ blank: "δεν πρέπει να είναι κενό"
110
+ too_long: "είναι πολύ μεγάλο (το μέγιστο μήκος είναι %{count} χαρακτήρες)"
111
+ too_short: "είναι πολύ μικρό (το μικρότερο μήκος είναι %{count} χαρακτήρες)"
112
+ wrong_length: "έχει λανθασμένο μήκος (πρέπει να είναι %{count} χαρακτήρες)"
113
+ taken: "το έχουν ήδη χρησιμοποιήσει"
114
+ not_a_number: "δεν είναι ένας αριθμός"
115
+ greater_than: "πρέπει να είναι μεγαλύτερο απο %{count}"
116
+ greater_than_or_equal_to: "πρέπει να είναι μεγαλύτερο ή ίσον με %{count}"
117
+ equal_to: "πρέπει να είναι ίσον με %{count}"
118
+ less_than: "πρέπει να είναι λιγότερο απο %{count}"
119
+ less_than_or_equal_to: "πρέπει να είναι λιγότερο ή ίσον με %{count}"
120
+ odd: "πρέπει να είναι περιττός"
121
+ even: "πρέπει να είναι άρτιος"
122
+ # Append your own errors here or at the model/attributes scope.
123
+
124
+ # You can define own errors for models or model attributes.
125
+ # The values :model, :attribute and :value are always available for interpolation.
126
+ #
127
+ # For example,
128
+ # models:
129
+ # user:
130
+ # blank: "This is a custom blank message for %{model}: %{attribute}"
131
+ # attributes:
132
+ # login:
133
+ # blank: "This is a custom blank message for User login"
134
+ # Will define custom blank validation message for User model and
135
+ # custom blank validation message for login attribute of User model.
136
+ # models:
137
+
138
+ # Translate model names. Used in Model.human_name().
139
+ #models:
140
+ # For example,
141
+ # user: "Dude"
142
+ # will translate User model name to "Dude"
143
+
144
+ # Translate model attribute names. Used in Model.human_attribute_name(attribute).
145
+ #attributes:
146
+ # For example,
147
+ # user:
148
+ # login: "Handle"
149
+ # will translate User attribute "login" as "Handle"
150
+
151
+
152
+ date:
153
+ formats:
154
+ # Use the strftime parameters for formats.
155
+ # When no format has been given, it uses default.
156
+ # You can provide other formats here if you like!
157
+ default: "%d-%m-%Y"
158
+ short: "%d %b"
159
+ long: "%d %B %Y"
160
+ only_day: "%e"
161
+
162
+ day_names: [Κυριακή, Δευτέρα, Τρίτη, Τετάρτη, Πέμπτη, Παρασκευή, Σάββατο]
163
+ abbr_day_names: [Κυρ, Δευ, Τρι, Τετ, Πεμ, Παρ, Σαβ]
164
+
165
+ # Don't forget the nil at the beginning; there's no such thing as a 0th month
166
+ month_names: [~, Ιανοάριος, Φεβρουάριος, Μάρτιος, Απρίλιος, Μάιος, Ιούνιος, Ιούλιος, Άυγουστος, Σεπτέμβριος, Οκτώβριος, Νοέμβριος, Δεκέμβριος]
167
+ abbr_month_names: [~, Ιαν, Φεβ, Μάρ, Απρ, Μαι, Ιουν, Ιούλ, Αυγ, Σεπ, Οκτ, Νοε, Δεκ]
168
+ # Used in date_select and datime_select.
169
+ # original was: order: [ :year, :month, :day ]
170
+ order: [ :day, :month, :year ]
171
+
172
+ time:
173
+ formats:
174
+ default: "%a %d %b %Y, %H:%M:%S %z"
175
+ time: "%H:%M"
176
+ short: "%d %b %H:%M"
177
+ long: "%d %B %Y %H:%M"
178
+ only_second: "%S"
179
+ am: "πμ"
180
+ pm: "μμ"
181
+
182
+ datetime:
183
+ formats:
184
+ default: "%d-%m-%YT%H:%M:%S%Z"
185
+
186
+
187
+ # Used in array.to_sentence.
188
+ support:
189
+ array:
190
+ sentence_connector: " και "
191
+ skip_last_comma: false
@@ -0,0 +1,168 @@
1
+ "es-AR":
2
+ date:
3
+ formats:
4
+ default: "%e/%m/%Y"
5
+ short: "%e %b"
6
+ long: "%e de %B de %Y"
7
+ day_names:
8
+ - domingo
9
+ - lunes
10
+ - martes
11
+ - "miércoles"
12
+ - jueves
13
+ - viernes
14
+ - "sábado"
15
+ abbr_day_names:
16
+ - dom
17
+ - lun
18
+ - mar
19
+ - mie
20
+ - jue
21
+ - vie
22
+ - sab
23
+ month_names:
24
+ -
25
+ - enero
26
+ - febrero
27
+ - marzo
28
+ - abril
29
+ - mayo
30
+ - junio
31
+ - julio
32
+ - agosto
33
+ - septiembre
34
+ - octubre
35
+ - noviembre
36
+ - diciembre
37
+ abbr_month_names:
38
+ -
39
+ - ene
40
+ - feb
41
+ - mar
42
+ - abr
43
+ - may
44
+ - jun
45
+ - jul
46
+ - ago
47
+ - set
48
+ - oct
49
+ - nov
50
+ - dic
51
+ order:
52
+ - :day
53
+ - :month
54
+ - :year
55
+ time:
56
+ formats:
57
+ default: "%A, %e de %B de %Y, %H:%M hs"
58
+ short: "%e/%m, %H:%M hs"
59
+ long: "%A, %e de %B de %Y, %H:%M hs"
60
+ am: am
61
+ pm: pm
62
+ datetime:
63
+ distance_in_words:
64
+ half_a_minute: medio minuto
65
+ less_than_x_seconds:
66
+ zero: menos de 1 segundo
67
+ one: menos de 1 segundo
68
+ other: menos de %{count} segundos
69
+ x_seconds:
70
+ one: 1 second
71
+ other: "%{count} seconds"
72
+ less_than_x_minutes:
73
+ zero: menos de 1 minuto
74
+ one: menos de 1 minuto
75
+ other: menos de %{count} minutos
76
+ x_minutes:
77
+ one: 1 minuto
78
+ other: "%{count} minutos"
79
+ about_x_hours:
80
+ one: aproximadamente 1 hora
81
+ other: aproximadamente %{count} horas
82
+ x_days:
83
+ one: "1 día"
84
+ other: "%{count} días"
85
+ about_x_months:
86
+ one: aproximandamente 1 mes
87
+ other: aproximadamente %{count} mes
88
+ x_months:
89
+ one: 1 month
90
+ other: "%{count} mes"
91
+ about_x_years:
92
+ one: "aproximadamente 1 año"
93
+ other: "aproximadamente %{count} años"
94
+ over_x_years:
95
+ one: "más de 1 año"
96
+ other: "más de %{count} años"
97
+ prompts:
98
+ year: "Año"
99
+ month: "Mes"
100
+ day: "Día"
101
+ hour: "Hora"
102
+ minute: "Minuto"
103
+ second: "Segundos"
104
+
105
+ number:
106
+ percentage:
107
+ format:
108
+ delimiter: "."
109
+ precision:
110
+ format:
111
+ delimiter: "."
112
+ human:
113
+ format:
114
+ delimiter: "."
115
+ precision: "2"
116
+ storage_units:
117
+ format: "%n %u"
118
+ units:
119
+ byte:
120
+ one: "byte"
121
+ other: "bytes"
122
+ kb: "KB"
123
+ mb: "MB"
124
+ gb: "GB"
125
+ tb: "TB"
126
+ format:
127
+ precision: 3
128
+ separator: ","
129
+ delimiter: .
130
+ currency:
131
+ format:
132
+ unit: $
133
+ precision: 2
134
+ format: "%u %n"
135
+ separator: ","
136
+ delimiter: "."
137
+ activerecord:
138
+ errors:
139
+ template:
140
+ header:
141
+ one: "Un error ocurrió al guardar tus datos."
142
+ other: "%{count} errores ocurrieron al guardar tus datos."
143
+ body: "Los siguientes campos presentan problemas:"
144
+ messages:
145
+ inclusion: "no está incluido en la lista"
146
+ exclusion: "no está disponible"
147
+ invalid: "no es válido"
148
+ confirmation: "no coincide con la confirmación"
149
+ accepted: debe ser aceptado
150
+ empty: "no puede estar vacío"
151
+ blank: no puede estar en blanco
152
+ too_long: "es demasiado largo (el máximo es de %{count} caracteres)"
153
+ too_short: "es demasiado corto (el mínimo es de %{count} caracteres)"
154
+ wrong_length: "no posee el largo correcto (debería ser de %{count} caracteres)"
155
+ taken: "no está disponible"
156
+ not_a_number: "no es un número"
157
+ greater_than: debe ser mayor a %{count}
158
+ greater_than_or_equal_to: debe ser mayor o igual a %{count}
159
+ equal_to: debe ser igual a %{count}
160
+ less_than: debe ser menor que %{count}
161
+ less_than_or_equal_to: debe ser menor o igual que %{count}
162
+ odd: debe ser par
163
+ even: debe ser impar
164
+ support:
165
+ array:
166
+ words_connector: ", "
167
+ two_words_connector: " y "
168
+ last_word_connector: " y "
@@ -0,0 +1,146 @@
1
+ # Spanish as spoken in Colombia (es-CO) translations for Rails
2
+ # by Christian A. Rojas G (christianrojas@mac.com)
3
+
4
+ es-CO:
5
+ number:
6
+ percentage:
7
+ format:
8
+ delimiter: ","
9
+ currency:
10
+ format: # Pesos Colombianos
11
+ format: "%u%n"
12
+ unit: "$"
13
+ precision: 2
14
+ delimiter: ","
15
+ separator: "."
16
+ format:
17
+ delimiter: ","
18
+ precision: 2
19
+ separator: "."
20
+ human:
21
+ format:
22
+ delimiter: ","
23
+ precision: 2
24
+ # Rails <= v2.2.2
25
+ # storage_units: [Bytes, KB, MB, GB, TB]
26
+ # Rails >= v2.3
27
+ storage_units:
28
+ format: "%n %u"
29
+ units:
30
+ byte:
31
+ one: "Byte"
32
+ other: "Bytes"
33
+ kb: "KB"
34
+ mb: "MB"
35
+ gb: "GB"
36
+ tb: "TB"
37
+ precision:
38
+ format:
39
+ delimiter: ","
40
+
41
+ date:
42
+ order: [:day, :month, :year]
43
+ abbr_day_names: [Dom, Lun, Mar, Mie, Jue, Vie, Sab]
44
+ abbr_month_names: [~, Ene, Feb, Mar, Abr, May, Jun, Jul, Ago, Sep, Oct, Nov, Dic]
45
+ day_names: [Domingo, Lunes, Martes, Miércoles, Jueves, Viernes, Sábado]
46
+ month_names: [~, Enero, Febrero, Marzo, Abril, Mayo, Junio, Julio, Agosto, Septiembre, Octubre, Noviembre, Diciembre]
47
+ formats:
48
+ short: "%d de %b"
49
+ default: "%d/%m/%Y"
50
+ long: "%A, %d de %B de %Y"
51
+ time:
52
+ formats:
53
+ short: "%d de %b a las %H:%M hrs"
54
+ default: "%a, %d de %b de %Y a las %H:%M:%S %Z"
55
+ long: "%A, %d de %B de %Y a las %I:%M %p"
56
+ am: "am"
57
+ pm: "pm"
58
+
59
+ datetime:
60
+ distance_in_words:
61
+ half_a_minute: "medio minuto"
62
+ less_than_x_seconds:
63
+ one: "menos de 1 segundo"
64
+ other: "menos de %{count} segundos"
65
+ x_seconds:
66
+ one: "1 segundo"
67
+ other: "%{count} segundos"
68
+ less_than_x_minutes:
69
+ one: "menos de 1 minuto"
70
+ other: "menos de %{count} minutos"
71
+ x_minutes:
72
+ one: "1 minuto"
73
+ other: "%{count} minutos"
74
+ about_x_hours:
75
+ one: "cerca de 1 hora"
76
+ other: "cerca de %{count} horas"
77
+ x_days:
78
+ one: "1 día"
79
+ other: "%{count} días"
80
+ about_x_months:
81
+ one: "cerca de 1 mes"
82
+ other: "cerca de %{count} meses"
83
+ x_months:
84
+ one: "1 mes"
85
+ other: "%{count} meses"
86
+ about_x_years:
87
+ other: "cerca de %{count} años"
88
+ one: "cerca de 1 año"
89
+ over_x_years:
90
+ one: "más de 1 año"
91
+ other: "más de %{count} años"
92
+ almost_x_years:
93
+ one: "casi 1 año"
94
+ other: "casi %{count} años"
95
+ prompts:
96
+ year: "Año"
97
+ month: "Mes"
98
+ day: "Día"
99
+ hour: "Hora"
100
+ minute: "Minutos"
101
+ second: "Segundos"
102
+
103
+ # Active Record
104
+
105
+ activerecord:
106
+ errors:
107
+ template:
108
+ header:
109
+ one: "%{model} no pudo guardarse debido a 1 error"
110
+ other: "%{model} no pudo guardarse debido a %{count} errores"
111
+ body: "Revise que los siguientes campos sean válidos:"
112
+ messages:
113
+ record_invalid: "Falla de validación: %{errors}"
114
+ inclusion: "no está incluído en la lista"
115
+ exclusion: "está reservado"
116
+ invalid: "es inválido"
117
+ invalid_date: "es una fecha inválida"
118
+ confirmation: "no coincide con la confirmación"
119
+ accepted: "debe ser aceptado"
120
+ blank: "no puede estar en blanco"
121
+ empty: "no puede estar vacío"
122
+ not_a_number: "no es un número"
123
+ taken: "ya ha sido tomado"
124
+ less_than: "debe ser menor que %{count}"
125
+ less_than_or_equal_to: "debe ser menor o igual que %{count}"
126
+ greater_than: "debe ser mayor que %{count}"
127
+ greater_than_or_equal_to: "debe ser mayor o igual que %{count}"
128
+ too_short: "es demasiado corto (mínimo %{count} caracteres)"
129
+ too_long: "es demasiado largo (máximo %{count} caracteres)"
130
+ equal_to: "debe ser igual a %{count}"
131
+ wrong_length: "longitud errónea (debe ser de %{count} caracteres)"
132
+ even: "debe ser un número par"
133
+ odd: "debe ser un número non"
134
+
135
+ # Used in array.to_sentence.
136
+ support:
137
+ select:
138
+ # default value for :prompt => true in FormOptionsHelper
139
+ prompt: "Por favor seleccione"
140
+ array:
141
+ # Rails <= v.2.2.2
142
+ # sentence_connector: "y"
143
+ # Rails >= v.2.3
144
+ words_connector: ", "
145
+ two_words_connector: " y "
146
+ last_word_connector: " y "