Page MenuHomePhabricator

Split message breaks sentence structure in translations of "You have new messages"; lack of plural support
Closed, ResolvedPublic

Description

Currently, the OBOD (orange bar of doom) which shows up whenever a user's talk page is modified, uses the following messages for the sentence:
MediaWiki:Youhavenewmessagesfromusers[1] and Mediawiki:newmessageslinkplural[2]

These messages essentially make it impossible to correctly translate MediaWiki:Youhavenewmessagesfromusers into hindi (and by extension, probably other grammatically similar north Indian languages).

The problem is caused by lack of plural support in MediaWiki:Youhavenewmessagesfromusers for $1, ie the number of messages received. The difference is basically equivalent to the english difference of is/are, with sentence structure in MediaWiki:Youhavenewmessagesfromusers needed to be modified based on the number of new messages, which isn't possible since the message doesn't support plural over $1 (as far as I know).

In my opinion, it would be best that these messages be joined into one message, seeing that neither is used elsewhere (the doc doesn't specify any other uses for the messages).

[1]:http://translatewiki.net/w/i.php?title=MediaWiki:Youhavenewmessagesfromusers
[2]:http://translatewiki.net/w/i.php?title=MediaWiki:Newmessagesdifflinkplural


Version: 1.22.0
Severity: normal
Whiteboard: gci2013

Details

Reference
bz53897

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:00 AM
bzimport set Reference to bz53897.

I don't think that merging those messages in an option here because Newmessagesdifflinkplural is used in 2 more messages - youhavenewmessages[1] and youhavenewmessagesmanyusers[2].

[1]:http://translatewiki.net/w/i.php?title=MediaWiki:youhavenewmessages
[2]:http://translatewiki.net/w/i.php?title=MediaWiki:youhavenewmessagesmanyusers

Change 99000 had a related patch set uploaded by MegaAlex:
Add {{PLURAL: support for youhavenewmessagesfromusers and youhavenewmessages

https://gerrit.wikimedia.org/r/99000

Latest patch is the result of the Google Code-In task http://www.google-melange.com/gci/task/view/google/gci2013/5881421512048640 so please help reviewing this in a timely manner.

Change 99000 merged by jenkins-bot:
Add PLURAL support to youhavenewmessages*

https://gerrit.wikimedia.org/r/99000