Permalink
Browse files

Quitando el downcase para locales como zh-CN.

  • Loading branch information...
1 parent a85281e commit 69fc7a1f6c4f9b2794a1bfb46357def11e94da83 @eltercero eltercero committed Jun 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rails-translate-routes.rb
View
2 lib/rails-translate-routes.rb
@@ -322,7 +322,7 @@ def translate_path path, locale
path_without_optional_segments = final_optional_segments ? path.gsub(final_optional_segments,'') : path
path_segments = path_without_optional_segments.split("/")
new_path = path_segments.map{ |seg| translate_path_segment(seg, locale) }.join('/')
- new_path = "/#{locale.downcase}#{new_path}" if add_prefix?(locale)
+ new_path = "/#{locale}#{new_path}" if add_prefix?(locale)
new_path = '/' if new_path.blank?
final_optional_segments ? new_path + final_optional_segments : new_path
end

0 comments on commit 69fc7a1

Please sign in to comment.