From 759ea88a93c3c091224ccd706c61e09333ba6ff5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vesa=20V=C3=A4nsk=C3=A4?= Date: Wed, 29 Sep 2010 19:24:04 +0800 Subject: [PATCH] Add documentation about translating button texts --- README.rdoc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.rdoc b/README.rdoc index fe8b4d39..d5601017 100644 --- a/README.rdoc +++ b/README.rdoc @@ -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: