четвер, 19 квітня 2018 р. 16:38:29 EEST Freek de Kruijf написано:
> I tried to update the file nl/messages/applications/katesearch.po
> but it is rejected with:svn: E165001: Commit failed (details follow):
> svn: E165001: Commit blocked by pre-commit hook (exit code 1) with output:
> :116: a format specification for arguments 1 and 2 doesn't exist in
> 'msgstr[0]', only one argument may be ignored
> :126: a format specification for arguments 1 and 2 doesn't exist in
> 'msgstr[0]', only one argument may be ignored
> :136: a format specification for arguments 1 and 3 doesn't exist in
> 'msgstr[0]', only one argument may be ignored
> :146: a format specification for arguments 1 and 4 doesn't exist in
> 'msgstr[0]', only one argument may be ignored
> :160: a format specification for arguments 1 and 3 doesn't exist in
> 'msgstr[0]', only one argument may be ignored
> msgfmt: found 5 fatal errors
>
> Looking at line 116 I have:
>
> #: plugin_search.cpp:1541
> #, kde-format
> #| msgid "One match found in current file"
> #| msgid_plural "%1 matches found in current file"
> msgid "One match found in current file"
> msgid_plural "%1 matches (%2 checked) found in current file"
> msgstr[0] "Één overeenkomst in huidig bestand gevonden"
> msgstr[1] ""
> "%1 overeenkomsten (%2 gecontroleerd) in huidig bestand gevonden b>"
>
> Others are similar, I don't see anything wrong.
Hi,
Looks like some kind of bug or limitation in gettext itself. And gettext
itself says about what is wrong:
a format specification for arguments 1 and 2 doesn't exist in 'msgstr[0]',
only one argument may be ignored
On the other hand, when I ignore arguments in msgstr[3] in Ukrainian (case
n==1) it's fine...
It seems that now there is no other way for you than put "(%2 gecontroleerd)"
into msgstr[0].
Best regards,
Yuri