This project is archived and is in readonly mode.

#3686 ✓resolved
Carlos Antonio da Silva

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

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