[koha-commits] main Koha release repository branch 3.16.x updated. v3.16.00-16-g6fee133

Git repo owner gitmaster at git.koha-community.org
Fri May 23 17:01:38 CEST 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".

The branch, 3.16.x has been updated
       via  6fee133c0aa5ff2c97d40d8329170fb4ac6f6565 (commit)
      from  e8cab725ba1b550edceca34ec974af75387b1649 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 6fee133c0aa5ff2c97d40d8329170fb4ac6f6565
Author: Pasi Kallinen <pasi.kallinen at pttk.fi>
Date:   Wed May 7 09:49:01 2014 +0300

    Bug 12207: fix TTparser's handling of TT directives that contain "]"
    
    This piece of TT code:
    
      [% SWITCH lang %]
       [% CASE ['en', 'eng'] %]English
       [% CASE ['fr', 'fre'] %]French
       [% CASE ['it', 'ita'] %]Italian
        ...
       [% CASE %][% lang %]
      [% END %]
    
    is parsed by the TTparser.pm wrong. In the po-files, it shows up as:
    
       ...
    
    All the "CASE [ ... ]" codes are shown as "ERROR".
    This happens if any TT statement contains a ']' in it - the TTParser
    looks for anything that starts with [% and ends with ].
    
    This patch fixes it so that it expects TT directives to end
    with '%]'.
    
    To test:
    
    1)  cd misc/translator/
    2)  perl translate update xx-YY
    3)  for x in po/xx-YY-*.po; do cp "$x" "${x/.po/.po.bak}"; done
    4)  apply patch
    5)  perl translate update xx-YY
    6)  for x in po/xx-YY-*.po; do diff -Nurd "$x" "${x/.po/.po.bak}"; done
          the only changed lines should be those that apply to msgid's with
          ERROR-parameters.
    
    Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel at gmail.com>
    Work as described. No errors
    
    Signed-off-by: Jonathan Druart <jonathan.druart at biblibre.com>
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>

-----------------------------------------------------------------------

Summary of changes:
 C4/TTParser.pm |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list