|
|
@@ -241,6 +241,14 @@ class Zend_Locale_Data
|
|
|
// 3. -> zh
|
|
|
// 4. -> root
|
|
|
if (($locale != 'root') && ($result)) {
|
|
|
+ // Search for parent locale
|
|
|
+ if (false !== strpos($locale, '_')) {
|
|
|
+ $parentLocale = self::getContent($locale, 'parentlocale');
|
|
|
+ if ($parentLocale) {
|
|
|
+ $temp = self::_getFile($parentLocale, $path, $attribute, $value, $temp);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
$locale = substr($locale, 0, -strlen(strrchr($locale, '_')));
|
|
|
if (!empty($locale)) {
|
|
|
$temp = self::_getFile($locale, $path, $attribute, $value, $temp);
|