tml-rails 5.1.1 → 5.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/i18n/backend/tml.rb +1 -4
- data/lib/tml_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: a537d22885f54958a20638d66b8356792d7e6e05
|
4
|
+
data.tar.gz: df0675cdbf1573d18b02732bf2df544b9e9d953a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03ab8362f41ec90f7e5d252a4e5a9184cfbafc707ab86c1b3571780ca823d7d52213f2f924b60eefba2abdb3cc2a687f44f2c452905b631e6fd6bc312e1237eb
|
7
|
+
data.tar.gz: de38a043dfa40efb0776be48113996df20c295ec383b2cf0953b9ae794a47600cd4130f171f5e798cb6cf43828ae5b5eac72d5b3922862a80fd0811e7217af13
|
data/lib/i18n/backend/tml.rb
CHANGED
@@ -63,11 +63,8 @@ module I18n
|
|
63
63
|
default_key = super(application.default_locale, key, scope, options)
|
64
64
|
return default_key if key.to_s.match(/^(support|i18n)/)
|
65
65
|
|
66
|
-
|
67
|
-
default_key = key.to_s.gsub('_', ' ').capitalize
|
68
|
-
end
|
66
|
+
default_key ||= key.to_s.split('.').last.gsub('_', ' ').capitalize
|
69
67
|
|
70
|
-
default_key ||= key
|
71
68
|
if default_key.is_a?(String)
|
72
69
|
translated_key = application.language(locale.to_s).translate(convert_to_tml(default_key), options, options)
|
73
70
|
elsif default_key.is_a?(Hash)
|
data/lib/tml_rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tml-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.1.
|
4
|
+
version: 5.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Berkovich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|