Page MenuHomePhabricator

[Story] Use localized unit symbols
Open, NormalPublic

Description

Instead of full unit names (e.g. "Kilometer"@de) we should support unit symbols, like km. Note that unit symbols need to be localizedable ("km/h"@de vs "KPH"@en).

There are two options for implementing this:

  • System messages, e.g. to wikidata-unit-symbol-Q828224 = 'km'.
  • Statements using a multilingual text value (like P558, but localizable). Could use the wb_property_info table for efficient access.

T92380: Implement (dumb) formatter for quantities with units based on URIs covers localized display of units based on item labels.

TBD: 3rd party clients must have an efficient way to query and use localized unit labels/symbols.

Event Timeline

daniel created this task.Dec 9 2014, 1:05 PM
daniel raised the priority of this task from to Normal.
daniel updated the task description. (Show Details)
daniel changed Security from none to None.
daniel added subscribers: Aklapper, daniel.
Snipre added a subscriber: Snipre.Jan 7 2015, 3:18 PM
Snipre removed a subscriber: Snipre.
daniel renamed this task from Localization of units in QuantityValueFormatter to use localized unit symbols in QuantityValueFormatter.May 23 2015, 2:40 PM
daniel updated the task description. (Show Details)
Jonas renamed this task from use localized unit symbols in QuantityValueFormatter to [Story] Use localized unit symbols.Aug 28 2015, 2:15 PM
Jonas updated the task description. (Show Details)
mxn added a subscriber: mxn.Sep 10 2015, 6:29 AM
Ayack added a subscriber: Ayack.Nov 29 2015, 12:34 PM
Ltrlg added a subscriber: Ltrlg.Mar 29 2017, 5:18 PM