Patchwork [Bug,4493] New: msgfmt warnings

login
register
mail settings
Submitter mercurial-bugs@selenic.com
Date Jan. 6, 2015, 9:52 p.m.
Message ID <bug-4493-285@http.bz.selenic.com/>
Download mbox | patch
Permalink /patch/7340/
State Not Applicable
Headers show

Comments

mercurial-bugs@selenic.com - Jan. 6, 2015, 9:52 p.m.
http://bz.selenic.com/show_bug.cgi?id=4493

          Priority: normal
            Bug ID: 4493
                CC: mercurial-devel@selenic.com
          Assignee: bugzilla@selenic.com
           Summary: msgfmt warnings
          Severity: bug
    Classification: Unclassified
                OS: All
          Reporter: Arfrever.FTA@GMail.Com
          Hardware: All
            Status: UNCONFIRMED
           Version: 3.2.4
         Component: Mercurial
           Product: Mercurial

From NEWS file of GNU Gettext 0.19.4:

"Version 0.19.1 - June 2014
...
* msgfmt now treats errors in the PO file header as non-fatal.  Since
  0.19 msgfmt started to abort on the fatal errors, but some
  translation systems are still not ready to supply valid headers.

* Future backward-incompatibilities:
  - In future Gettext versions, msgfmt will treat header errors as
    fatal and terminate the command execution."


$ python2.7 setup.py build
...
i18n/el.po:7: warning: header field 'Language' missing in header
...
i18n/fr.po:86: warning: header field 'Language' missing in header
...
i18n/ro.po:106: warning: header field 'Language' missing in header
...
i18n/zh_CN.po:47: warning: header field 'Language' missing in header
...


These 4 .po files should have Language field to avoid error with some future
versions of GNU Gettext.

Patch

--- i18n/el.po
+++ i18n/el.po
@@ -13,2 +13,3 @@ 
 "Language-Team: Greek\n"
+"Language: el\n"
 "MIME-Version: 1.0\n"
--- i18n/fr.po
+++ i18n/fr.po
@@ -92,2 +92,3 @@ 
 "Language-Team: French\n"
+"Language: fr\n"
 "MIME-Version: 1.0\n"
--- i18n/ro.po
+++ i18n/ro.po
@@ -112,2 +112,3 @@ 
 "Language-Team: Romanian <>\n"
+"Language: ro\n"
 "MIME-Version: 1.0\n"
--- i18n/zh_CN.po
+++ i18n/zh_CN.po
@@ -53,2 +53,3 @@ 
 "Language-Team: Chinese translation team <i18n-zh@googlegroups.com>\n"
+"Language: zh_CN\n"
 "MIME-Version: 1.0\n"