Bug 274554 - "%1" is not recognized if it is divided by line break
Summary: "%1" is not recognized if it is divided by line break
Status: RESOLVED FIXED
Alias: None
Product: lokalize
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Nick Shaforostoff
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-30 22:33 UTC by Alexander Potashev
Modified: 2019-08-10 16:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.