Bug 274554

Summary: "%1" is not recognized if it is divided by line break
Product: [Applications] lokalize Reporter: Alexander Potashev <aspotashev>
Component: generalAssignee: Nick Shaforostoff <shafff>
Status: RESOLVED FIXED    
Severity: normal CC: adrian
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Alexander Potashev 2011-05-30 22:33:24 UTC
Version:           unspecified (using KDE 4.6.3) 
OS:                Linux

1. open the file http://websvn.kde.org/trunk/l10n-kde4/ru/messages/kdepim/libmessagecomposer.po?revision=1233383&view=markup in Lokalize
2. edit a random string (for example, the first one) and save the file.
After that you get the "Syntax check" warning:
> Syntax check has found possible erorrs.
> Translation Units view lists suspicious entries.
> Reasons: specify %1 in first plural form explicitly for cases like 21, 31, ...

But if you edit the false-buggy messages so that the "%1" is not serapated by a line break, then the "Syntax check" warning goes away.

One of the messages from that file that causes the bug:
> msgstr[0] ""
> "<p>Вспомогательный сертификат удостоверяющего центра</p><p align=\"center"
> "\"><b>%4</b></p><p>вашего сертификата S/MIME, используемого для подписи</"
> "p><p align=\"center\"><b>%2</b> (номер %3),</p><p>истекает менее чем через %"
> "1 день.</p>"

Reproducible: Always
Comment 1 Adrián Chaves (Gallaecio) 2019-08-10 07:49:54 UTC
I cannot reproduce this, but also I don’t think Lokalize has ‘syntax checks’ at the moment. Can you confirm this issue no longer applies to Lokalize?
Comment 2 Alexander Potashev 2019-08-10 16:17:57 UTC
Correct. The syntax checks feature was lost at some point.