Bugzilla – Attachment 2132 Details for
Bug 4499
Javascript erorr messages not translatable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
0001-BUG-4499-Javascript-error-messages-not-translatable.patch (text/plain), 2.99 KB, created by
Chris Cormack
on 2010-05-13 17:40:00 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2010-05-13 17:40:00 UTC
Size:
2.99 KB
patch
obsolete
>From 6c17837e85e58ee2a06ee7b4f8159e6a1e4669e7 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >Date: Fri, 23 Apr 2010 18:37:01 +0200 >Subject: [PATCH] BUG 4499: Javascript error messages not translatable > >- Cataloging > New Record (addbiblio.tmpl) >- Administration > Currencies > New Currency (currency.tmpl) > >--- > .../prog/en/modules/admin/currency.tmpl | 8 ++++---- > .../prog/en/modules/cataloguing/addbiblio.tmpl | 5 +++-- > 2 files changed, 7 insertions(+), 6 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tmpl >index e9e1c9d..97f6399 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tmpl >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tmpl >@@ -16,18 +16,18 @@ > var _alertString=""; > var alertString2; > if (f.currency.value.length==0) { >- _alertString += "- Currency name missing\n"; >+ _alertString += _("- Currency name missing") + "\n"; > } > if (f.rate.value.length==0) { >- _alertString += "- Rate missing\n"; >+ _alertString += _("- Rate missing") + "\n"; > } > if (f.symbol.value.length==0) { >- _alertString += "- Symbol missing\n"; >+ _alertString += _("- Symbol missing") + "\n"; > } > if (_alertString.length==0) { > document.Aform.submit(); > } else { >- alertString2 = "Form not submitted because of the following problem(s)\n"; >+ alertString2 = _("Form not submitted because of the following problem(s)") + "\n"; > alertString2 += "------------------------------------------------------------------------------------\n"; > alertString2 += _alertString; > alert(alertString2); >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl >index a091adc..6c4a2c4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl >@@ -90,7 +90,8 @@ function AreMandatoriesNotOk(){ > <!-- /TMPL_LOOP --> > <!-- /TMPL_LOOP --> > <!-- /TMPL_LOOP --> >- var StrAlert = _("Can't save this record because the following field aren't filled :\n\n"); >+ var StrAlert = _("Can't save this record because the following field aren't filled:"); >+ StrAlert += "\n\n"; > for(var i=0,len=mandatories.length; i<len ; i++){ > var tag=mandatories[i].substr(4,3); > var subfield=mandatories[i].substr(17,1); >@@ -153,7 +154,7 @@ function AreMandatoriesNotOk(){ > > if(isempty){ > flag = 1; >- StrAlert += _("\t* Field ") + arr[0] + _(" is mandatory, at least one of its subfields must be filled.\n"); >+ StrAlert += _("\t* Field ") + arr[0] + _(" is mandatory, at least one of its subfields must be filled.") + "\n"; > } > > } >-- >1.6.3.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 4499
: 2132 |
2133