Bug 23973 - Serials module broken by Swedish translation
Summary: Serials module broken by Swedish translation
Status: RESOLVED DUPLICATE of bug 23713
Alias: None
Product: Koha
Classification: Unclassified
Component: Serials (show other bugs)
Version: 18.11
Hardware: All All
: P5 - low major (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-05 13:58 UTC by Magnus Enger
Modified: 2019-11-05 18:10 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Magnus Enger 2019-11-05 13:58:43 UTC
One customer recently upgraded to 19.05.04.000 (Debian packages). After the upgrade the serials module is broken when they view the Swedish translation, but not when they view it in English. The most visually striking problem is that both page 1 and 2 of the serials form is displayed on one page. 

I have narrowed the problem down to koha-tmpl/intranet-tmpl/prog/sv-SE/modules/serials/subscription-add.tt line 509 which looks like this in the Swedish translation:

  var mana_enabled = [% IF (Koha.Preference('Mana') == 1 && mana_url) %]1[% ELSE %][% END %];

and this in the English original:

  var mana_enabled = [% IF (Koha.Preference('Mana') == 1 && mana_url) %]1[% ELSE %]0[% END %];

Notice the missing 0 between ELSE and END in the Swedish template. 

I have tried to look through the Swedish staff .po file, but I have not been able to spot any strings that affect this area of the file.
Comment 1 Katrin Fischer 2019-11-05 18:10:50 UTC
Hi Magnus, this has been discussed on the German mailing list and finally fixed in bug 23713 (sadly not backported yet). Marking duplicate, but the fix should be easy to implement!

*** This bug has been marked as a duplicate of bug 23713 ***