Last modified: 2014-09-18 13:20:53 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 T72838, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70838 - The message wikibase-propertyedittool-counter-entrieslabel needs to include the number itself
The message wikibase-propertyedittool-counter-entrieslabel needs to include t...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Wikidata bugs
u=dev c=frontend p=0
: i18n
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-15 08:00 UTC by Amir E. Aharoni
Modified: 2014-09-18 13:20 UTC (History)
3 users (show)

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


Attachments

Description Amir E. Aharoni 2014-09-15 08:00:29 UTC
The current value of the wikibase-propertyedittool-counter-entrieslabel message is "{{PLURAL:$1|entry|entries}}".

The actual number is inserted using other messages: wikibase-ui-pendingquantitycounter-nonpending and wikibase-ui-pendingquantitycounter-pending.

In some languages the number affects not just the form of the subject ("entry" or "entries"), but also the place of the number in the expression. For example, in Hebrew "one" comes after the word, but other number come before it.

By itself this could be fixed by translating ibase-ui-pendingquantitycounter-nonpending and wikibase-ui-pendingquantitycounter-pending to Hebrew, but these messages can have not only entries (wikibase-propertyedittool-counter-entrieslabel), but also references (wikibase-statementview-referencesheading-pendingcountersubject), and the grammar of numbers used for the words entries and references is different.

The best solution would be to let MediaWiki handle the grammar and the number using the messages wikibase-propertyedittool-counter-entrieslabel and wikibase-statementview-referencesheading-pendingcountersubject, rather than doing it in functions in the Wikibase extension (the one I found is wb.utilities.ui.buildPendingCounter(), and it gets complicated further).

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


Navigation
Links