route_translator 3.0.2 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -77,8 +77,7 @@ module RouteTranslator
|
|
77
77
|
end
|
78
78
|
|
79
79
|
def self.translate_string(str, locale)
|
80
|
-
|
81
|
-
res = I18n.translate("routes.#{str}", :locale => locale, :default => fallback)
|
80
|
+
res = I18n.translate(str, :scope => :routes, :locale => locale, :default => str)
|
82
81
|
URI.escape(res)
|
83
82
|
end
|
84
83
|
end
|
data/test/locales/routes.yml
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: route_translator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0
|
4
|
+
version: 3.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-05-
|
13
|
+
date: 2013-05-25 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: minitest
|