Bugzilla – Attachment 63724 Details for
Bug 18649
Translatability: Get rid of tt directive in translation for admin/categories.tt and onboardingstep2.tt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18649: Translatability: Get rid of tt directive in translation for admin/categories.tt and onboardingstep2.tt
Bug-18649-Translatability-Get-rid-of-tt-directive-.patch (text/plain), 3.33 KB, created by
Aleisha Amohia
on 2017-05-26 04:07:51 UTC
(
hide
)
Description:
Bug 18649: Translatability: Get rid of tt directive in translation for admin/categories.tt and onboardingstep2.tt
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2017-05-26 04:07:51 UTC
Size:
3.33 KB
patch
obsolete
>From 0949b3de24c6bdd4e7595ed938eb492704dbfe8e Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >Date: Mon, 22 May 2017 18:03:01 +0200 >Subject: [PATCH] Bug 18649: Translatability: Get rid of tt directive in > translation for admin/categories.tt and onboardingstep2.tt > >Translation tool shows >[% IF category.enrolmentperiod %][% category.enrolmentperiod %][% END %] >for en/modules/admin/categories.tt and >koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep2.tt > >This patch fixes it. > >To test: >- Apply patch >- Verify that code changes make sense >- Verify that template directive is no longer picked by translation > >https://bugs.koha-community.org/show_bug.cgi?id=18641 > >Patch works as expected for me - also this is a really great way to do >this kind of fix! We should have this all over Koha. >Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt | 2 +- > koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep2.tt | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt >index e33b36f..c5b8b03 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt >@@ -89,7 +89,7 @@ > <ol> > <li> > <label for="enrolmentperiod" style="width:6em;">In months: </label> >- <input type="text" class="enrollmentperiod" name="enrolmentperiod" id="enrolmentperiod" size="3" maxlength="3" value="[% IF category.enrolmentperiod %][% category.enrolmentperiod %][% END %]" /> months >+ <input type="text" class="enrollmentperiod" name="enrolmentperiod" id="enrolmentperiod" size="3" maxlength="3" value="[%- category.enrolmentperiod IF category.enrolmentperiod -%]" /> months > </li> > <li> > <label for="enrolmentperioddate" style="width:6em;">Until date: </label> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep2.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep2.tt >index e58616a..2236955 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep2.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep2.tt >@@ -101,7 +101,7 @@ > </li> > <li> > <label for="enrolmentperiod">In months: </label> >- <input type="number" class="enrolmentperiod" name="enrolmentperiod" id="enrolmentperiod" min="0" size="3" value="[% IF category.enrolmentperiod %][% category.enrolmentperiod %][% END %]" /> >+ <input type="number" class="enrolmentperiod" name="enrolmentperiod" id="enrolmentperiod" min="0" size="3" value="[% category.enrolmentperiod IF category.enrolmentperiod %]" /> > </li> > <li> > <label for="enrolmentperioddate">Until date: </label> >-- >2.1.4
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 18649
:
63626
|
63724
|
63757
|
63937
|
64049
|
64079
|
65494
|
65495
|
65501