Bug#671729: Lokalize uses its own broken version of msgcat

2012-11-29 Thread David Prévot
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Hi Pino,

Le 29/11/2012 06:16, Pino Toscano a écrit :
 Alle domenica 6 maggio 2012, David Prévot ha scritto:
 I've reported a similar bug upstream [0] some time ago, but despite
 its current status, it hasn't really been fixed or resolved.

  0: https://bugs.kde.org/show_bug.cgi?id=256035
 
 It should have been fixed in some RC of KDE 4.8, and indeed I cannot 
 reproduce your issue with the lokalize currently in testing (4.8.4).

Right, the PO file is not as broken anymore, but the no-wrap entries are
still wrapped, and the one-line around 80 characters are not handled the
same way as msgcat does, so it still “produce[s] an unnecessary and
unreadable huge diff on VCS” (aka: upstream bug [0] is still unfixed).

Regards

David

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCAAGBQJQt1qYAAoJELgqIXr9/gnySREP/jMNGfcNw+jNRef4ojzHVZ4q
vN8oSc4DvOEoTXZ3AT0UoDcqAnzbm1XS6rMgzZJUKfeW5axxshU66KG9bVAnoXXZ
5T6rAOw/T9yU5d9qpCcou63ApLm6JktrgIMIlrOuALl8oZJqtcbh4Dyu0Gc5wVEL
EVL/1F32SUO88UISsnffcCLhbM12o+zRHEaYRFdrb+qVOxwvFHdJOXH/DxjHH3bA
A2fgV2AfEcedfz0154+8Sn31tQii+NiAnH7AMVu9Hs70Wq5XvihvxRauEQeBf7jm
+PVJ0mMnXQpOliDVcgc3k2YbTHmm9zfD8Hd2U2JeknT9cn6nyjiEpRG3S/dOteM/
2MJVaBrXXSpg7uJmoz9aopJlDXco6OJBuAZh/eefNhI5nf8R0HEg+YGVczU+s04X
JUjiepcUzYCtOGQq7J5BqjNPcPO3xLhxUm+6rIfBleFUhJsA93IRvuhs+YDYHltC
98dcXUXOuf2/5xfB9iHem4Md19pwq9P9BNS0gS8G7b0YnFUAtw0WOMw4wioPpIOR
wLhOFlVPhoAyUwlrb6Y5W6GDH6QXfuNEgWqtUqmIOk5tpLH4t/ukvVWCRPH87kQ9
a13oxFzt07U38qvFnfr5W3A92i3imXvSG1cwK2G6sdqUR33lgQkUa72pYb63kU8G
x290Bmzi2xMJKw5iVW4P
=NDBO
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#671729: Lokalize uses its own broken version of msgcat

2012-11-29 Thread Pino Toscano
Hi David,

Alle giovedì 29 novembre 2012, David Prévot ha scritto:
 Le 29/11/2012 06:16, Pino Toscano a écrit :
  Alle domenica 6 maggio 2012, David Prévot ha scritto:
  I've reported a similar bug upstream [0] some time ago, but
  despite its current status, it hasn't really been fixed or
  resolved.
  
 0: https://bugs.kde.org/show_bug.cgi?id=256035
  
  It should have been fixed in some RC of KDE 4.8, and indeed I
  cannot reproduce your issue with the lokalize currently in testing
  (4.8.4).
 
 Right, the PO file is not as broken anymore, but the no-wrap entries
 are still wrapped, and the one-line around 80 characters are not
 handled the same way as msgcat does, so it still “produce[s] an
 unnecessary and unreadable huge diff on VCS” (aka: upstream bug [0]
 is still unfixed).

It would seem to me this is a different problem though (i.e. not 
honours no-wrap entries vs produces broken .po files).

