You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a route that looks like this:
match ":city_id/:venue_id/reviews(.:format)" => "reviews#index", :as => :city_venue_reviews
In my translation file (nl.yml), i've got this (short version):
nl:
named_routes_path:
":city_id/:venue_id/reviews(.:format)" : ":city_id/:venue_id/recensies(.:format)"
Output of rake routes:
city_venue_reviews /:city_id/:venue_id/reviews(.:format) {:controller=>"reviews", :action=>"index"}
Others paths translate just fine. Examples that work:
":city_id/:venue_id/reserve" : ":city_id/:venue_id/online-reserveren"
":city_id/:venue_id/order" : ":city_id/:venue_id/online-bestellen"
The text was updated successfully, but these errors were encountered:
It's probably the "." that kills it, this works:
named_routes_path:
":city_id/:venue_id/reviews(":
":format)" : ":city_id/:venue_id/recensies(.:format)"
Yes it's strange, but the i18n gem works this way, it uses the '.' to split namespaces or scopes. So maybe I have to escape this '.', I will have a look at what I can do !
Hi,
I have a route that looks like this:
match ":city_id/:venue_id/reviews(.:format)" => "reviews#index", :as => :city_venue_reviews
In my translation file (nl.yml), i've got this (short version):
nl:
named_routes_path:
":city_id/:venue_id/reviews(.:format)" : ":city_id/:venue_id/recensies(.:format)"
Output of
rake routes
:city_venue_reviews /:city_id/:venue_id/reviews(.:format) {:controller=>"reviews", :action=>"index"}
Others paths translate just fine. Examples that work:
":city_id/:venue_id/reserve" : ":city_id/:venue_id/online-reserveren"
":city_id/:venue_id/order" : ":city_id/:venue_id/online-bestellen"
The text was updated successfully, but these errors were encountered: