Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add documentation about translating button texts

  • Loading branch information...
commit 759ea88a93c3c091224ccd706c61e09333ba6ff5 1 parent c6057b4
@vesan vesan authored carlosantoniodasilva committed
Showing with 8 additions and 0 deletions.
  1. +8 −0 README.rdoc
View
8 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:
Please sign in to comment.
Something went wrong with that request. Please try again.