I see no mention of support for no-wrap in entries, so could you 
please open a new bug/wish upstream for that (since I see you have 
already an account on KDE's bugzilla)?

Thanks,
-- 
Pino Toscano


signature.asc
Description: This is a digitally signed message part.


Bug#671729: Lokalize uses its own broken version of msgcat

2012-05-06 Thread David Prévot
Package: lokalize
Version: 4:4.7.4-3+b1
Severity: normal
Tags: upstream

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Hi,

I've reported a similar bug upstream [0] some time ago, but despite its
current status, it hasn't really been fixed or resolved.

0: https://bugs.kde.org/show_bug.cgi?id=256035

Worst: Lokalize is able to break PO files, and if one use a weird build
system (e.g. that pipes the msgcat result into the source PO file), it
even causes data loss (and yes, it's a real life experience).

Please find attach a working test file (/tmp/fr_ok.po), and its result
once edited in Lokalize (/tmp/fr_lok.po).

$ LANG=C msgfmt /tmp/fr_ok.po
$ LANG=C msgfmt /tmp/fr_lok.po
/tmp/fr_lok.po:19: end-of-line within string
/tmp/fr_lok.po:17: missing `msgstr' section
/tmp/fr_lok.po:19:4: syntax error
/tmp/fr_lok.po:20: end-of-line within string
msgfmt: found 4 fatal errors  

Regards

David

- -- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lokalize depends on:
ii  kde-runtime4:4.7.4-2
ii  kdesdk-strigi-plugins  4:4.7.4-3+b1
ii  libc6  2.13-32
ii  libhunspell-1.3-0  1.3.2-4
ii  libkdecore54:4.7.4-4
ii  libkdeui5  4:4.7.4-4
ii  libkfile4  4:4.7.4-4
ii  libkio54:4.7.4-4
ii  libkparts4 4:4.7.4-4
ii  libkrosscore4  4:4.7.4-4
ii  libkrossui44:4.7.4-4
ii  libqt4-dbus4:4.8.1-1
ii  libqt4-sql 4:4.8.1-1
ii  libqt4-sql-sqlite  4:4.8.1-1
ii  libqt4-xml 4:4.8.1-1
ii  libqtcore4 4:4.8.1-1
ii  libqtgui4  4:4.8.1-1
ii  libstdc++6 4.7.0-7
ii  libthreadweaver4   4:4.7.4-4

Versions of packages lokalize recommends:
ii  gettext0.18.1.1-7
ii  krosspython4:4.7.4-1
ii  python-dbus0.84.0-3
ii  python-kde44:4.7.4-2+b1
ii  python-lxml2.3.2-1
ii  subversion 1.6.17dfsg-3
ii  translate-toolkit  1.9.0-2

Versions of packages lokalize suggests:
ii  khelpcenter4  4:4.7.4-2
ii  poxml 4:4.7.4-3+b1

- -- no debconf information

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCAAGBQJPpnkdAAoJELgqIXr9/gnyfsAQALBmscup1D63Hxpeiqt96ZkU
7Cob7X5cuCi3GDUNdymzdhu66Q13E9JEqyT5Orl81ZxWQ8sFZEeXck9n3qvQhNt7
AjykEbaL2rl8XaBOcT5v1/KYJtSdjufazB7wir7KTskgiN1jXcRIMkXLySlYh94m
BH4EkIpnVS72pU3oS75ms8aDsMe0+XnZVuFp5Uwp3Wd3KxfuGorUVI9PsXK2c75h
GvO987hHlUiLwgbjuqOhCmNd1lAJUV9AdNeglowU0dasZsMLrMkCypmNOT+3mq3u
XTuM+MXFC6PqEgrAPQF2B1aAhqaK0AUdyxmIWKUcVlkmribxl+DCaH1Rf42PoSdd
nTgTnfNxMzxGPw0exDdb9iKrY40aaODI/febFWlJStn8hRBylsBryf0zhJwhjkQx
kbtLjPcx6CgZr/TNxgpVT/uDHXPLsjDgGHFBOMxe2fCwRCZu00z/mWFnHmgJV24N
JeLVy60Ns6C0Q6R32OicEHR/5z7pgiE0VetpVe+fm8JCcAGG7f+s1D5LMfZP6TAs
VwD0epe8ih0qS/CLv/rNKPeedbnUa1De+coodX6MVSpJw8LPlJ6MEKOhFMWmn6MP
pGAIYcfbqS20rgUsfdiNkyB72b7TDjVD9SS/AH+jCXuszWiJRSm4wQjsSIWR+Ok0
Vz1pnsZFHKK7Ufqrqj46
=2W8+
-END PGP SIGNATURE-
# David Prévot da...@tilapin.org, 2012.
msgid 
msgstr 
Project-Id-Version: \n
POT-Creation-Date: 2012-03-19 14:29-0400\n
PO-Revision-Date: 2012-05-06 08:57-0400\n
Last-Translator: David Prévot da...@tilapin.org\n
Language-Team: French debian-l10n-fre...@lists.debian.org\n
Language: fr\n
MIME-Version: 1.0\n
Content-Type: text/plain; charset=UTF-8\n
Content-Transfer-Encoding: 8bit\n
X-Generator: Lokalize 1.2\n
Plural-Forms: nplurals=2; plural=(n  1);\n

#, no-wrap
msgid 
Just_long_enough_line_to_make_obvious_that_reimplementing_tools_is_a_bad_idea\n
msgstr 


# David Prévot da...@tilapin.org, 2012.
msgid 
msgstr 
Project-Id-Version: \n
POT-Creation-Date: 2012-03-19 14:29-0400\n
PO-Revision-Date: 2012-05-06 09:06-0400\n
Last-Translator: David Prévot da...@tilapin.org\n
Language-Team: French debian-l10n-fre...@lists.debian.org\n
Language: fr\n
MIME-Version: 1.0\n
Content-Type: text/plain; charset=UTF-8\n
Content-Transfer-Encoding: 8bit\n
X-Generator: Lokalize 1.2\n
Plural-Forms: nplurals=2; plural=(n  1);\n

#, no-wrap
msgid 
Just_long_enough_line_to_make_obvious_that_reimplementing_tools_is_a_bad_idea\
n
msgstr