L20n by example

9. Additional Information

Traits are useful beyond just value variants. They can be also used to describe parameters of the entity that can be then used in other selectors.

Imagine an entity brandName that can be either Firefox or Aurora.The former is masculine, while the latter is feminine, so sentences that refer to this entity may want to branch depending on the gender of it.

brandName = Firefox [gender] masculine opened-new-window = { brandName[gender] -> *[masculine] { brandName } otworzyl nowe okno. [feminine] { brandName } otworzyla nowe okno. }