dregalus
unread,Jan 14, 2011, 7:19:46 AM1/14/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to I18n Routing
Hi all,
i have a problem with the correct translation of some words with
special characters.
Example in my routes.rb:
localized(I18n.available_locales, :verbose => false) do
... match 'land/:id' => 'land#index', :as => :land
... end
In my YML file for Spain the translation for "land" is "país".
named_routes_path:
'land/:id': "país/:id" ... You see the special character "í".
So when i start my rails application and switch the language to
spanish and click on a link like (país/at-austria) that leads me to
this error message:
"No route matches "/pa%C3%ADs/at-austria" " All other routes without a
special character in it, works correctly.
Any suggestions or solutions?
P.S.: I'm using ruby 1.9.2p0 and Rails 3.0.3
Thanks!
Christian