i18n_routing 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,7 @@
1
+ 0.3.1 (May 27, 2010)
2
+
3
+ * Add a small Rails3 verification
4
+
1
5
  0.3.0 (May 27, 2010)
2
6
 
3
7
  * Add support for translating path_names, member and collection
@@ -13,6 +13,7 @@ module I18nRouting
13
13
  else
14
14
  # Try to get the translation in routes namescope first
15
15
  t = I18n.t(:as, :scope => "routes.#{name}".to_sym, :default => name.to_s)
16
+
16
17
  return t if t and t != name.to_s
17
18
 
18
19
  I18n.t(name.to_s, :scope => type, :default => name.to_s)
@@ -36,7 +36,7 @@ module I18nRouting
36
36
  localized_path = I18nRouting.translation_for(resource.name, type)
37
37
 
38
38
  # A translated route exists :
39
- if localized_path and localized_path != resource.name.to_s
39
+ if localized_path and localized_path != resource.name.to_s and String === localized_path
40
40
  puts("[I18n] > localize %-10s: %40s (%s) => /%s" % [type, resource.name, locale, localized_path]) if @i18n_verbose
41
41
  opts = options.dup
42
42
  opts[:path] = localized_path.to_sym
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 0
9
- version: 0.3.0
8
+ - 1
9
+ version: 0.3.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Guillaume Luccisano