Unable to build pl translations

Bug #1442708 reported by Sylvain Pineau
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Invalid
Undecided
Unassigned
PlainBox (Toolkit)
Fix Released
Critical
Sylvain Pineau

Bug Description

Launchpad mis-identifies a translatable strings as being both python-% and python-{ format.

The string in question looks like this:
"blah blah {0}% c"

Launchpad sees it as both {0} and % c string. It adds two flags that are subsequently verified at the build process. The problem is that the translation doesn't retain the trailing 'c' character (as this is not a part of the format, c is just a regular word there) and then "msgfmt --check" reports an error.

(Original bug description below)

The packages refuse to build because of the following error:

# Build i18n catalogs for plainbox and bundled providers
./support/build-i18n -d plainbox/po/
plainbox/po/de.po:7: warning: header field 'Language' missing in header
plainbox/po/en_AU.po:7: warning: header field 'Language' missing in header
plainbox/po/en_CA.po:7: warning: header field 'Language' missing in header
plainbox/po/en_GB.po:7: warning: header field 'Language' missing in header
plainbox/po/es.po:7: warning: header field 'Language' still has the initial default value
plainbox/po/ja.po:7: warning: header field 'Language' missing in header
plainbox/po/pl.po:1221: 'msgstr' is not a valid Python format string, unlike 'msgid'. Reason: The string ends in the middle of a directive.
msgfmt: found 1 fatal error
Location of po/ directory: plainbox/po/
Gettext Domain: plainbox
Existing translations for the following languages:
- de
- en_AU
- en_CA
- en_GB
- es
- ja
- pl
- pt
- ru
- tr
- uk
- zh_TW
Building all translation catalogs
Building translation catalog for: de
Building translation catalog for: en_AU
Building translation catalog for: en_CA
Building translation catalog for: en_GB
Building translation catalog for: es
Building translation catalog for: ja
Building translation catalog for: pl
Unable to build translations for: pl

Related branches

Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :
Changed in plainbox:
status: New → In Progress
assignee: nobody → Sylvain Pineau (sylvain-pineau)
Changed in plainbox:
status: In Progress → Fix Committed
Zygmunt Krynicki (zyga)
description: updated
Changed in plainbox:
status: Fix Committed → Fix Released
Changed in launchpad:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.