Skip to content

Commit 13d6db6

Browse files
authored
CLDR-19186 Update MessageFormat for v49 (#5278)
1 parent 86c8d99 commit 13d6db6

File tree

2 files changed

+10
-53
lines changed

2 files changed

+10
-53
lines changed

docs/ldml/tr35-messageFormat.md

Lines changed: 2 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ The LDML specification is divided into the following parts:
190190
* [Unicode Namespace](#unicode-namespace)
191191
* [Unicode Namespace Options](#unicode-namespace-options)
192192
* [`u:id`](#uid)
193-
* [`u:locale`](#ulocale)
194193
* [`u:dir`](#udir)
195194
* [Interchange Data Model](#interchange-data-model)
196195
* [Message Model](#message-model)
@@ -2915,7 +2914,7 @@ The function `:string` has no _options_.
29152914
> For example:
29162915
>
29172916
> ```
2918-
> {$s :string u:dir=ltr u:locale=fr-CA}
2917+
> {$s :string u:dir=ltr u:id=my-string}
29192918
> ```
29202919
29212920
##### `:string` Resolved Value
@@ -3210,12 +3209,8 @@ The _function_ `:offset` performs selection as described in [Number Selection](#
32103209
32113210
#### The `:currency` function
32123211
3213-
> [!IMPORTANT]
3214-
> The _function_ `:currency` has a status of **Draft**.
3215-
> It is proposed for inclusion in a future release of this specification and is not Stable.
3216-
32173212
The _function_ `:currency` is a _formatter_ for currency values,
3218-
which are a specialized form of numeric formatting.
3213+
which is a specialized form of numeric formatting.
32193214
32203215
##### `:currency` Operands
32213216
@@ -3387,10 +3382,6 @@ together with the resolved options' values.
33873382
33883383
#### The `:percent` function
33893384
3390-
> [!IMPORTANT]
3391-
> The _function_ `:percent` has a status of **Draft**.
3392-
> It is proposed for inclusion in a future release of this specification and is not Stable.
3393-
33943385
The function `:percent` is a selector and formatter for percent values.
33953386
33963387
##### `:percent` Operands
@@ -4232,48 +4223,6 @@ or can be resolved to a string without error.
42324223
For other values, a _Bad Option_ error is emitted
42334224
and the `u:id` _option_ and its _option value_ are ignored.
42344225
4235-
#### `u:locale`
4236-
4237-
> [!IMPORTANT]
4238-
> This _option_ has a status of **Draft**.
4239-
> It is proposed for inclusion in a future release and is not Stable.
4240-
4241-
Implementations MAY support this option.
4242-
4243-
Replaces the _locale_ defined in the _function context_ for this _expression_.
4244-
4245-
A comma-delimited list consisting of
4246-
well-formed [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
4247-
language tags,
4248-
or an implementation-defined list of such tags.
4249-
4250-
If this _option_ is set on _markup_, a _Bad Option_ error is emitted
4251-
and the `u:locale` _option_ and its _option value_ are ignored.
4252-
4253-
During processing, the `u:locale` _option_
4254-
MUST be removed from the resolved mapping of _options_
4255-
before calling the _function handler_.
4256-
4257-
Values matching the following ABNF are always accepted:
4258-
```abnf
4259-
u-locale-option = unicode_bcp47_locale_id *(o "," o unicode_bcp47_locale_id)
4260-
```
4261-
using `unicode_bcp47_locale_id` as defined for
4262-
[Unicode Locale Identifier](tr35.md#unicode_bcp47_locale_id).
4263-
4264-
Implementations MAY support additional language tags,
4265-
such as private-use or grandfathered tags,
4266-
or tags using `_` instead of `-` as a separator.
4267-
When the value of `u:locale` is set by a _variable_,
4268-
implementations MAY support non-string values otherwise representing locales.
4269-
4270-
Implementations MAY emit a _Bad Option_ error
4271-
and MAY ignore the `u:locale` _option_ and _option value_ as a whole
4272-
or any of the entries in the list of language tags.
4273-
This might be because the locale specified is not supported
4274-
or because the language tag is not well-formed,
4275-
not valid, or some other reason.
4276-
42774226
#### `u:dir`
42784227
42794228
Implementations SHOULD support this option.

docs/ldml/tr35-modifications.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ This is a partial document, describing only the changes to the LDML since the pr
3131
<!--
3232
Note: As of CLDR-18209, ALL changes to the spec require this file, tr35-modifications.md to be modified as well. If you are making a change that doesn't need to be noted, or is already noted, please simply add an HTML comment (such as this one) to the appropriate section. The comment will not be visible to viewers of the HTML page.
3333
-->
34+
35+
**Changes in LDML Version 49 (Differences from Version 48.1)**
36+
37+
### MessageFormat
38+
39+
* The `:currency` and `:percent` functions are now Stable, with the same implementations as previously.
40+
* The `u:locale` option (previously in Draft) is dropped from the specification.
41+
3442
<!-- Bump spec this-version and previous-version due to spec update in 48.1, update spec date -->
3543

3644
**Changes in LDML Version 48.1 (Differences from Version 48)**

0 commit comments

Comments
 (0)