From 3cb132047d10212ad32d5a15edb2522cc1f0a213 Mon Sep 17 00:00:00 2001 From: Travis Keep Date: Thu, 11 Jul 2013 22:19:13 +0000 Subject: [PATCH] ICU-10222 TimeUnitFormat to look under units/duration for time units instead of just units. X-SVN-Rev: 33917 --- icu4c/source/i18n/tmutfmt.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/icu4c/source/i18n/tmutfmt.cpp b/icu4c/source/i18n/tmutfmt.cpp index 347a6a9d65e..5ce65314d7d 100644 --- a/icu4c/source/i18n/tmutfmt.cpp +++ b/icu4c/source/i18n/tmutfmt.cpp @@ -1,6 +1,6 @@ /* ******************************************************************************* - * Copyright (C) 2008-2012, Google, International Business Machines Corporation + * Copyright (C) 2008-2013, Google, International Business Machines Corporation * and others. All Rights Reserved. ******************************************************************************* */ @@ -440,6 +440,7 @@ TimeUnitFormat::readFromCurrentLocale(UTimeUnitFormatStyle style, const char* ke UResourceBundle *rb, *unitsRes; rb = ures_open(NULL, fLocale.getName(), &status); unitsRes = ures_getByKey(rb, key, NULL, &status); + unitsRes = ures_getByKey(unitsRes, "duration", unitsRes, &status); if (U_FAILURE(status)) { ures_close(unitsRes); ures_close(rb); -- 2.40.0