Bugzilla – Attachment 25129 Details for
Bug 9016
Multi transport types for notices
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9016: Fix some translate issues
Bug-9016-Fix-some-translate-issues.patch (text/plain), 3.35 KB, created by
Kyle M Hall (khall)
on 2014-02-07 13:56:49 UTC
(
hide
)
Description:
Bug 9016: Fix some translate issues
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2014-02-07 13:56:49 UTC
Size:
3.35 KB
patch
obsolete
>From ccb32efb1d0374b7332f277a70d843fc3dfcea08 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Mon, 3 Feb 2014 14:15:38 +0100 >Subject: [PATCH] Bug 9016: Fix some translate issues > >On tools/letter.pl and tools/overduerules.pl, some strings were not >translatable. This patch should fix that. >--- > .../intranet-tmpl/prog/en/modules/tools/letter.tt | 21 ++++++++++++++++++- > .../prog/en/modules/tools/overduerules.tt | 17 +++++++++++++++- > 2 files changed, 35 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >index c1dcc10..eceeb52 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >@@ -37,7 +37,9 @@ $(document).ready(function() { > || ( title.length > 0 && content.length == 0 ) > ) { > var mtt = $(this).find('input[name="message_transport_type"]').val(); >- alert("You must specify a title and a content for " + mtt); >+ var msg = _("You must specify a title and a content for %s"); >+ msg = msg.replace( "%s", mtt ); >+ alert(msg) > event.preventDefault(); > } > } ); >@@ -307,7 +309,22 @@ $(document).ready(function() { > [% FOREACH letter IN letters %] > <li> > <fieldset class="rows mtt" id="[% letter.message_transport_type %]"> >- <legend>[% letter.message_transport_type %]</legend> >+ <legend> >+ [% SWITCH letter.message_transport_type %] >+ [% CASE 'email' %] >+ email >+ [% CASE 'print' %] >+ print >+ [% CASE 'sms' %] >+ sms >+ [% CASE 'feed' %] >+ feed >+ [% CASE 'phone' %] >+ phone >+ [% CASE %] >+ [% letter.message_transport_type %] >+ [% END %] >+ </legend> > <ol> > <li> > <input type="hidden" name="message_transport_type" value="[% letter.message_transport_type %]" /> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt >index a9ba122..dd90499 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt >@@ -92,7 +92,22 @@ $(document).ready(function() { > <th scope="col">Letter</th> > <th scope="col">Restrict</th> > [% FOREACH mtt IN message_transport_types %] >- <th scpre="col">[% mtt %]</th> >+ <th scpre="col"> >+ [% SWITCH mtt %] >+ [% CASE 'email' %] >+ email >+ [% CASE 'print' %] >+ print >+ [% CASE 'sms' %] >+ sms >+ [% CASE 'feed' %] >+ feed >+ [% CASE 'phone' %] >+ phone >+ [% CASE %] >+ [% letter.message_transport_type %] >+ [% END %] >+ </th> > [% END %] > </tr> > </thead> >-- >1.7.2.5
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 9016
:
13276
|
20814
|
20815
|
20816
|
20916
|
21164
|
21165
|
21166
|
21167
|
21636
|
21637
|
21638
|
21639
|
22814
|
23272
|
23273
|
23289
|
23290
|
23291
|
23292
|
23293
|
23562
|
23955
|
23956
|
23957
|
23958
|
23959
|
23960
|
24571
|
24572
|
24573
|
24574
|
24575
|
24576
|
25006
|
25123
|
25124
|
25125
|
25126
|
25127
|
25128
|
25129
|
25130
|
25415
|
25416
|
25417
|
25418
|
25419
|
25420
|
25421
|
25422
|
25606
|
25899
|
26182
|
26209
|
26210
|
26211
|
26216
|
26226
|
26233
|
26648
|
26649
|
26650
|
26656
|
26657
|
26658
|
26659
|
26660
|
26661
|
26662
|
26663
|
26664
|
26665
|
26666
|
26667
|
26668
|
26670
|
26672
|
26673
|
27794
|
27795
|
27796
|
27797
|
27798
|
27799
|
27800
|
27801
|
27802
|
27803
|
27804
|
27805
|
27806
|
27807
|
27808
|
27809