https://bugzilla.wikimedia.org/show_bug.cgi?id=42497

       Web browser: ---
             Bug #: 42497
           Summary: newmessageslinkplural and newmessagesdifflinkplural
                    shouldn't use fake values for the number of changes
           Product: MediaWiki
           Version: 1.21-git
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: i18n
          Severity: normal
          Priority: Unprioritized
         Component: Internationalization
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---


newmessageslinkplural and newmessagesdifflinkplural (introduced in I8870111802
to fix bug 12701) both have a single parameter, that one could expect to be the
number of or (respectively) messages or changes. However, this parameter can
only take values of '1' (when there's one message/change) or '2' (when there
are more). While this behavior is documented, it's obviously confusing, and I
just had to fix translations of these messages to Polish[1][2].

As I assume obtaining correct values is impossible (too database-intensive?),
both messages should be split into two – one for singular and one for plural
form. If this is considered such a very bad practice, then at least we should
usea different value than '2' to make errors in translations more obvious –
'999' would do.

[1]
http://translatewiki.net/w/i.php?title=MediaWiki:Newmessageslinkplural/pl&diff=prev&oldid=4351303
[2]
http://translatewiki.net/w/i.php?title=MediaWiki:Newmessagesdifflinkplural/pl&diff=prev&oldid=4351311

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to