Translate ICU strings outside Rigi
Sometimes, source text contains ICU syntax that handles plurals and gender-specific grammatical forms across different languages. Example:
The boy carries {count, plural, one {an apple} other {# apples}} in his bag.Rigi can split ICU strings so that, during translation, you will see different segments referring to the same source phrase:
[one]The boy carries an apple in his bag.
[few]The boy carries {count} apples in his bag.
[many]The boy carries {count} apples in his bag.
[other]The boy carries {count} apples in his bag.For translation, Rigi replaces the number placeholder used in the source strings, #, with the argument name, for example, count.
When encountering such source segments, you need to do the following:
Translate every segment, even when they are identical in the source language.
Keep the number placeholder. If there is a
{count}in the source text, there should be a{count}in the translation too.Do not type # for the number. ICU reads
#as a number, but a#in a translation will be written by Rigi as a regular character.Type apostrophes, quotes, and braces as usual.