MessageFormat: use language and ignore formatting conventions.

The formatting conventions shouldn't change the rules used for singular/plural.
This commit is contained in:
Adrien Destugues 2014-10-19 11:47:13 +02:00
parent fc1d09374e
commit 89397bab16

View File

@ -108,9 +108,7 @@ BMessageFormat::_Initialize(const UnicodeString& pattern)
{
UErrorCode error = U_ZERO_ERROR;
Locale* icuLocale
= fConventions.UseStringsFromPreferredLanguage()
? BLanguage::Private(&fLanguage).ICULocale()
: BFormattingConventions::Private(&fConventions).ICULocale();
= BLanguage::Private(&fLanguage).ICULocale();
fFormatter = new MessageFormat(pattern, *icuLocale, error);