summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-i18n/2012-June/003106.html
blob: 9d620ea31aca6c498590ddf7a1e5b451b39e3656 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-i18n] List of pot files not passing msgfmt -c
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-i18n%40mageia.org?Subject=Re%3A%20%5BMageia-i18n%5D%20List%20of%20pot%20files%20not%20passing%20msgfmt%20-c&In-Reply-To=%3C42211.1341038233.8464323489779023872%40ffe15.ukr.net%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="003105.html">
   <LINK REL="Next"  HREF="003089.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-i18n] List of pot files not passing msgfmt -c</H1>
    <B>Yuri Chornoivan</B> 
    <A HREF="mailto:mageia-i18n%40mageia.org?Subject=Re%3A%20%5BMageia-i18n%5D%20List%20of%20pot%20files%20not%20passing%20msgfmt%20-c&In-Reply-To=%3C42211.1341038233.8464323489779023872%40ffe15.ukr.net%3E"
       TITLE="[Mageia-i18n] List of pot files not passing msgfmt -c">yurchor at ukr.net
       </A><BR>
    <I>Sat Jun 30 08:37:13 CEST 2012</I>
    <P><UL>
        <LI>Previous message: <A HREF="003105.html">[Mageia-i18n] List of pot files not passing msgfmt -c
</A></li>
        <LI>Next message: <A HREF="003089.html">[Mageia-i18n] Some files for translation not mentioned yet in wiki
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#3106">[ date ]</a>
              <a href="thread.html#3106">[ thread ]</a>
              <a href="subject.html#3106">[ subject ]</a>
              <a href="author.html#3106">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>&gt;<i> True. But conclusion for some is &quot;msgfmt: found 2 fatal errors&quot;. See example: $ LC_ALL=C msgfmt -c urpmi_mga2/urpmi.pot msgfmt: urpmi_mga2/urpmi.pot: warning: PO file header fuzzy &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; warning: older versions of msgfmt will give an error on this urpmi_mga2/urpmi.pot:7: invalid nplurals value urpmi_mga2/urpmi.pot:7: some header fields still have the initial default value msgfmt: found 2 fatal errors
</I>&gt;<i> Same message for: drakx-kbd-mouse-x11.pot libDrakX.pot mga2 DrakX.pot drakconf.pot mdkonline.pot urpmi.pot drakconf.pot mga2 DrakX.pot mga2 libDrakX.pot
</I>&gt;<i> I don't test files from branch mga1 in that script! And much of pot files are not branched to mga2 yet.
</I>
This is due to the nature of intltool-update. It adds 

&quot;Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n&quot;

Handling of such POT files seems well documented [1] and can be made automatically by most PO editors.

This problem can be &quot;fixed&quot; by adding corresponding nplurals removal command to Makefile in /po folder. Something like

perl -i -p -e &quot;s/\&quot;Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\\n\&quot;\n//;&quot; $(PGOAL).pot

After the removal, there will be no critical errors.

[1] <A HREF="https://mail.gnome.org/archives/gnome-i18n/2004-May/msg00019.html">https://mail.gnome.org/archives/gnome-i18n/2004-May/msg00019.html</A>

&gt;<i> 
</I>&gt;<i> On 29 June 2012 15:52, Yuri Chornoivan &lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-i18n">yurchor at ukr.net</A>&gt; wrote:
</I>&gt;<i> &gt; &#1085;&#1072;&#1087;&#1080;&#1089;&#1072;&#1085;&#1077; Fri, 29 Jun 2012 13:38:38 +0300, Filip Komar &lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-i18n">filip.komar at gmail.com</A>&gt;: 
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; &gt; It's true that some of them only reports about default values in headers but some also reports critical errors. I don't have list of them right now. If needed I can supply that. 
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; find -name &quot;*.pot&quot; -exec msgfmt -vc {} \; -print
</I>&gt;<i> &gt; shows nothing but header problems in /soft. Did I miss something? 
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; &gt; Oliver, is the list for mga1 also needed?
</I>&gt;<i> &gt; &gt; It wasn't explicitly clear to me but I assume that you and R?mi will fix them? Sooner or later we'll need &quot;nonboken&quot; ones for pootle or other system.
</I>&gt;<i> &gt; &gt; On 29 June 2012 12:15, Oliver Burger &lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-i18n">oliver.bgr at googlemail.com</A>&gt; wrote:
</I>&gt;<i> &gt; &gt; 
</I>&gt;<i> &gt; &gt; &gt; Am 29.06.2012 12:05, schrieb Yuri Chornoivan:
</I>&gt;<i> &gt; &gt; &gt; msgfmt reports about default values in headers of these files. IMHO it
</I>&gt;<i> &gt; &gt; &gt; &gt; is not crucial for correctness of the derived translations, but I might be wrong.Imho you are right. Those values don't harm in the pot files, but they should be set to correct ones in the po files, at least the encoding stuff. But it would be better, if the values were set correctly in the pot files as well.
</I>&gt;<i> &gt; &gt; &gt; Oliver
</I>&gt;<i> &gt; &gt; &gt; -- Oliver Burger aka obgr_seneca
</I>&gt;<i> &gt; &gt; &gt; Mageia contributor    
</I></PRE>

<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="003105.html">[Mageia-i18n] List of pot files not passing msgfmt -c
</A></li>
	<LI>Next message: <A HREF="003089.html">[Mageia-i18n] Some files for translation not mentioned yet in wiki
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#3106">[ date ]</a>
              <a href="thread.html#3106">[ thread ]</a>
              <a href="subject.html#3106">[ subject ]</a>
              <a href="author.html#3106">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-i18n">More information about the Mageia-i18n
mailing list</a><br>
</body></html>