Last modified: 2013-10-14 00:20:25 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 4737 - Minor grammar problem with MediaWiki:Viewcount
Minor grammar problem with MediaWiki:Viewcount
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
1.7.x
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-01-23 18:09 UTC by Patrick Collison
Modified: 2013-10-14 00:20 UTC (History)
2 users (show)

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


Attachments

Description Patrick Collison 2006-01-23 18:09:12 UTC
When the view count of a page=1, the associated "viewcount" string in the translation is still in plural form, so you end up with something like "This page has 
been accessed 1 times". Minor, but pretty easy to fix. Easiest fix may be to add a second translation string, e.g. viewcount_s (for singular) that's used when 
present.
Comment 1 Edward Z. Yang 2006-01-24 21:33:01 UTC
Note that by editing [[MediaWiki:Viewcount]], you can simply put "time(s)".
Comment 2 lɛʁi לערי ריינהארט 2006-01-26 22:41:57 UTC
Hallo!

This is similar to [[MediaWiki:Categories]] and 
[[MediaWiki:Categories1]].

Some LanguagesXx.php support {{PLURAL:foo}}.

If [[MediaWiki:Viewcount]] suports wikitext why not use 
This page has been accessed $1 {{PLURAL:$1|time}}.
or {{PLURAL:time|$1}} depending on the syntax.

best regards reinhardt [[user:gangleri]]
Comment 3 Antoine "hashar" Musso (WMF) 2006-04-28 21:48:07 UTC
I tried patching mw trunk using the following patch:


Index: languages/Messages.php
===================================================================
--- languages/Messages.php      (revision 13910)
+++ languages/Messages.php      (working copy)
@@ -211,7 +211,7 @@
 'redirectedfrom' => '(Redirected from $1)',
 'redirectpagesub' => 'Redirect page',
 'lastmodified' => 'This page was last modified $1.',
-'viewcount'            => 'This page has been accessed $1 times.',
+'viewcount'            => 'This page has been accessed $1
{{plural:$1|time|times}}.',
 'copyright'    => 'Content is available under $1.',
 'protectedpage' => 'Protected page',
 'administrators' => 'Project:Administrators',


But it didnt work! (always showing 'times').
Comment 4 Niklas Laxström 2006-04-29 14:06:27 UTC
Should be fixed in the trunk now, thanks to help of Ashar.
Comment 5 Rich Farmbrough 2007-01-16 15:09:55 UTC
I have put 
This page has been accessed {{plural:$1|once|$1 times}}.
as a slight improvement, although we don't see it.

Ideally a little work with expr: would give a robust soln.

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


Navigation
Links