Bug 8257 - Translation scripts show lots of warnings
Summary: Translation scripts show lots of warnings
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: I18N/L10N (show other bugs)
Version: Main
Hardware: All All
: P5 - low trivial (vote)
Assignee: Bugs List
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-17 05:18 UTC by Katrin Fischer
Modified: 2015-12-03 22:00 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 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.