kwi / i18n_routing

I18n routing module for Rails 2.3.x and Rails 3. Translate your routes with ease !
MIT License
228 stars 48 forks source link

match to translate #36

Open kjakub opened 12 years ago

kjakub commented 12 years ago
mainly i would use i18n_routing gem i will be happy if i will translate match 'vlk' under dashboard resource, trying everything around, and no success. Resources are translated successfully also new action...whats wrong?

routes.rb

MyApp::Application.routes.draw do root :to => 'home#index'

localized do resources :cars resource :admin, :controller => :admin resource :dashboard do member do match 'vlk', :as => :vlk end end end end

routes.yml

cs: cars: 'auta' admin: 'admincesky' routes: dashboard: as: 'novy' path_names: new: 'cesky_member' vlk: 'tzz_cesky' named_routes_path: vlk: 'tzz_cesky' caa