Add documentation about translating button texts

This commit is contained in:
Vesa Vänskä 2010-09-29 19:24:04 +08:00 committed by Carlos Antonio da Silva
parent c6057b4d9c
commit 759ea88a93
1 changed files with 8 additions and 0 deletions

View File

@ -308,6 +308,14 @@ Finally, you can also overwrite any label, hint or placeholder inside your view,
There are other options that can be configured through I18n API, such as required text, boolean and button texts. Be sure to check our locale file or the one copied to your application after you run "rails generate simple_form:install".
For translating buttons, use Rails' built-in I18n support:
en:
helpers:
user:
create: "Add User"
update: "Save Changes"
== Configuration
SimpleForm has several configuration values. You can read and change them in the initializer created by SimpleForm, so if you haven't executed the command below yet, please do: