Bug 8257

Summary: Translation scripts show lots of warnings
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: I18N/L10NAssignee: Bugs List <koha-bugs>
Status: CLOSED FIXED QA Contact:
Severity: trivial    
Priority: P5 - low CC: bgkriegel, f.demians
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Katrin Fischer 2012-06-17 05:18:06 UTC
When running the translation scripts with "perl translate install ..." a lot of warnings are shown:

Use of uninitialized value in pattern match (m//) at /usr/share/perl5/Locale/PO.pm line 472, <IN> line 95569.
Use of uninitialized value $key in hash element at /usr/share/perl5/Locale/PO.pm line 472, <IN> line 95569.
Use of uninitialized value in pattern match (m//) at /usr/share/perl5/Locale/PO.pm line 472, <IN> line 95569.
Use of uninitialized value in hash element at /usr/share/perl5/Locale/PO.pm line 343, <IN> line 95569.
...

My test was on current master with uk-UA, but it also happens with other languages.

Translation process still seems to be working and finishes.
Comment 1 Frédéric Demians 2012-06-17 10:08:26 UTC
> Use of uninitialized value in pattern match (m//) at
> /usr/share/perl5/Locale/PO.pm line 472, <IN> line 95569.

As you can see, it always happens on this line. This is at the end of
staff interface .po file. At this place, there are few lines of comments
which have nothing to do there. You could delete them, and you will see
that the translation script will stop throwing this warning. It's really
safe. We may clean all .po files.
Comment 2 Bernardo Gonzalez Kriegel 2014-11-28 17:15:32 UTC
(In reply to Frédéric Demians from comment #1)
> ... We may clean all .po files.

For 3.18 release all translation files have been fixed/cleaned
There are no warnings on install or update for all languages.