[Koha-bugs] [Bug 18654] Translatability: Get rid of tt directives starting with [ %% in translation for itemsearch.tt

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Jun 11 08:07:14 CEST 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18654

Marc Véron <veron at veron.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #63773|0                           |1
        is obsolete|                            |

--- Comment #5 from Marc Véron <veron at veron.ch> ---
Created attachment 64177
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=64177&action=edit
Bug 18654: Translatability: Get rid of tt directives starting with [%% in
translation for itemsearch.tt

Translation for file itemsearch.tt exposes tt directifes like:
%s %s %s %s %s %s %s %s %s [%% params = { f => f.$i q = q.$i op = op.$i } %%]
%s %s %s %s %s %s %s %s %s %s %s
or
[%% INCLUDE form_field_select name="homebranch" options = branches empty_option
= "All libraries" %%] [%% INCLUDE form_field_select name="holdingbranch"
options = branches empty_option = "All libraries" %%] %s [%% INCLUDE
form_field_select name="location" options = locations empty_option = "All
locations" %%] %s

This patch fixes it.

To test:
- Apply patch
- Verify that itemsearch behaves as before
- Verify that code changes make sense
- Test a translatiion e.g. from folder misc/translator:
  perl translate create aa-AA
  ...and verifiy that strings translated from itemsearch.tt and starting with
[%%
  no longer appear in aa-AA-staff-prog.po

(Patch re-written, needs a new sign-off)

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list