gettext_i18n_rails 1.4.0 → 1.5.0
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.
- checksums.yaml +4 -4
- data/lib/gettext_i18n_rails/railtie.rb +1 -0
- data/lib/gettext_i18n_rails/tasks.rb +6 -0
- data/lib/gettext_i18n_rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 84affd5e454cb6e7b0dc55184f26ccafc016dd64
|
|
4
|
+
data.tar.gz: b5f565c623ec38d108d7a16ee8ae8c3383f4e0fe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 251fc5351e6831fed6f8d972ed4eb197a477d2bffb17a8d103011205be6ef2163d75c15a7e4d9ad70e2cee64f0845c774947f39dd662f8a6b0a392574ac5435b
|
|
7
|
+
data.tar.gz: 4c0bb372387fbdafd896049c0be934115ff6cca68abf9db834e5a8e75bf6fdfb3ade3685ade03d50544c0d748236efbf9c17ad36bd73cea458be302ea738765f
|
|
@@ -2,6 +2,7 @@ module GettextI18nRails
|
|
|
2
2
|
class Railtie < ::Rails::Railtie
|
|
3
3
|
config.gettext_i18n_rails = ActiveSupport::OrderedOptions.new
|
|
4
4
|
config.gettext_i18n_rails.msgmerge = nil
|
|
5
|
+
config.gettext_i18n_rails.msgcat = nil
|
|
5
6
|
config.gettext_i18n_rails.xgettext = nil
|
|
6
7
|
config.gettext_i18n_rails.use_for_active_record_attributes = true
|
|
7
8
|
|
|
@@ -27,6 +27,11 @@ namespace :gettext do
|
|
|
27
27
|
config || gettext_default_options
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
+
def gettext_msgcat_options
|
|
31
|
+
config = (Rails.application.config.gettext_i18n_rails.msgcat if defined?(Rails.application))
|
|
32
|
+
config || gettext_default_options
|
|
33
|
+
end
|
|
34
|
+
|
|
30
35
|
def gettext_xgettext_options
|
|
31
36
|
config = (Rails.application.config.gettext_i18n_rails.xgettext if defined?(Rails.application))
|
|
32
37
|
config || gettext_default_options
|
|
@@ -45,6 +50,7 @@ namespace :gettext do
|
|
|
45
50
|
task.files = files_to_translate
|
|
46
51
|
task.enable_description = false
|
|
47
52
|
task.msgmerge_options = gettext_msgmerge_options
|
|
53
|
+
task.msgcat_options = gettext_msgcat_options
|
|
48
54
|
task.xgettext_options = gettext_xgettext_options
|
|
49
55
|
end
|
|
50
56
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gettext_i18n_rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Grosser
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-02-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: fast_gettext
|