From 28b6f66a77d660412766b6da88d01377cbdd04a1 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Mon, 11 Apr 2016 15:00:58 +0200 Subject: Fixed bug #70484 selectordinal doesn't work with named parameters --- ext/intl/msgformat/msgformat_helpers.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext/intl/msgformat/msgformat_helpers.cpp') diff --git a/ext/intl/msgformat/msgformat_helpers.cpp b/ext/intl/msgformat/msgformat_helpers.cpp index ed63105fa7..ce7899edd9 100644 --- a/ext/intl/msgformat/msgformat_helpers.cpp +++ b/ext/intl/msgformat/msgformat_helpers.cpp @@ -264,6 +264,10 @@ static HashTable *umsg_parse_format(MessageFormatter_object *mfo, type = Formattable::kDouble; } else if (argType == UMSGPAT_ARG_TYPE_SELECT) { type = Formattable::kString; +#if U_ICU_VERSION_MAJOR_NUM >= 50 + } else if (argType == UMSGPAT_ARG_TYPE_SELECTORDINAL) { + type = Formattable::kDouble; +#endif } else { type = Formattable::kString; } -- cgit v1.2.1