[Konversation-devel] [konversation] [Bug 336256] New: bad plural forms in channel mode message

Sebastien Renard renard at kde.org
Sun Jun 15 10:40:41 UTC 2014


https://bugs.kde.org/show_bug.cgi?id=336256

            Bug ID: 336256
           Summary: bad plural forms in channel mode message
    Classification: Unclassified
           Product: konversation
           Version: Git
          Platform: Compiled Sources
                OS: Linux
            Status: UNCONFIRMED
          Severity: minor
          Priority: NOR
         Component: general
          Assignee: konversation-devel at kde.org
          Reporter: renard at kde.org

When updating chan mode about user limit, the message is always in plural, even
if the parameter is 1.
Ex.  You set the channel limit to 1 nicks (<= should be nick).

Looking at source code, the plural call is good : 
 if (fromMe) message = i18np("You set the channel limit to 1 nick.", "You set
the channel limit to %1 nicks.", parameter);

But parameter is QString, so it always considered as "many". A simple change
with a .toInt() remove the bug. 

Reproducible: Always

Steps to Reproduce:
1. Open a new chan to be operator
2. Open chan mode menu
3. Set user limit to 1 and look at message
Actual Results:  
 You set the channel limit to 1 nicks

Expected Results:  
 You set the channel limit to 1 nick

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Konversation-devel mailing list