From 188cd008ae484be42486d656ed72de2d3cce2116 Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Wed, 29 Sep 2010 08:37:06 -0300 Subject: [PATCH] Review docs about translating buttons --- README.rdoc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.rdoc b/README.rdoc index d5601017..99dde908 100644 --- a/README.rdoc +++ b/README.rdoc @@ -306,15 +306,16 @@ SimpleForm will always look for a default attribute translation if no specific i Finally, you can also overwrite any label, hint or placeholder inside your view, just by passing the option manually. This way the I18n lookup will be skipped. -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: +It's also possible to translate buttons, using Rails' built-in I18n support: en: helpers: - user: - create: "Add User" - update: "Save Changes" + submit: + user: + create: "Add %{model}" + update: "Save Changes" + +There are other options that can be configured through I18n API, such as required text and boolean. Be sure to check our locale file or the one copied to your application after you run "rails generate simple_form:install". == Configuration