https://bugs.kde.org/show_bug.cgi?id=386053
Bug ID: 386053 Summary: i18ncp() incorrectly appends I18N_EXCESS_ARGUMENTS_SUPPLIED when singular and plural format strings use different variables Product: frameworks-ki18n Version: 5.39.0 Platform: Neon Packages OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: general Assignee: caslav.i...@gmx.net Reporter: pointedst...@zoho.com CC: kdelibs-b...@kde.org Target Milestone: --- Consider the following code: int numberOfImages = [1 or 2]; QString fileName = "someFile.jpg"; QString windowTitle = QString(i18ncp("@title:window", "Copy %2", "Copy %1 images", numberOfImages, fileName)) The singular case correctly displays "Copy someFile.jpg" However, the plural case, displays "Copy 2 images(I18N_EXCESS_ARGUMENTS_SUPPLIED)" In fact, there aren't excess arguments, it's just that both variables aren't used in each string. But besides the error message, the output is otherwise perfectly valid. -- You are receiving this mail because: You are watching all bug changes.