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, ""). 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=""></a>

People watching this ticket