From 89397bab166fa28e2dd9e7886087661757a44760 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Sun, 19 Oct 2014 11:47:13 +0200 Subject: [PATCH] MessageFormat: use language and ignore formatting conventions. The formatting conventions shouldn't change the rules used for singular/plural. --- src/kits/locale/MessageFormat.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/kits/locale/MessageFormat.cpp b/src/kits/locale/MessageFormat.cpp index ccb3bab07d..50edeee84e 100644 --- a/src/kits/locale/MessageFormat.cpp +++ b/src/kits/locale/MessageFormat.cpp @@ -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);