Originally reported in the debian bts: https://bugs.debian.org/726796 Hi, When message string contain a comment, lokalize places `fuzzy' marker after it, which causes any further msg* commands to report `syntax error'. Example to reproduce the issue: Please see the attached file. Before running lokalize, msgfmt displays: > LC_ALL=C msgfmt --statistics test.po 0 translated messages, 1 fuzzy translation. Now, please run > lokalize ./test.po and do the three following actions inside it: 1. first mark the entry as translated: Edit->Translated->Ready 2. than mark it as untranslated : Edit->Translated->Needs Review 3. finally save the file : File->Save After doing that msgfmt fails: > LC_ALL=C msgfmt --statistics test.po test.po:20:1: syntax error msgfmt: found 1 fatal error Still reproduceable in 4.13.1.
Created attachment 87898 [details] Test file
Git commit 41bff57451b4521482952a014ed06526f0651f24 by Nick Shaforostoff. Committed on 21/12/2014 at 07:30. Pushed by shaforo into branch 'master'. ensure msgfmt likes our output Maximiliano Curia: thank you for providing a test file! M +11 -0 src/catalog/gettext/catalogitem.cpp M +5 -5 src/editortab.cpp http://commits.kde.org/lokalize/41bff57451b4521482952a014ed06526f0651f24