diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-10-05 16:31:46 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-10-05 16:31:46 +0200 |
commit | 9e31f8f1600c6577f46a855eee6a3c7d527aebea (patch) | |
tree | e1c0d480e4266e6e59d0d619c14bf27bcb936251 /user_guide_src/source/libraries | |
parent | 6998492ec75c6fca95fd3656284d949a01a4420f (diff) |
Fix #1745
Diffstat (limited to 'user_guide_src/source/libraries')
-rw-r--r-- | user_guide_src/source/libraries/form_validation.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/user_guide_src/source/libraries/form_validation.rst b/user_guide_src/source/libraries/form_validation.rst index 29e1be032..bc922e69b 100644 --- a/user_guide_src/source/libraries/form_validation.rst +++ b/user_guide_src/source/libraries/form_validation.rst @@ -489,11 +489,13 @@ the name of the function:: $this->form_validation->set_message('username_check') If you are using an error message that can accept two $s in your error string, -such as .. +such as: +:: $this->form_validation->set_message('min_length', 'The $s field must contain at least $s characters.'); Then you can also use %1$s and %2$s: +:: $this->form_validation->set_message('min_length', 'This field must contain at least %2$s characters.'); |