]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix another new Chinese locale ID (<rdar://problem/22086642>)
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Thu, 6 Aug 2015 14:08:01 +0000 (14:08 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Thu, 6 Aug 2015 14:08:01 +0000 (14:08 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12835 a1ca3aef-8c08-0410-bb20-df032aa958be

CHANGES.txt
cups/language.c

index 41cefefc757fbca9b48540233c8cea4ecca7fbaa..4da7ab80a3d3f487b6084a21d20e8fded28f1516 100644 (file)
@@ -3,8 +3,8 @@ CHANGES.txt - 2.1.0 - 2015-08-06
 
 CHANGES IN CUPS V2.1.0
 
-       - The new Hong Kong Chinese locale did not correctly use Taiwan Chinese
-         as a fallback (<rdar://problem/22130168>)
+       - Support new Chinese locale IDs and their correct fallback locales
+         (<rdar://problem/22086642>, <rdar://problem/22130168>)
        - "make check" incorrectly reported an expectation of 18 warning
          messages when 8 were expected (STR #4684)
 
index de6fdeabda9c859c5e28d628c61fee22ea517b34..00c740054596785f26096ba2db526b1d3c50911d 100644 (file)
@@ -1324,6 +1324,18 @@ appleMessageLoad(const char *locale)     /* I - Locale ID */
   snprintf(filename, sizeof(filename),
            CUPS_BUNDLEDIR "/Resources/%s.lproj/cups.strings",
           _cupsAppleLanguage(locale, applelang, sizeof(applelang)));
+
+  if (access(filename, 0))
+  {
+   /*
+    * <rdar://problem/22086642>
+    *
+    * Try with original locale string...
+    */
+
+    snprintf(filename, sizeof(filename), CUPS_BUNDLEDIR "/Resources/%s.lproj/cups.strings", locale);
+  }
+
   DEBUG_printf(("1appleMessageLoad: filename=\"%s\"", filename));
 
   if (access(filename, 0))