]> granicus.if.org Git - icu/commitdiff
ICU-10222 TimeUnitFormat to look under units/duration for time units instead of just...
authorTravis Keep <keep94@gmail.com>
Thu, 11 Jul 2013 22:19:13 +0000 (22:19 +0000)
committerTravis Keep <keep94@gmail.com>
Thu, 11 Jul 2013 22:19:13 +0000 (22:19 +0000)
X-SVN-Rev: 33917

icu4c/source/i18n/tmutfmt.cpp

index 347a6a9d65e5bab6232c26c2272084ea1d824dc1..5ce65314d7d3c1fc2dc27d496859c844fc5615cf 100644 (file)
@@ -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);