From koffice Mon Sep 06 13:36:15 2004 From: Nicolas Goutte Date: Mon, 06 Sep 2004 13:36:15 +0000 To: koffice Subject: [Bug 88904] Plural i18n call missing Message-Id: <20040906133615.25795.qmail () ktown ! kde ! org> X-MARC-Message: https://marc.info/?l=koffice&m=109447780032332 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. http://bugs.kde.org/show_bug.cgi?id=88904 ------- Additional Comments From nicolasg snafu de 2004-09-06 15:36 ------- CVS commit by goutte: I18N: Fix plural user-visible strings (Backport) CCMAIL:88904 bugs kde org CCMAIL:kde-i18n-doc kde org M +4 -4 koscript_eval.cc 1.22.2.1 --- koffice/lib/koscript/koscript_eval.cc #1.22:1.22.2.1 @ -740,6 +740,6 @ bool KSEval_func_dcl( KSParseNode* node, if ( !context.value()->listValue().isEmpty() ) { - QString tmp( i18n("%1 arguments are not needed") ); - context.setException( new KSException( "TooManyArguments", tmp.arg( context.value()->listValue().count() ), node->getLineNo() ) ); + const QString tmp( i18n("1 argument is not needed", "%n arguments are not needed", context.value()->listValue().count() ) ); + context.setException( new KSException( "TooManyArguments", tmp, node->getLineNo() ) ); context.scope()->popLocalScope(); return false; @ -2127,6 +2127,6 @ bool KSEval_destructor_dcl( KSParseNode* if ( !context.value()->listValue().isEmpty() ) { - QString tmp( i18n("%1 arguments are not needed") ); - context.setException( new KSException( "TooManyArguments", tmp.arg( context.value()->listValue().count() ), node->getLineNo() ) ); + const QString tmp( i18n("1 argument is not needed", "%n arguments are not needed", context.value()->listValue().count() ) ); + context.setException( new KSException( "TooManyArguments", tmp, node->getLineNo() ) ); context.scope()->popLocalScope(); return false; ____________________________________ koffice mailing list koffice@mail.kde.org To unsubscribe please visit: https://mail.kde.org/mailman/listinfo/koffice