Page MenuHomePhabricator

"ms", "MiB", and possibly other units are hardcoded, untranslatable, and incorrectly shown in RTL in Wikifunctions' Function call metadata dialog
Open, LowestPublicBUG REPORT

Description

See the screenshot:

צילום מסך מ־2024-08-17 08-59-50.png (747×522 px, 51 KB)

To get here, go to https://www.wikifunctions.org/view/he/Z18785 (it's supposed to be all in Hebrew), and click on פרטים (details) in the מימושים (Implementations) box.

"Duration", "CPU usage", and "Memory usage" are shown in units of ms and MiB. Because of the general RTL orientation of the page, the unit appears on the left side of the number, which is wrong. The correct options would be:

  • To show it with units in English, but to force its container to dir="ltr" (or dir="auto", which produces the same result in practice).
  • To allow the translation as messages: "$1 ms", "$1 MiB". (They can be optional.)

Event Timeline

These are all waiting on Wikidata hook-up so that they can be displayed dynamically with a Wikifunctions call.

This is now possible for us to create inline ZObjects of unitful Wikidata-style values. We'd want to be careful about rendering these on the front-end too, but it's no longer blocked by the Epic work.