Page MenuHomePhabricator

Digital Garden: Contemplate unifying multilingual information in the About Widget for types and functions as well
Open, Needs TriagePublic

Description

Description

All objects have metadata/multilingual information as part of their Z2/Persistent Object wrapper:

  • Z2K3/Name
  • Z2K4/Alias
  • Z2K5/Description

However, other to objects also have multilingual information as part of their inner object:

  • Z8/Function has multilingual information adding labels to its Argument declarations (Z8K1.n.Z17K3)
  • Z4/Type has multilingual information adding labels to its Keys (Z4K1.n.Z3K3)
  • Z50/Error type has multilingual information adding labels to its Keys (Z50K1.n.Z3K3)

Currently, the way to add multilingual information for Z2 keys is unified in the About dialog, but to add multilingual information related to its inner keys, the contributor must go to the edit page and navigate the object differently.

Question

Could it be possible to include in the About widget all the related multilingual information of the object?

This would mean that if we are editing a Function, the About widget would also have space for adding/editing the labels of argument declarations. Similarly, when editing a Type object, we would be able to edit the key labels directly in the About widget.

Challenges

  • While there's only one name, one description and one set of aliases per language, in the case of arguments (for functions) or keys (for types) there might be zero, one, or n (unlimited!!)
    • shall we put these fields in the same dialog window?
    • can we maybe separate them into two different tabs? one for name-description-aliases, and another tab for "keys" or "inputs"
  • There is no label to identify the field. For example, for the type Z11, there are two keys: Z11K1 and Z11K2
    • we label the field with "key n"
      • key 1: language
      • key 2: text
    • what about adding the type information?
      • key 1 (Language): language
      • key 2 (String): text

Screenshot from 2023-09-04 11-24-06.png (726×612 px, 57 KB)

Screenshot from 2023-09-04 11-25-52.png (716×611 px, 53 KB)


Completion checklist