Last modified: 2013-12-07 23:05:58 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T55897, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 53897 - Split message breaks sentence structure in translations of "You have new messages"; lack of plural support
Split message breaks sentence structure in translations of "You have new mess...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
1.22.0
All All
: Normal normal (vote)
: 1.23.0 release
Assigned To: Alex Ivanov
gci2013
:
Depends on:
Blocks: plural 41348
  Show dependency treegraph
 
Reported: 2013-09-07 20:51 UTC by Siddhartha Ghai
Modified: 2013-12-07 23:05 UTC (History)
10 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Siddhartha Ghai 2013-09-07 20:51:17 UTC
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
Comment 1 Alex Ivanov 2013-12-03 23:28:10 UTC
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
Comment 2 Gerrit Notification Bot 2013-12-03 23:50:13 UTC
Change 99000 had a related patch set uploaded by MegaAlex:
Add {{PLURAL: support for youhavenewmessagesfromusers and youhavenewmessages

https://gerrit.wikimedia.org/r/99000
Comment 3 Andre Klapper 2013-12-05 12:32:35 UTC
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.
Comment 4 Gerrit Notification Bot 2013-12-07 22:59:03 UTC
Change 99000 merged by jenkins-bot:
Add PLURAL support to youhavenewmessages*

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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links