MessageFormat: use language and ignore formatting conventions.
The formatting conventions shouldn't change the rules used for singular/plural.
This commit is contained in:
@@ -108,9 +108,7 @@ BMessageFormat::_Initialize(const UnicodeString& pattern)
|
|||||||
{
|
{
|
||||||
UErrorCode error = U_ZERO_ERROR;
|
UErrorCode error = U_ZERO_ERROR;
|
||||||
Locale* icuLocale
|
Locale* icuLocale
|
||||||
= fConventions.UseStringsFromPreferredLanguage()
|
= BLanguage::Private(&fLanguage).ICULocale();
|
||||||
? BLanguage::Private(&fLanguage).ICULocale()
|
|
||||||
: BFormattingConventions::Private(&fConventions).ICULocale();
|
|
||||||
|
|
||||||
fFormatter = new MessageFormat(pattern, *icuLocale, error);
|
fFormatter = new MessageFormat(pattern, *icuLocale, error);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user