четвер, 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: > <stdin>:116: a format specification for arguments 1 and 2 doesn't exist in > 'msgstr[0]', only one argument may be ignored > <stdin>:126: a format specification for arguments 1 and 2 doesn't exist in > 'msgstr[0]', only one argument may be ignored > <stdin>:136: a format specification for arguments 1 and 3 doesn't exist in > 'msgstr[0]', only one argument may be ignored > <stdin>:146: a format specification for arguments 1 and 4 doesn't exist in > 'msgstr[0]', only one argument may be ignored > <stdin>: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 "<b><i>One match found in current file</i></b>" > #| msgid_plural "<b><i>%1 matches found in current file</i></b>" > msgid "<b><i>One match found in current file</i></b>" > msgid_plural "<b><i>%1 matches (%2 checked) found in current file</i></b>" > msgstr[0] "<b><i>Één overeenkomst in huidig bestand gevonden</i></b>" > msgstr[1] "" > "<b><i>%1 overeenkomsten (%2 gecontroleerd) in huidig bestand gevonden</i></ > 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