[=plucked;25592]
Is it possible to implement a boolean trigger in the format for example switching between plural and singular phrases. Something like “You won {0} {round|rounds}” depending if argument {0} == 1 or != 1?
[/]
FText::Format does not “officially” support such a syntax, though ICU, which is the foundation of our internationalization systems, does.
We are planning a proper implementation of the plural form support, but the situation is a little more complicated then the example you’ve provided. The Unicode Common Locale Data Repository breaks language plural forms into 6 separate categories - Zero, One, Two, Few, Many, Other. Each language has different rules for deciding which category a number falls into, but all numbers for all languages fall into one of these 6 categories.
The plan is to simplify the problem down significantly. Ideally, users will only need to be aware of the plural requirements of their native language and implement for those. In doing so the Unreal Engine will be able to naturally slip in additional required forms for other languages during localization.