some resources are not translated

9 views
Skip to first unread message

mc_plectrum

unread,
Nov 10, 2010, 6:53:45 AM11/10/10
to I18n Routing
I tried to translate map.resources :password_resets, :only =>
[:new, :edit, :create, :update]
resources:
....
password_resets: 'kennwort-vergessen'




how do i translate routes like:
map.resources :users, :collection => { :deactivate_branch => :get,
:deactivate_mails => :get,
:delete_customer => :get,
:short_profile=> :get,
:allow_branch => :get,
:deny_branch => :get,
:love_branch => :get,
:unlove_branch => :get,
:distribution_check
=> :post}

All other translations worked fine! Thanks for sharing this gem!

Guillaume Luccisano

unread,
Nov 16, 2010, 10:36:28 PM11/16/10
to i18n-r...@googlegroups.com
Hi,

Very sorry for the late answer !
You need to use the path names translations, like this :

fr:
  routes:
    users:
      as: utilisateurs
      path_names:
        level: 'niveau'
        groups: 'groupe'
        new: 'nouvel_utilisateur'
        edit: 'edition_utilisateur'
        one: 'un'
        two: 'deux'


2010/11/10 mc_plectrum <torbe...@hotmail.com>
Reply all
Reply to author
Forward
0 new messages