From a0deac9ca2b975bef2efacaca5544c9bad5a8851 Mon Sep 17 00:00:00 2001 From: Eemeli Aro Date: Mon, 27 Nov 2023 15:58:50 +0200 Subject: [PATCH] Define function aliases in registry, initially including :integer --- spec/registry.dtd | 14 +++++++++++++- spec/registry.md | 11 +++++++++++ spec/registry.xml | 5 +++++ 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/spec/registry.dtd b/spec/registry.dtd index 210a6bc13d..b2f99e030f 100644 --- a/spec/registry.dtd +++ b/spec/registry.dtd @@ -1,6 +1,6 @@ - + @@ -32,3 +32,15 @@ + + + + + + diff --git a/spec/registry.md b/spec/registry.md index fb41a532dd..a2b43a6b45 100644 --- a/spec/registry.md +++ b/spec/registry.md @@ -65,6 +65,11 @@ Read-only options (the `readonly` attribute) can be displayed to translators in Matching-function signatures additionally include one or more `` elements to define the keys against which they can match when used as selectors. +Functions may also include `` definitions, +which provide shorthands for commonly used option baskets. +An _alias name_ may be used equivalently to a _function name_ in messages. +Its `` values are always set, and may not be overridden in message annotations. + ## Example The following `registry.xml` is an example of a registry file @@ -116,6 +121,12 @@ For the sake of brevity, only `locales="en"` is considered.