[open-ils-commits] [GIT] Evergreen ILS branch master updated. 83a95200aedf6b44e793a2e40b68f662d0e38b06

Evergreen Git git at git.evergreen-ils.org
Thu Aug 25 13:58:04 EDT 2016


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  83a95200aedf6b44e793a2e40b68f662d0e38b06 (commit)
      from  8d94c3ac7e0d35b906783e9ce2616102ea41e1f1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 83a95200aedf6b44e793a2e40b68f662d0e38b06
Author: Jason Stephenson <jason at sigio.com>
Date:   Thu Aug 25 11:57:42 2016 -0400

    LP#1613709: Make DOB validation alert failure translatable.
    
    The alert message about an invalid DOB being entered in the OPAC
    patron registration is not translatable.  The solution, suggested by
    Eva Cerninakova, is to wrap the string in the l() template function to
    make it so.  That is what this branch does.
    
    Signed-off-by: Jason Stephenson <jason at sigio.com>
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>

diff --git a/Open-ILS/src/templates/opac/parts/js.tt2 b/Open-ILS/src/templates/opac/parts/js.tt2
index 6135a23..2fc0a4f 100644
--- a/Open-ILS/src/templates/opac/parts/js.tt2
+++ b/Open-ILS/src/templates/opac/parts/js.tt2
@@ -7,7 +7,7 @@
         var validformat = /^(19|20)\d\d([- /.])(0[1-9]|1[012])\2(0[1-9]|[12][0-9]|3[01])$/
         var returnval = false
         if (!validformat.test(input.value))
-            alert("You have entered an invalid date, or an improperly formatted date.  Please enter Date of Birth in YYYY-MM-DD or YYYY/MM/DD format and try again.")
+            alert("[% l('You have entered an invalid date, or an improperly formatted date.  Please enter Date of Birth in YYYY-MM-DD or YYYY/MM/DD format and try again.') %]")
         else
             returnval = true
         if (returnval == false) input.select()

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/src/templates/opac/parts/js.tt2 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list