Goal
Allow for alternative syntax for nested variants.
Description
Nested variants are currently hard to write and result in some repetition. ICU's experience with MessageFormat also suggests that it is easier for localizers to work with full sentences as variants.
The proposed solution is to allow lists as selectors in select-expression and as variant keys:
key = { $items, $buckets ->
[one, one] Found 1 item in 1 bucket.
[one, other] Found 1 item in { $buckets } buckets.
[other, one] Found { $items} items in 1 bucket.
[other, other] Found { $items} items in { $buckets } buckets.
}
Dependencies
#2, #3.
Discussion
https://groups.google.com/forum/#!topic/mozilla.tools.l10n/YBNCSp7J0zU
Goal
Allow for alternative syntax for nested variants.
Description
Nested variants are currently hard to write and result in some repetition. ICU's experience with MessageFormat also suggests that it is easier for localizers to work with full sentences as variants.
The proposed solution is to allow lists as selectors in
select-expressionand as variant keys:Dependencies
#2, #3.
Discussion
https://groups.google.com/forum/#!topic/mozilla.tools.l10n/YBNCSp7J0zU