gettext_simple_rails 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/default.po +11 -0
- data/config/poedit_ruby_parser.conf +6 -0
- data/lib/gettext_simple_rails/cache_handler.rb +45 -0
- data/lib/gettext_simple_rails/i18n_injector.rb +22 -3
- data/lib/gettext_simple_rails/model_inspector.rb +1 -5
- data/lib/gettext_simple_rails/setup_helper.rb +50 -0
- data/lib/gettext_simple_rails/version.rb +1 -1
- data/lib/gettext_simple_rails.rb +18 -0
- data/lib/tasks/gettext_simple_rails_tasks.rake +53 -3
- data/spec/active_record_spec.rb +8 -12
- data/spec/cache_handler_spec.rb +26 -0
- data/spec/date_translator_spec.rb +8 -12
- data/spec/dummy/config/locales_gettext/da/LC_MESSAGES/default.mo +0 -0
- data/spec/dummy/config/locales_gettext/da/LC_MESSAGES/default.po +361 -0
- data/spec/dummy/config/locales_gettext/en/LC_MESSAGES/default.po +11 -0
- data/spec/dummy/config/locales_gettext/static_translation_file.json +1 -0
- data/spec/dummy/lib/gettext_simple_rails/models/role_model_translations.rb +21 -0
- data/spec/dummy/lib/gettext_simple_rails/models/user_model_translations.rb +22 -0
- data/spec/dummy/log/test.log +193 -0
- data/spec/gettext_simple_rails_spec.rb +8 -12
- data/spec/poedit_config_with_ruby.conf +116 -0
- data/spec/poedit_config_without_ruby.conf +101 -0
- data/spec/setup_helper_spec.rb +41 -0
- metadata +25 -7
- data/spec/dummy/lib/gettext_simple_rails/active_record_translator_translations.rb +0 -18
- data/spec/dummy/lib/gettext_simple_rails/date_translator_translations.rb +0 -60
- data/spec/dummy/lib/gettext_simple_rails/number_translator_translations.rb +0 -48
@@ -0,0 +1,361 @@
|
|
1
|
+
msgid ""
|
2
|
+
msgstr ""
|
3
|
+
"Project-Id-Version: Dummy\n"
|
4
|
+
"POT-Creation-Date: 2014-05-13 15:41+0100\n"
|
5
|
+
"PO-Revision-Date: \n"
|
6
|
+
"Last-Translator: Kasper Johansen <k@spernj.org>\n"
|
7
|
+
"Language-Team: \n"
|
8
|
+
"Language: da\n"
|
9
|
+
"MIME-Version: 1.0\n"
|
10
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11
|
+
"Content-Transfer-Encoding: 8bit\n"
|
12
|
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop\n"
|
13
|
+
"X-Poedit-Basepath: ../../../../\n"
|
14
|
+
"X-Poedit-SourceCharset: UTF-8\n"
|
15
|
+
"X-Generator: Poedit 1.5.4\n"
|
16
|
+
"X-Poedit-SearchPath-0: .\n"
|
17
|
+
|
18
|
+
#. Default value: %Y-%m-%d
|
19
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:4
|
20
|
+
msgid "date.formats.default"
|
21
|
+
msgstr ""
|
22
|
+
|
23
|
+
#. Default value: %b %d
|
24
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:6
|
25
|
+
msgid "date.formats.short"
|
26
|
+
msgstr ""
|
27
|
+
|
28
|
+
#. Default value: %B %d, %Y
|
29
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:8
|
30
|
+
msgid "date.formats.long"
|
31
|
+
msgstr ""
|
32
|
+
|
33
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:9
|
34
|
+
msgid "date.day_names.0"
|
35
|
+
msgstr ""
|
36
|
+
|
37
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:10
|
38
|
+
msgid "date.day_names.1"
|
39
|
+
msgstr ""
|
40
|
+
|
41
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:11
|
42
|
+
msgid "date.day_names.2"
|
43
|
+
msgstr ""
|
44
|
+
|
45
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:12
|
46
|
+
msgid "date.day_names.3"
|
47
|
+
msgstr ""
|
48
|
+
|
49
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:13
|
50
|
+
msgid "date.day_names.4"
|
51
|
+
msgstr ""
|
52
|
+
|
53
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:14
|
54
|
+
msgid "date.day_names.5"
|
55
|
+
msgstr ""
|
56
|
+
|
57
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:15
|
58
|
+
msgid "date.day_names.6"
|
59
|
+
msgstr ""
|
60
|
+
|
61
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:16
|
62
|
+
msgid "date.abbr_day_names.0"
|
63
|
+
msgstr ""
|
64
|
+
|
65
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:17
|
66
|
+
msgid "date.abbr_day_names.1"
|
67
|
+
msgstr ""
|
68
|
+
|
69
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:18
|
70
|
+
msgid "date.abbr_day_names.2"
|
71
|
+
msgstr ""
|
72
|
+
|
73
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:19
|
74
|
+
msgid "date.abbr_day_names.3"
|
75
|
+
msgstr ""
|
76
|
+
|
77
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:20
|
78
|
+
msgid "date.abbr_day_names.4"
|
79
|
+
msgstr ""
|
80
|
+
|
81
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:21
|
82
|
+
msgid "date.abbr_day_names.5"
|
83
|
+
msgstr ""
|
84
|
+
|
85
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:22
|
86
|
+
msgid "date.abbr_day_names.6"
|
87
|
+
msgstr ""
|
88
|
+
|
89
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:23
|
90
|
+
msgid "date.month_names.0"
|
91
|
+
msgstr ""
|
92
|
+
|
93
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:24
|
94
|
+
msgid "date.month_names.1"
|
95
|
+
msgstr ""
|
96
|
+
|
97
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:25
|
98
|
+
msgid "date.month_names.2"
|
99
|
+
msgstr ""
|
100
|
+
|
101
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:26
|
102
|
+
msgid "date.month_names.3"
|
103
|
+
msgstr ""
|
104
|
+
|
105
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:27
|
106
|
+
msgid "date.month_names.4"
|
107
|
+
msgstr ""
|
108
|
+
|
109
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:28
|
110
|
+
msgid "date.month_names.5"
|
111
|
+
msgstr ""
|
112
|
+
|
113
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:29
|
114
|
+
msgid "date.month_names.6"
|
115
|
+
msgstr ""
|
116
|
+
|
117
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:30
|
118
|
+
msgid "date.month_names.7"
|
119
|
+
msgstr ""
|
120
|
+
|
121
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:31
|
122
|
+
msgid "date.month_names.8"
|
123
|
+
msgstr ""
|
124
|
+
|
125
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:32
|
126
|
+
msgid "date.month_names.9"
|
127
|
+
msgstr ""
|
128
|
+
|
129
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:33
|
130
|
+
msgid "date.month_names.10"
|
131
|
+
msgstr ""
|
132
|
+
|
133
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:34
|
134
|
+
msgid "date.month_names.11"
|
135
|
+
msgstr ""
|
136
|
+
|
137
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:35
|
138
|
+
msgid "date.month_names.12"
|
139
|
+
msgstr ""
|
140
|
+
|
141
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:36
|
142
|
+
msgid "date.abbr_month_names.0"
|
143
|
+
msgstr ""
|
144
|
+
|
145
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:37
|
146
|
+
msgid "date.abbr_month_names.1"
|
147
|
+
msgstr ""
|
148
|
+
|
149
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:38
|
150
|
+
msgid "date.abbr_month_names.2"
|
151
|
+
msgstr ""
|
152
|
+
|
153
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:39
|
154
|
+
msgid "date.abbr_month_names.3"
|
155
|
+
msgstr ""
|
156
|
+
|
157
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:40
|
158
|
+
msgid "date.abbr_month_names.4"
|
159
|
+
msgstr ""
|
160
|
+
|
161
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:41
|
162
|
+
msgid "date.abbr_month_names.5"
|
163
|
+
msgstr ""
|
164
|
+
|
165
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:42
|
166
|
+
msgid "date.abbr_month_names.6"
|
167
|
+
msgstr ""
|
168
|
+
|
169
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:43
|
170
|
+
msgid "date.abbr_month_names.7"
|
171
|
+
msgstr ""
|
172
|
+
|
173
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:44
|
174
|
+
msgid "date.abbr_month_names.8"
|
175
|
+
msgstr ""
|
176
|
+
|
177
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:45
|
178
|
+
msgid "date.abbr_month_names.9"
|
179
|
+
msgstr ""
|
180
|
+
|
181
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:46
|
182
|
+
msgid "date.abbr_month_names.10"
|
183
|
+
msgstr ""
|
184
|
+
|
185
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:47
|
186
|
+
msgid "date.abbr_month_names.11"
|
187
|
+
msgstr ""
|
188
|
+
|
189
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:48
|
190
|
+
msgid "date.abbr_month_names.12"
|
191
|
+
msgstr ""
|
192
|
+
|
193
|
+
#. Default value: %a, %d %b %Y %H:%M:%S %z
|
194
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:50
|
195
|
+
msgid "time.formats.default"
|
196
|
+
msgstr ""
|
197
|
+
|
198
|
+
#. Default value: %d %b %H:%M
|
199
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:52
|
200
|
+
msgid "time.formats.short"
|
201
|
+
msgstr ""
|
202
|
+
|
203
|
+
#. Default value: %B %d, %Y %H:%M
|
204
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:54
|
205
|
+
msgid "time.formats.long"
|
206
|
+
msgstr ""
|
207
|
+
|
208
|
+
#. Default value: am
|
209
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:56
|
210
|
+
msgid "time.am"
|
211
|
+
msgstr ""
|
212
|
+
|
213
|
+
#. Default value: pm
|
214
|
+
#: lib/gettext_simple_rails/date_translator_translations.rb:58
|
215
|
+
msgid "time.pm"
|
216
|
+
msgstr ""
|
217
|
+
|
218
|
+
#. Default value: Invalid record
|
219
|
+
#: lib/gettext_simple_rails/active_record_translator_translations.rb:4
|
220
|
+
msgid "activerecord.errors.messages.record_invalid"
|
221
|
+
msgstr ""
|
222
|
+
|
223
|
+
#. Default value: is too short. The minimum is %{count}
|
224
|
+
#: lib/gettext_simple_rails/active_record_translator_translations.rb:6
|
225
|
+
msgid "activerecord.errors.models.user.attributes.name.too_short"
|
226
|
+
msgstr "er for kort. Minimum er %{count}"
|
227
|
+
|
228
|
+
#. Default value: is too long. The maximum is %{count}
|
229
|
+
#: lib/gettext_simple_rails/active_record_translator_translations.rb:8
|
230
|
+
msgid "activerecord.errors.models.user.attributes.name.too_long"
|
231
|
+
msgstr ""
|
232
|
+
|
233
|
+
#. Default value: has already been taken
|
234
|
+
#: lib/gettext_simple_rails/active_record_translator_translations.rb:10
|
235
|
+
msgid "activerecord.errors.models.user.attributes.name.taken"
|
236
|
+
msgstr ""
|
237
|
+
|
238
|
+
#. Default value: cannot be blank
|
239
|
+
#: lib/gettext_simple_rails/active_record_translator_translations.rb:12
|
240
|
+
msgid "activerecord.errors.models.user.attributes.name.blank"
|
241
|
+
msgstr ""
|
242
|
+
|
243
|
+
#. Default value: is invalid
|
244
|
+
#: lib/gettext_simple_rails/active_record_translator_translations.rb:14
|
245
|
+
msgid "activerecord.errors.models.user.attributes.name.invalid"
|
246
|
+
msgstr ""
|
247
|
+
|
248
|
+
#. Default value: is invalid
|
249
|
+
#: lib/gettext_simple_rails/active_record_translator_translations.rb:16
|
250
|
+
msgid "activerecord.errors.models.user.attributes.email.invalid"
|
251
|
+
msgstr ""
|
252
|
+
|
253
|
+
#. Default value: ,
|
254
|
+
#: lib/gettext_simple_rails/number_translator_translations.rb:4
|
255
|
+
msgid "number.currency.format.delimiter"
|
256
|
+
msgstr ""
|
257
|
+
|
258
|
+
#. Default value: %n %u
|
259
|
+
#: lib/gettext_simple_rails/number_translator_translations.rb:6
|
260
|
+
msgid "number.currency.format.format"
|
261
|
+
msgstr ""
|
262
|
+
|
263
|
+
#. Default value: .
|
264
|
+
#: lib/gettext_simple_rails/number_translator_translations.rb:8
|
265
|
+
msgid "number.currency.format.separator"
|
266
|
+
msgstr ""
|
267
|
+
|
268
|
+
#. Default value: $
|
269
|
+
#: lib/gettext_simple_rails/number_translator_translations.rb:10
|
270
|
+
msgid "number.currency.format.unit"
|
271
|
+
msgstr ""
|
272
|
+
|
273
|
+
#. Default value: ,
|
274
|
+
#: lib/gettext_simple_rails/number_translator_translations.rb:12
|
275
|
+
msgid "number.format.delimiter"
|
276
|
+
msgstr ""
|
277
|
+
|
278
|
+
#. Default value: .
|
279
|
+
#: lib/gettext_simple_rails/number_translator_translations.rb:14
|
280
|
+
msgid "number.format.separator"
|
281
|
+
msgstr ""
|
282
|
+
|
283
|
+
#. Default value: %n %u
|
284
|
+
#: lib/gettext_simple_rails/number_translator_translations.rb:16
|
285
|
+
msgid "number.human.decimal_units.format"
|
286
|
+
msgstr ""
|
287
|
+
|
288
|
+
#. Default value: Billion
|
289
|
+
#: lib/gettext_simple_rails/number_translator_translations.rb:18
|
290
|
+
msgid "number.human.decimal_units.units.billion"
|
291
|
+
msgstr ""
|
292
|
+
|
293
|
+
#. Default value: Million
|
294
|
+
#: lib/gettext_simple_rails/number_translator_translations.rb:20
|
295
|
+
msgid "number.human.decimal_units.units.million"
|
296
|
+
msgstr ""
|
297
|
+
|
298
|
+
#. Default value: Quadrillion
|
299
|
+
#: lib/gettext_simple_rails/number_translator_translations.rb:22
|
300
|
+
msgid "number.human.decimal_units.units.quadrillion"
|
301
|
+
msgstr ""
|
302
|
+
|
303
|
+
#. Default value: Thousand
|
304
|
+
#: lib/gettext_simple_rails/number_translator_translations.rb:24
|
305
|
+
msgid "number.human.decimal_units.units.thousand"
|
306
|
+
msgstr ""
|
307
|
+
|
308
|
+
#. Default value: Trillion
|
309
|
+
#: lib/gettext_simple_rails/number_translator_translations.rb:26
|
310
|
+
msgid "number.human.decimal_units.units.trillion"
|
311
|
+
msgstr ""
|
312
|
+
|
313
|
+
#. Default value:
|
314
|
+
#: lib/gettext_simple_rails/number_translator_translations.rb:28
|
315
|
+
msgid "number.human.decimal_units.units.unit"
|
316
|
+
msgstr ""
|
317
|
+
|
318
|
+
#. Default value:
|
319
|
+
#: lib/gettext_simple_rails/number_translator_translations.rb:30
|
320
|
+
msgid "number.human.format.delimiter"
|
321
|
+
msgstr ""
|
322
|
+
|
323
|
+
#. Default value: %n %u
|
324
|
+
#: lib/gettext_simple_rails/number_translator_translations.rb:32
|
325
|
+
msgid "number.human.storage_units.format"
|
326
|
+
msgstr ""
|
327
|
+
|
328
|
+
#. Default value: Byte
|
329
|
+
#: lib/gettext_simple_rails/number_translator_translations.rb:34
|
330
|
+
msgid "number.human.storage_units.units.byte.one"
|
331
|
+
msgstr ""
|
332
|
+
|
333
|
+
#. Default value: Bytes
|
334
|
+
#: lib/gettext_simple_rails/number_translator_translations.rb:36
|
335
|
+
msgid "number.human.storage_units.units.byte.other"
|
336
|
+
msgstr ""
|
337
|
+
|
338
|
+
#. Default value: GB
|
339
|
+
#: lib/gettext_simple_rails/number_translator_translations.rb:38
|
340
|
+
msgid "number.human.storage_units.units.gb"
|
341
|
+
msgstr ""
|
342
|
+
|
343
|
+
#. Default value: KB
|
344
|
+
#: lib/gettext_simple_rails/number_translator_translations.rb:40
|
345
|
+
msgid "number.human.storage_units.units.kb"
|
346
|
+
msgstr ""
|
347
|
+
|
348
|
+
#. Default value: MB
|
349
|
+
#: lib/gettext_simple_rails/number_translator_translations.rb:42
|
350
|
+
msgid "number.human.storage_units.units.mb"
|
351
|
+
msgstr ""
|
352
|
+
|
353
|
+
#. Default value: TB
|
354
|
+
#: lib/gettext_simple_rails/number_translator_translations.rb:44
|
355
|
+
msgid "number.human.storage_units.units.tb"
|
356
|
+
msgstr ""
|
357
|
+
|
358
|
+
#. Default value:
|
359
|
+
#: lib/gettext_simple_rails/number_translator_translations.rb:46
|
360
|
+
msgid "number.percentage.format.delimiter"
|
361
|
+
msgstr ""
|
@@ -0,0 +1,11 @@
|
|
1
|
+
msgid ""
|
2
|
+
msgstr ""
|
3
|
+
"Project-Id-Version: Dummy\n"
|
4
|
+
"Language: en\n"
|
5
|
+
"MIME-Version: 1.0\n"
|
6
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
7
|
+
"Content-Transfer-Encoding: 8bit\n"
|
8
|
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop\n"
|
9
|
+
"X-Poedit-Basepath: ../../../../\n"
|
10
|
+
"X-Poedit-SourceCharset: UTF-8\n"
|
11
|
+
"X-Poedit-SearchPath-0: .\n"
|
@@ -0,0 +1 @@
|
|
1
|
+
{"en":{"activerecord":{"models":{"role":{},"user":{}},"attributes":{"role":{},"user":{}}},"date":{"day_names":[],"abbr_day_names":[],"month_names":[],"abbr_month_names":[]}},"da":{"activerecord":{"models":{"role":{},"user":{}},"attributes":{"role":{},"user":{}},"errors":{"models":{"user":{"attributes":{"name":{"too_short":"er for kort. Minimum er %{count}"}}}}}},"date":{"day_names":[],"abbr_day_names":[],"month_names":[],"abbr_month_names":[]}}}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
class GettextSimpleRails::UserModelTranslations
|
2
|
+
def self.attribute_translations
|
3
|
+
puts _('models.attributes.role.id')
|
4
|
+
puts _('models.attributes.role.role')
|
5
|
+
puts _('models.attributes.role.user_id')
|
6
|
+
puts _('models.attributes.role.created_at')
|
7
|
+
puts _('models.attributes.role.updated_at')
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.relationship_translations
|
11
|
+
puts _('models.attributes.role.user')
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.paperclip_attachments
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.model_name
|
18
|
+
puts _('models.name.role.one')
|
19
|
+
puts _('models.name.role.other')
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
class GettextSimpleRails::UserModelTranslations
|
2
|
+
def self.attribute_translations
|
3
|
+
puts _('models.attributes.user.id')
|
4
|
+
puts _('models.attributes.user.name')
|
5
|
+
puts _('models.attributes.user.birthday_at')
|
6
|
+
puts _('models.attributes.user.age')
|
7
|
+
puts _('models.attributes.user.created_at')
|
8
|
+
puts _('models.attributes.user.updated_at')
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.relationship_translations
|
12
|
+
puts _('models.attributes.user.roles')
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.paperclip_attachments
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.model_name
|
19
|
+
puts _('models.name.user.one')
|
20
|
+
puts _('models.name.user.other')
|
21
|
+
end
|
22
|
+
end
|
data/spec/dummy/log/test.log
CHANGED
@@ -342,3 +342,196 @@
|
|
342
342
|
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
343
343
|
[1m[35m (0.1ms)[0m begin transaction
|
344
344
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
345
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
346
|
+
[1m[35m (0.1ms)[0m begin transaction
|
347
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
348
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
349
|
+
[1m[35m (0.1ms)[0m begin transaction
|
350
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
351
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
352
|
+
[1m[35m (0.1ms)[0m begin transaction
|
353
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
354
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
355
|
+
[1m[35m (0.1ms)[0m begin transaction
|
356
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
357
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
358
|
+
[1m[35m (0.1ms)[0m begin transaction
|
359
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
360
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
361
|
+
[1m[35m (0.1ms)[0m begin transaction
|
362
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
363
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
364
|
+
[1m[35m (0.1ms)[0m begin transaction
|
365
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
366
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
367
|
+
[1m[35m (0.1ms)[0m begin transaction
|
368
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
369
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
370
|
+
[1m[35m (0.1ms)[0m begin transaction
|
371
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
372
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
373
|
+
[1m[35m (0.1ms)[0m begin transaction
|
374
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
375
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
376
|
+
[1m[35m (0.1ms)[0m begin transaction
|
377
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
378
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
379
|
+
[1m[35m (0.1ms)[0m begin transaction
|
380
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
381
|
+
[1m[35m (0.1ms)[0m begin transaction
|
382
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
383
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
384
|
+
[1m[35m (0.1ms)[0m begin transaction
|
385
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
386
|
+
[1m[35m (0.1ms)[0m begin transaction
|
387
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
388
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
389
|
+
[1m[35m (0.1ms)[0m begin transaction
|
390
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
391
|
+
[1m[35m (0.1ms)[0m begin transaction
|
392
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
393
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
394
|
+
[1m[35m (0.1ms)[0m begin transaction
|
395
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
396
|
+
[1m[35m (0.1ms)[0m begin transaction
|
397
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
398
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
399
|
+
[1m[35m (0.1ms)[0m begin transaction
|
400
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
401
|
+
[1m[35m (0.1ms)[0m begin transaction
|
402
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
403
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
404
|
+
[1m[35m (0.1ms)[0m begin transaction
|
405
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
406
|
+
[1m[35m (0.1ms)[0m begin transaction
|
407
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
408
|
+
[1m[35m (0.1ms)[0m begin transaction
|
409
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
410
|
+
[1m[35m (0.1ms)[0m begin transaction
|
411
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
412
|
+
[1m[35m (0.1ms)[0m begin transaction
|
413
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
414
|
+
[1m[35m (0.1ms)[0m begin transaction
|
415
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
416
|
+
[1m[35m (0.1ms)[0m begin transaction
|
417
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
418
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
419
|
+
[1m[35m (0.1ms)[0m begin transaction
|
420
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
421
|
+
[1m[35m (0.1ms)[0m begin transaction
|
422
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
423
|
+
[1m[35m (0.1ms)[0m begin transaction
|
424
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
425
|
+
[1m[35m (0.1ms)[0m begin transaction
|
426
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
427
|
+
[1m[35m (0.1ms)[0m begin transaction
|
428
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
429
|
+
[1m[35m (0.1ms)[0m begin transaction
|
430
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
431
|
+
[1m[35m (0.1ms)[0m begin transaction
|
432
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
433
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
434
|
+
[1m[35m (0.1ms)[0m begin transaction
|
435
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
436
|
+
[1m[35m (0.1ms)[0m begin transaction
|
437
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
438
|
+
[1m[35m (0.1ms)[0m begin transaction
|
439
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
440
|
+
[1m[35m (0.1ms)[0m begin transaction
|
441
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
442
|
+
[1m[35m (0.1ms)[0m begin transaction
|
443
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
444
|
+
[1m[35m (0.1ms)[0m begin transaction
|
445
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
446
|
+
[1m[35m (0.1ms)[0m begin transaction
|
447
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
448
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
449
|
+
[1m[35m (0.1ms)[0m begin transaction
|
450
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
451
|
+
[1m[35m (0.1ms)[0m begin transaction
|
452
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
453
|
+
[1m[35m (0.0ms)[0m begin transaction
|
454
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
455
|
+
[1m[35m (0.1ms)[0m begin transaction
|
456
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
457
|
+
[1m[35m (0.0ms)[0m begin transaction
|
458
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
459
|
+
[1m[35m (0.1ms)[0m begin transaction
|
460
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
461
|
+
[1m[35m (0.0ms)[0m begin transaction
|
462
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
463
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
464
|
+
[1m[35m (0.1ms)[0m begin transaction
|
465
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
466
|
+
[1m[35m (0.1ms)[0m begin transaction
|
467
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
468
|
+
[1m[35m (0.1ms)[0m begin transaction
|
469
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
470
|
+
[1m[35m (0.1ms)[0m begin transaction
|
471
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
472
|
+
[1m[35m (0.1ms)[0m begin transaction
|
473
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
474
|
+
[1m[35m (0.1ms)[0m begin transaction
|
475
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
476
|
+
[1m[35m (0.1ms)[0m begin transaction
|
477
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
478
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
479
|
+
[1m[35m (0.1ms)[0m begin transaction
|
480
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
481
|
+
[1m[35m (0.0ms)[0m begin transaction
|
482
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
483
|
+
[1m[35m (0.0ms)[0m begin transaction
|
484
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
485
|
+
[1m[35m (0.0ms)[0m begin transaction
|
486
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
487
|
+
[1m[35m (0.2ms)[0m begin transaction
|
488
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
489
|
+
[1m[35m (0.1ms)[0m begin transaction
|
490
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
491
|
+
[1m[35m (0.1ms)[0m begin transaction
|
492
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
493
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
494
|
+
[1m[35m (0.1ms)[0m begin transaction
|
495
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
496
|
+
[1m[35m (0.1ms)[0m begin transaction
|
497
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
498
|
+
[1m[35m (0.1ms)[0m begin transaction
|
499
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
500
|
+
[1m[35m (0.1ms)[0m begin transaction
|
501
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
502
|
+
[1m[35m (0.1ms)[0m begin transaction
|
503
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
504
|
+
[1m[35m (0.1ms)[0m begin transaction
|
505
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
506
|
+
[1m[35m (0.1ms)[0m begin transaction
|
507
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
508
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
509
|
+
[1m[35m (0.1ms)[0m begin transaction
|
510
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
511
|
+
[1m[35m (0.1ms)[0m begin transaction
|
512
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
513
|
+
[1m[35m (0.0ms)[0m begin transaction
|
514
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
515
|
+
[1m[35m (0.1ms)[0m begin transaction
|
516
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
517
|
+
[1m[35m (0.1ms)[0m begin transaction
|
518
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
519
|
+
[1m[35m (0.1ms)[0m begin transaction
|
520
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
521
|
+
[1m[35m (0.1ms)[0m begin transaction
|
522
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
523
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
524
|
+
[1m[35m (0.1ms)[0m begin transaction
|
525
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
526
|
+
[1m[35m (0.0ms)[0m begin transaction
|
527
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
528
|
+
[1m[35m (0.0ms)[0m begin transaction
|
529
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
530
|
+
[1m[35m (0.1ms)[0m begin transaction
|
531
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
532
|
+
[1m[35m (0.1ms)[0m begin transaction
|
533
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
534
|
+
[1m[35m (0.1ms)[0m begin transaction
|
535
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
536
|
+
[1m[35m (0.0ms)[0m begin transaction
|
537
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
@@ -3,18 +3,14 @@ require 'rake'
|
|
3
3
|
|
4
4
|
describe GettextSimpleRails do
|
5
5
|
before do
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
# Generate model translations so we can check them.
|
16
|
-
::Rake::Task["gettext_simple_rails:generate_model_translation_files"].invoke
|
17
|
-
end
|
6
|
+
# Make it possible to call the Rake task.
|
7
|
+
::Dummy::Application.load_tasks
|
8
|
+
|
9
|
+
# Clean up any existing translations.
|
10
|
+
FileUtils.rm_r(GettextSimpleRails.translation_dir) if File.exists?(GettextSimpleRails.translation_dir)
|
11
|
+
|
12
|
+
# Generate model translations so we can check them.
|
13
|
+
::Rake::Task["gettext_simple_rails:generate_model_translation_files"].execute
|
18
14
|
end
|
19
15
|
|
20
16
|
it "generates model translations" do
|