This project is archived and is in readonly mode.

#6753 new
Jason Garber

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

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>

People watching this ticket

Attachments

Pages