gettext_simple_rails 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gettext_simple_rails/setup_helper.rb +1 -1
- data/lib/gettext_simple_rails/version.rb +1 -1
- data/lib/tasks/gettext_simple_rails_tasks.rake +1 -1
- data/spec/dummy/config/locales_gettext/static_translation_file.json +1 -1
- data/spec/dummy/lib/gettext_simple_rails/date_translator_translations.rb +3 -0
- data/spec/dummy/log/test.log +17 -0
- metadata +111 -111
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab756d992b407d2f415c33e38f064243ef22ebf4
|
4
|
+
data.tar.gz: 876b859d12837b4422e4e99d5134dde8df6e5155
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 523e17e4c68b2c5157ce22289600f4680219402c1251062e7f3bc41c040679b4a726c621f807c9f82c32ad93523a24620b1d1748b9b1e7fc98b95a5b6d3a40dc
|
7
|
+
data.tar.gz: b4ca945e61dafee29b154f38a704eb0a995bfcd9222889e41ac0bc96b845ffa1b37c778850c516573ba424f0605688646cc68da969d0d6bc473bb09f1db6b320
|
@@ -54,7 +54,7 @@ namespace :gettext_simple_rails do
|
|
54
54
|
end
|
55
55
|
|
56
56
|
task "create_poedit_ruby_parser" do
|
57
|
-
setup_helper = GettextSimpleRails::SetupHelper
|
57
|
+
setup_helper = GettextSimpleRails::SetupHelper.new
|
58
58
|
raise "POEdit config file could not be found in: #{setup_helper.poedit_config_path}" unless File.exists?(setup_helper.poedit_config_path)
|
59
59
|
|
60
60
|
if setup_helper.poedit_config_has_ruby_parser?
|
@@ -1 +1 @@
|
|
1
|
-
{"da":{"activerecord":{"errors":{"models":{"user":{"attributes":{"name":{"too_short":"er for kort. Minimum er %{count}"}}}}}},"date":{"day_names":[],"abbr_day_names":[],"month_names":[],"abbr_month_names":[]}},"en":{"date":{"day_names":[],"abbr_day_names":[],"month_names":[],"abbr_month_names":[]}}}
|
1
|
+
{"da":{"activerecord":{"errors":{"models":{"user":{"attributes":{"name":{"too_short":"er for kort. Minimum er %{count}"}}}}}},"date":{"day_names":[],"abbr_day_names":[],"month_names":[],"abbr_month_names":[],"order":[]}},"en":{"date":{"day_names":[],"abbr_day_names":[],"month_names":[],"abbr_month_names":[],"order":[]}}}
|
@@ -46,6 +46,9 @@ class GettextSimpleRails::MonthNames
|
|
46
46
|
_('date.abbr_month_names.10')
|
47
47
|
_('date.abbr_month_names.11')
|
48
48
|
_('date.abbr_month_names.12')
|
49
|
+
_('date.order.0')
|
50
|
+
_('date.order.1')
|
51
|
+
_('date.order.2')
|
49
52
|
#. Default value: %a, %d %b %Y %H:%M:%S %z
|
50
53
|
_('time.formats.default')
|
51
54
|
#. Default value: %d %b %H:%M
|
data/spec/dummy/log/test.log
CHANGED
@@ -992,3 +992,20 @@ Migrating to CreateUserTranslations (20140515092420)
|
|
992
992
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
993
993
|
[1m[35m (0.0ms)[0m begin transaction
|
994
994
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
995
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
996
|
+
[1m[35m (0.1ms)[0m begin transaction
|
997
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
998
|
+
[1m[35m (0.0ms)[0m begin transaction
|
999
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
1000
|
+
[1m[35m (0.2ms)[0m begin transaction
|
1001
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1002
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1003
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1004
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1005
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1006
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1007
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1008
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1009
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1010
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1011
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gettext_simple_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kasper Johansen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -116,95 +116,95 @@ executables: []
|
|
116
116
|
extensions: []
|
117
117
|
extra_rdoc_files: []
|
118
118
|
files:
|
119
|
-
- app/helpers/gettext_simple_rails/application_helper.rb
|
120
|
-
- app/assets/javascripts/gettext_simple_rails/application.js
|
121
|
-
- app/assets/stylesheets/gettext_simple_rails/application.css
|
122
119
|
- app/controllers/gettext_simple_rails/application_controller.rb
|
123
120
|
- app/views/layouts/gettext_simple_rails/application.html.erb
|
121
|
+
- app/helpers/gettext_simple_rails/application_helper.rb
|
122
|
+
- app/assets/stylesheets/gettext_simple_rails/application.css
|
123
|
+
- app/assets/javascripts/gettext_simple_rails/application.js
|
124
124
|
- config/routes.rb
|
125
|
-
- config/poedit_ruby_parser.conf
|
126
125
|
- config/default.po
|
127
|
-
-
|
126
|
+
- config/poedit_ruby_parser.conf
|
127
|
+
- lib/gettext_simple_rails/model_inspector.rb
|
128
128
|
- lib/gettext_simple_rails/engine.rb
|
129
|
-
- lib/gettext_simple_rails/i18n_injector.rb
|
130
129
|
- lib/gettext_simple_rails/version.rb
|
131
|
-
- lib/gettext_simple_rails/
|
132
|
-
- lib/gettext_simple_rails/
|
130
|
+
- lib/gettext_simple_rails/setup_helper.rb
|
131
|
+
- lib/gettext_simple_rails/cache_handler.rb
|
132
|
+
- lib/gettext_simple_rails/i18n_injector.rb
|
133
133
|
- lib/gettext_simple_rails/translators/simple_form_translator.rb
|
134
|
-
- lib/gettext_simple_rails/translators/
|
134
|
+
- lib/gettext_simple_rails/translators/devise_translator.rb
|
135
|
+
- lib/gettext_simple_rails/translators/active_record_validations_translator.rb
|
135
136
|
- lib/gettext_simple_rails/translators/active_admin_translator.rb
|
136
137
|
- lib/gettext_simple_rails/translators/active_record_attributes_translator.rb
|
137
|
-
- lib/gettext_simple_rails/translators/number_translator.rb
|
138
|
-
- lib/gettext_simple_rails/translators/devise_translator.rb
|
139
138
|
- lib/gettext_simple_rails/translators/date_translator.rb
|
140
|
-
- lib/gettext_simple_rails/
|
139
|
+
- lib/gettext_simple_rails/translators/number_translator.rb
|
140
|
+
- lib/gettext_simple_rails/translators/globalize_translator.rb
|
141
141
|
- lib/gettext_simple_rails.rb
|
142
142
|
- lib/tasks/gettext_simple_rails_tasks.rake
|
143
143
|
- MIT-LICENSE
|
144
144
|
- Rakefile
|
145
|
-
- spec/
|
146
|
-
- spec/
|
147
|
-
- spec/
|
148
|
-
- spec/
|
145
|
+
- spec/dummy/config/environments/test.rb
|
146
|
+
- spec/dummy/config/environments/production.rb
|
147
|
+
- spec/dummy/config/environments/development.rb
|
148
|
+
- spec/dummy/config/environment.rb
|
149
|
+
- spec/dummy/config/secrets.yml
|
150
|
+
- spec/dummy/config/application.rb
|
151
|
+
- spec/dummy/config/database.yml
|
152
|
+
- spec/dummy/config/locales/en.yml
|
153
|
+
- spec/dummy/config/locales/da.yml
|
154
|
+
- spec/dummy/config/routes.rb
|
155
|
+
- spec/dummy/config/locales_gettext/en/LC_MESSAGES/default.po
|
156
|
+
- spec/dummy/config/locales_gettext/static_translation_file.json
|
157
|
+
- spec/dummy/config/locales_gettext/da/LC_MESSAGES/default.mo
|
158
|
+
- spec/dummy/config/locales_gettext/da/LC_MESSAGES/default.po
|
159
|
+
- spec/dummy/config/initializers/session_store.rb
|
160
|
+
- spec/dummy/config/initializers/inflections.rb
|
161
|
+
- spec/dummy/config/initializers/mime_types.rb
|
162
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
163
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
164
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
165
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
166
|
+
- spec/dummy/config/boot.rb
|
167
|
+
- spec/dummy/bin/rake
|
149
168
|
- spec/dummy/bin/rails
|
150
169
|
- spec/dummy/bin/bundle
|
151
|
-
- spec/dummy/
|
152
|
-
- spec/dummy/config.ru
|
153
|
-
- spec/dummy/README.rdoc
|
154
|
-
- spec/dummy/Rakefile
|
155
|
-
- spec/dummy/lib/gettext_simple_rails/date_translator_translations.rb
|
156
|
-
- spec/dummy/lib/gettext_simple_rails/active_record_validations_translator_translations.rb
|
157
|
-
- spec/dummy/lib/gettext_simple_rails/number_translator_translations.rb
|
158
|
-
- spec/dummy/lib/gettext_simple_rails/globalize_translator_translations.rb
|
159
|
-
- spec/dummy/lib/gettext_simple_rails/active_record_attributes_translator_translations.rb
|
160
|
-
- spec/dummy/test/models/user_test.rb
|
161
|
-
- spec/dummy/test/models/role_test.rb
|
170
|
+
- spec/dummy/log/test.log
|
162
171
|
- spec/dummy/test/fixtures/users.yml
|
163
172
|
- spec/dummy/test/fixtures/roles.yml
|
164
|
-
- spec/dummy/
|
165
|
-
- spec/dummy/
|
173
|
+
- spec/dummy/test/models/role_test.rb
|
174
|
+
- spec/dummy/test/models/user_test.rb
|
166
175
|
- spec/dummy/public/422.html
|
176
|
+
- spec/dummy/public/500.html
|
177
|
+
- spec/dummy/public/404.html
|
167
178
|
- spec/dummy/public/favicon.ico
|
168
|
-
- spec/dummy/log/test.log
|
169
179
|
- spec/dummy/db/schema.rb
|
180
|
+
- spec/dummy/db/test.sqlite3
|
181
|
+
- spec/dummy/db/migrate/20140411112622_create_roles.rb
|
170
182
|
- spec/dummy/db/migrate/20140410170418_create_users.rb
|
171
183
|
- spec/dummy/db/migrate/20140515092420_create_user_translations.rb
|
172
|
-
- spec/dummy/
|
173
|
-
- spec/dummy/
|
174
|
-
- spec/dummy/
|
175
|
-
- spec/dummy/
|
176
|
-
- spec/dummy/
|
177
|
-
- spec/dummy/
|
178
|
-
- spec/dummy/
|
184
|
+
- spec/dummy/lib/gettext_simple_rails/date_translator_translations.rb
|
185
|
+
- spec/dummy/lib/gettext_simple_rails/number_translator_translations.rb
|
186
|
+
- spec/dummy/lib/gettext_simple_rails/active_record_validations_translator_translations.rb
|
187
|
+
- spec/dummy/lib/gettext_simple_rails/globalize_translator_translations.rb
|
188
|
+
- spec/dummy/lib/gettext_simple_rails/active_record_attributes_translator_translations.rb
|
189
|
+
- spec/dummy/Rakefile
|
190
|
+
- spec/dummy/config.ru
|
179
191
|
- spec/dummy/app/controllers/application_controller.rb
|
180
192
|
- spec/dummy/app/views/layouts/application.html.erb
|
181
|
-
- spec/dummy/
|
182
|
-
- spec/dummy/
|
183
|
-
- spec/dummy/
|
184
|
-
- spec/dummy/
|
185
|
-
- spec/dummy/
|
186
|
-
- spec/dummy/
|
187
|
-
- spec/dummy/config/initializers/backtrace_silencers.rb
|
188
|
-
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
189
|
-
- spec/dummy/config/initializers/mime_types.rb
|
190
|
-
- spec/dummy/config/initializers/cookies_serializer.rb
|
191
|
-
- spec/dummy/config/initializers/session_store.rb
|
192
|
-
- spec/dummy/config/initializers/inflections.rb
|
193
|
-
- spec/dummy/config/database.yml
|
194
|
-
- spec/dummy/config/environment.rb
|
195
|
-
- spec/dummy/config/locales_gettext/da/LC_MESSAGES/default.po
|
196
|
-
- spec/dummy/config/locales_gettext/da/LC_MESSAGES/default.mo
|
197
|
-
- spec/dummy/config/locales_gettext/en/LC_MESSAGES/default.po
|
198
|
-
- spec/dummy/config/locales_gettext/static_translation_file.json
|
199
|
-
- spec/dummy/config/boot.rb
|
200
|
-
- spec/dummy/config/environments/development.rb
|
201
|
-
- spec/dummy/config/environments/test.rb
|
202
|
-
- spec/dummy/config/environments/production.rb
|
193
|
+
- spec/dummy/app/helpers/application_helper.rb
|
194
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
195
|
+
- spec/dummy/app/assets/javascripts/application.js
|
196
|
+
- spec/dummy/app/models/role.rb
|
197
|
+
- spec/dummy/app/models/user.rb
|
198
|
+
- spec/dummy/README.rdoc
|
203
199
|
- spec/setup_helper_spec.rb
|
200
|
+
- spec/poedit_config_without_ruby.conf
|
201
|
+
- spec/globalize_translator_spec.rb
|
202
|
+
- spec/poedit_config_with_ruby.conf
|
203
|
+
- spec/cache_handler_spec.rb
|
204
204
|
- spec/gettext_simple_rails_spec.rb
|
205
205
|
- spec/spec_helper.rb
|
206
|
-
- spec/active_record_validations_spec.rb
|
207
206
|
- spec/date_translator_spec.rb
|
207
|
+
- spec/active_record_validations_spec.rb
|
208
208
|
homepage: http://www.github.com/kaspernj/gettext_simple_rails
|
209
209
|
licenses:
|
210
210
|
- MIT
|
@@ -225,71 +225,71 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
225
225
|
version: '0'
|
226
226
|
requirements: []
|
227
227
|
rubyforge_project:
|
228
|
-
rubygems_version: 2.0.
|
228
|
+
rubygems_version: 2.0.14
|
229
229
|
signing_key:
|
230
230
|
specification_version: 4
|
231
231
|
summary: Helpers for translating a Rails app with Gettext and POEdit.
|
232
232
|
test_files:
|
233
|
-
- spec/
|
234
|
-
- spec/
|
235
|
-
- spec/
|
236
|
-
- spec/
|
233
|
+
- spec/dummy/config/environments/test.rb
|
234
|
+
- spec/dummy/config/environments/production.rb
|
235
|
+
- spec/dummy/config/environments/development.rb
|
236
|
+
- spec/dummy/config/environment.rb
|
237
|
+
- spec/dummy/config/secrets.yml
|
238
|
+
- spec/dummy/config/application.rb
|
239
|
+
- spec/dummy/config/database.yml
|
240
|
+
- spec/dummy/config/locales/en.yml
|
241
|
+
- spec/dummy/config/locales/da.yml
|
242
|
+
- spec/dummy/config/routes.rb
|
243
|
+
- spec/dummy/config/locales_gettext/en/LC_MESSAGES/default.po
|
244
|
+
- spec/dummy/config/locales_gettext/static_translation_file.json
|
245
|
+
- spec/dummy/config/locales_gettext/da/LC_MESSAGES/default.mo
|
246
|
+
- spec/dummy/config/locales_gettext/da/LC_MESSAGES/default.po
|
247
|
+
- spec/dummy/config/initializers/session_store.rb
|
248
|
+
- spec/dummy/config/initializers/inflections.rb
|
249
|
+
- spec/dummy/config/initializers/mime_types.rb
|
250
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
251
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
252
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
253
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
254
|
+
- spec/dummy/config/boot.rb
|
255
|
+
- spec/dummy/bin/rake
|
237
256
|
- spec/dummy/bin/rails
|
238
257
|
- spec/dummy/bin/bundle
|
239
|
-
- spec/dummy/
|
240
|
-
- spec/dummy/config.ru
|
241
|
-
- spec/dummy/README.rdoc
|
242
|
-
- spec/dummy/Rakefile
|
243
|
-
- spec/dummy/lib/gettext_simple_rails/date_translator_translations.rb
|
244
|
-
- spec/dummy/lib/gettext_simple_rails/active_record_validations_translator_translations.rb
|
245
|
-
- spec/dummy/lib/gettext_simple_rails/number_translator_translations.rb
|
246
|
-
- spec/dummy/lib/gettext_simple_rails/globalize_translator_translations.rb
|
247
|
-
- spec/dummy/lib/gettext_simple_rails/active_record_attributes_translator_translations.rb
|
248
|
-
- spec/dummy/test/models/user_test.rb
|
249
|
-
- spec/dummy/test/models/role_test.rb
|
258
|
+
- spec/dummy/log/test.log
|
250
259
|
- spec/dummy/test/fixtures/users.yml
|
251
260
|
- spec/dummy/test/fixtures/roles.yml
|
252
|
-
- spec/dummy/
|
253
|
-
- spec/dummy/
|
261
|
+
- spec/dummy/test/models/role_test.rb
|
262
|
+
- spec/dummy/test/models/user_test.rb
|
254
263
|
- spec/dummy/public/422.html
|
264
|
+
- spec/dummy/public/500.html
|
265
|
+
- spec/dummy/public/404.html
|
255
266
|
- spec/dummy/public/favicon.ico
|
256
|
-
- spec/dummy/log/test.log
|
257
267
|
- spec/dummy/db/schema.rb
|
268
|
+
- spec/dummy/db/test.sqlite3
|
269
|
+
- spec/dummy/db/migrate/20140411112622_create_roles.rb
|
258
270
|
- spec/dummy/db/migrate/20140410170418_create_users.rb
|
259
271
|
- spec/dummy/db/migrate/20140515092420_create_user_translations.rb
|
260
|
-
- spec/dummy/
|
261
|
-
- spec/dummy/
|
262
|
-
- spec/dummy/
|
263
|
-
- spec/dummy/
|
264
|
-
- spec/dummy/
|
265
|
-
- spec/dummy/
|
266
|
-
- spec/dummy/
|
272
|
+
- spec/dummy/lib/gettext_simple_rails/date_translator_translations.rb
|
273
|
+
- spec/dummy/lib/gettext_simple_rails/number_translator_translations.rb
|
274
|
+
- spec/dummy/lib/gettext_simple_rails/active_record_validations_translator_translations.rb
|
275
|
+
- spec/dummy/lib/gettext_simple_rails/globalize_translator_translations.rb
|
276
|
+
- spec/dummy/lib/gettext_simple_rails/active_record_attributes_translator_translations.rb
|
277
|
+
- spec/dummy/Rakefile
|
278
|
+
- spec/dummy/config.ru
|
267
279
|
- spec/dummy/app/controllers/application_controller.rb
|
268
280
|
- spec/dummy/app/views/layouts/application.html.erb
|
269
|
-
- spec/dummy/
|
270
|
-
- spec/dummy/
|
271
|
-
- spec/dummy/
|
272
|
-
- spec/dummy/
|
273
|
-
- spec/dummy/
|
274
|
-
- spec/dummy/
|
275
|
-
- spec/dummy/config/initializers/backtrace_silencers.rb
|
276
|
-
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
277
|
-
- spec/dummy/config/initializers/mime_types.rb
|
278
|
-
- spec/dummy/config/initializers/cookies_serializer.rb
|
279
|
-
- spec/dummy/config/initializers/session_store.rb
|
280
|
-
- spec/dummy/config/initializers/inflections.rb
|
281
|
-
- spec/dummy/config/database.yml
|
282
|
-
- spec/dummy/config/environment.rb
|
283
|
-
- spec/dummy/config/locales_gettext/da/LC_MESSAGES/default.po
|
284
|
-
- spec/dummy/config/locales_gettext/da/LC_MESSAGES/default.mo
|
285
|
-
- spec/dummy/config/locales_gettext/en/LC_MESSAGES/default.po
|
286
|
-
- spec/dummy/config/locales_gettext/static_translation_file.json
|
287
|
-
- spec/dummy/config/boot.rb
|
288
|
-
- spec/dummy/config/environments/development.rb
|
289
|
-
- spec/dummy/config/environments/test.rb
|
290
|
-
- spec/dummy/config/environments/production.rb
|
281
|
+
- spec/dummy/app/helpers/application_helper.rb
|
282
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
283
|
+
- spec/dummy/app/assets/javascripts/application.js
|
284
|
+
- spec/dummy/app/models/role.rb
|
285
|
+
- spec/dummy/app/models/user.rb
|
286
|
+
- spec/dummy/README.rdoc
|
291
287
|
- spec/setup_helper_spec.rb
|
288
|
+
- spec/poedit_config_without_ruby.conf
|
289
|
+
- spec/globalize_translator_spec.rb
|
290
|
+
- spec/poedit_config_with_ruby.conf
|
291
|
+
- spec/cache_handler_spec.rb
|
292
292
|
- spec/gettext_simple_rails_spec.rb
|
293
293
|
- spec/spec_helper.rb
|
294
|
-
- spec/active_record_validations_spec.rb
|
295
294
|
- spec/date_translator_spec.rb
|
295
|
+
- spec/active_record_validations_spec.rb
|