Skip to content

Commit

Permalink
MessageFormat: use language and ignore formatting conventions.
Browse files Browse the repository at this point in the history
The formatting conventions shouldn't change the rules used for singular/plural.
  • Loading branch information
pulkomandy committed Oct 19, 2014
1 parent fc1d093 commit 89397ba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/kits/locale/MessageFormat.cpp
Expand Up @@ -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);

Expand Down

0 comments on commit 89397ba

Please sign in to comment.