koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/acqui.simple add


From: Ambrose C. LI
Subject: [Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/acqui.simple addbiblio.tmpl,1.25,1.26 additem.tmpl,1.15,1.16
Date: Tue, 09 Mar 2004 23:38:07 -0800

Update of /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/acqui.simple
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24207/acqui.simple

Modified Files:
        addbiblio.tmpl additem.tmpl 
Log Message:
JavaScript changes to make tmpl_process3 recognize translatable strings.
Note: This may break things!


Index: addbiblio.tmpl
===================================================================
RCS file: 
/cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/acqui.simple/addbiblio.tmpl,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -r1.25 -r1.26
*** addbiblio.tmpl      11 Feb 2004 09:03:47 -0000      1.25
--- addbiblio.tmpl      10 Mar 2004 07:38:05 -0000      1.26
***************
*** 440,443 ****
--- 440,444 ----
  
  <script LANGUAGE="JavaScript">
+ function _(s) { return s } // dummy function for gettext
  function active(numlayer)
  {
***************
*** 501,508 ****
        var alertString2;
        if (total_errors!=0) {
!               alertString2 = "Form not submitted because of the following 
problem(s)\n";
!               alertString2 += 
"------------------------------------------------------------------------------------\n\n";
!               alertString2 += "- "+ total_missing_mandatory_tags +" mandatory 
tags empty\n";
!               alertString2 += "- "+ total_missing_mandatory_subfields +" 
mandatory fields empty (see bold subfields)";
                alert(alertString2);
        } else {
--- 502,509 ----
        var alertString2;
        if (total_errors!=0) {
!               alertString2  = _("Form not submitted because of the following 
problem(s)");
!               alertString2 += 
"\n------------------------------------------------------------------------------------\n";
!               alertString2 += "\n- "+ total_missing_mandatory_tags +_(" 
mandatory tags empty");
!               alertString2 += "\n- "+ total_missing_mandatory_subfields +_(" 
mandatory fields empty (see bold subfields)");
                alert(alertString2);
        } else {

Index: additem.tmpl
===================================================================
RCS file: 
/cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/acqui.simple/additem.tmpl,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** additem.tmpl        11 Feb 2004 09:03:47 -0000      1.15
--- additem.tmpl        10 Mar 2004 07:38:05 -0000      1.16
***************
*** 81,84 ****
--- 81,85 ----
  </form>
  <script LANGUAGE="JavaScript">
+ function _(s) { return s } // dummy function for gettext
  function active(numlayer)
  {
***************
*** 113,119 ****
                document.f.submit();
        } else {
!               alertString2 = "Form not submitted because of the following 
problem(s)\n";
!               alertString2 += 
"------------------------------------------------------------------------------------\n\n";
!               alertString2 += "- "+ total_errors+" mandatory fields empty 
(see bold subfields)";
                alert(alertString2);
        }
--- 114,120 ----
                document.f.submit();
        } else {
!               alertString2  = _("Form not submitted because of the following 
problem(s)");
!               alertString2 += 
"\n------------------------------------------------------------------------------------\n";
!               alertString2 += "\n- "+ total_errors+_(" mandatory fields empty 
(see bold subfields)");
                alert(alertString2);
        }
***************
*** 124,128 ****
  }
  function confirm_deletion(bibid,itemnum) {
!       var is_confirmed = confirm('Do you confirm item deletion ?');
        if (is_confirmed) {
        window.location = 
"additem.pl?op=delitem&bibid="+bibid+"&itemnum="+itemnum;
--- 125,129 ----
  }
  function confirm_deletion(bibid,itemnum) {
!       var is_confirmed = confirm(_('Do you confirm item deletion?'));
        if (is_confirmed) {
        window.location = 
"additem.pl?op=delitem&bibid="+bibid+"&itemnum="+itemnum;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]