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
- fallback = I18n.translate(str, :locale => locale, :default => str)
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
@@ -1,3 +1,3 @@
1
1
  module RouteTranslator
2
- VERSION = '3.0.2'
2
+ VERSION = '3.1.0'
3
3
  end
@@ -5,7 +5,8 @@ es:
5
5
  tr_param: tr_parametro
6
6
 
7
7
  ru:
8
- people: люди
8
+ routes:
9
+ people: люди
9
10
 
10
11
  en:
11
- m: m
12
+ m: m #Adding this here just to have en in I18n.available_locales
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.2
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 00:00:00.000000000 Z
13
+ date: 2013-05-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: minitest