Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

submit form helper should use i18n for text

#3686

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.

Reported by Carlos Antonio da Silva · January 12th, 2010 @ 01:31 AM

State: resolved
Milestone: none
Assigned to: José Valim José Valim
Importance: Low

Activity

  1. José Valim
    José Valim
    • State changed from new to resolved
    • Assigned user set to José Valim

    January 14th, 2010 @ 12:01 AM