Heya, I've just committed a change that has been proposed to me a while ago: http://github.com/svenfuchs/i18n/commit/43304331eb... Based on https://gist.github.com/31e5aa46c8d5544df994 (Ummm, I should probably keep the author credits) The test suite passes, but I though I should double check with everybody on the list. Any objections? Am I missing something or is this a no-brainer? Background: translation = I18n.t("this.is.the.key") # => "translated " translation << " found" translation = I18n.t("this.is.the.key") # => "translated found" Thanks!
on 2010-04-05 19:13
on 2010-04-05 19:23
Ok, amended the commit so that I keep the author credits: http://github.com/svenfuchs/i18n/commit/0ca77036fc...
on 2010-04-05 23:14
Is there anything in rails routes that allow to alias rails action
resource names, such as the doc suggested, e.g.:
...
config.action_controller.resources_path_names = {:new => 'neu', :edit
=> 'bearbeiten', :complete => 'fertig'}
...
BTW, the above only works for :new action, not for
any :members, :collections, etc. !
The custom resource name plugin used to work real well getting around
that issue, in http://github.com/carlosbrando/custom_resource_name,
however, no longer supports >2.3.4
map.aliases :actions, :edit => 'bearbeiten'
Does anyone have a solution for that?
Greetings,
Juergen
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.