Page MenuHomePhabricator

[Story] Use localized unit symbols
Open, MediumPublic

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 raised the priority of this task from to Medium.
daniel updated the task description. (Show Details)
daniel changed Security from none to None.
daniel added subscribers: Aklapper, daniel.
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)