On Jul 7, 2014, at 9:15 AM, Ronald F. wrote:
“judgement” => “accept”
to the application. This is exactly what I want, but I want to be able
to change the text which is visible on the button (for example, when
displaying the page in a different language).
Can this be done?
Probably, through the i18n framework, but if you do that, you’ll have to
pass any recognition of the button value (in your controller) through
the same framework. That’s because the value will be changed, so
judgement: [accept in another language] rather than accept.
behavior was to translate the language back when the button was clicked
and before the form was sent to the server. Maybe something like this
(leaving out the Rails generators at the moment):
That should allow you to have the internationalized cake and eat it too.