This project is archived and is in readonly mode.
submit form helper should use i18n for text
Reported by Carlos Antonio da Silva | January 12th, 2010 @ 01:31 AM
Sometimes it's useful to have default texts for submit buttons,
specially in admin interfaces.
The attached patch adds the possibility of using i18n to setup
default text for the submit form helper. The submit helper look for
translations based on object status (ie :new_record?), using
:create or :update keys, or the default :submit key when no object
exists. The model human name is always used in translation as
well.
Comments and changes to this ticket
-
José Valim January 14th, 2010 @ 12:01 AM
- State changed from new to resolved
- Assigned user set to José Valim
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>