Bug 13656: "Change"/"Set to patron" button for linking a member to an organisation...
authorJosef Moravec <josef.moravec@gmail.com>
Fri, 15 May 2015 09:03:21 +0000 (11:03 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 5 Jun 2015 15:53:09 +0000 (12:53 -0300)
Test plan:
1. install and activate an additional language
2. create patron in organization category
3. create professional patron
4. try to add this patron to an organization (Guarantor information section)
5. note that the left button text changed to "Change" - untranslated english string
6. push the "Delete" button, the guarantor patron field is cleared and the left button text changed to "Set to patron" - again original english text
7. apply the patch
7.1. update translation (koha-translate -u language_code)
8. repeat 4-6, note, that button text are still translated in all sitations
9. sign off ;)

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Work as described, no errors
Fixed message capitalization

Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt

index 330058f..82025f6 100644 (file)
@@ -14,7 +14,7 @@
             $("#contactname, #contactfirstname")
                 .each(function () { this.type = 'text' })
                 .parent().find('span').remove();
-            $("#guarantorsearch").val("Set to Patron");
+            $("#guarantorsearch").val(_("Set to patron"));
         });
         $("#select_city").change(function(){
             var myRegEx=new RegExp(/(.*)\|(.*)\|(.*)\|(.*)/);
         form.country.value = borrower.country;
         form.branchcode.value = borrower.branchcode;
 
-        form.guarantorsearch.value = 'Change';
+        form.guarantorsearch.value = _("Change");
 
         return 0;
     }