diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2010-01-11 23:28:47 -0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-14 01:07:03 +0100 |
commit | 8e0208f650eac23ee4b5c748d2de715344c5c629 (patch) | |
tree | 3902178a33edd0ed0915dd107ff1afd773c8e2c3 /actionpack/lib/action_view/locale | |
parent | f921ad5c97048c692859b395bc78245a343bf833 (diff) | |
download | rails-8e0208f650eac23ee4b5c748d2de715344c5c629.tar.gz rails-8e0208f650eac23ee4b5c748d2de715344c5c629.tar.bz2 rails-8e0208f650eac23ee4b5c748d2de715344c5c629.zip |
Add possibility to use i18n translatios in submit FormHelper.
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionpack/lib/action_view/locale')
-rw-r--r-- | actionpack/lib/action_view/locale/en.yml | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/actionpack/lib/action_view/locale/en.yml b/actionpack/lib/action_view/locale/en.yml index 9918034020..a3548051c1 100644 --- a/actionpack/lib/action_view/locale/en.yml +++ b/actionpack/lib/action_view/locale/en.yml @@ -9,7 +9,7 @@ delimiter: "," # Number of decimals, behind the separator (the number 1 with a precision of 2 gives: 1.00) precision: 3 - + # Used in number_to_currency() currency: format: @@ -20,15 +20,15 @@ separator: "." delimiter: "," precision: 2 - + # Used in number_to_percentage() percentage: format: # These three are to override number.format and are optional - # separator: + # separator: delimiter: "" - # precision: - + # precision: + # Used in number_to_precision() precision: format: @@ -36,12 +36,12 @@ # separator: delimiter: "" # precision: - + # Used in number_to_human_size() human: format: # These three are to override number.format and are optional - # separator: + # separator: delimiter: "" precision: 1 storage_units: @@ -112,5 +112,12 @@ helpers: select: - # default value for :prompt => true in FormOptionsHelper + # Default value for :prompt => true in FormOptionsHelper prompt: "Please select" + + # Default translation keys for submit FormHelper + submit: + create: 'Create {{model}}' + update: 'Update {{model}}' + submit: 'Save {{model}}' + |