This project is archived and is in readonly mode.
Specific translations for labels with values
Reported by Jason Garber | April 27th, 2011 @ 10:24 PM
Suppose I want my radio buttons' labels translated:
= f.radio_button(:customer_access_enabled, true)
= f.label(:customer_access_enabled, :value => true)
= f.radio_button(:customer_access_enabled, false)
= f.label(:customer_access_enabled, :value => false)
Both labels get the same value from
"helpers.label.#{model_name}.#{attribute_name}"
(in my
case, "helpers.label.page.customer_access_enabled"
). I
would like to have specific translations for each value of the same
attribute.
Comments and changes to this ticket
-
Jason Garber April 28th, 2011 @ 04:13 AM
Ported to GH Issues: https://github.com/rails/rails/pull/333
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>