فهرست منبع

Merge pull request #432 from froschdesign/master

Fixes #430 - zh_HK locale cannot identify Integer
Rob Allen 11 سال پیش
والد
کامیت
28d352ea29
2فایلهای تغییر یافته به همراه11 افزوده شده و 1 حذف شده
  1. 1 1
      library/Zend/Locale.php
  2. 10 0
      tests/Zend/Locale/FormatTest.php

+ 1 - 1
library/Zend/Locale.php

@@ -60,7 +60,7 @@ class Zend_Locale
         'uz_UZ'  => 'uz_Latn_UZ',
         'vai_LR' => 'vai_Latn_LR',
         'zh_CN' => 'zh_Hans_CN',
-        'zh_HK' => 'zh_Hans_HK',
+        'zh_HK' => 'zh_Hant_HK',
         'zh_MO' => 'zh_Hans_MO',
         'zh_SG' => 'zh_Hans_SG',
         'zh_TW' => 'zh_Hant_TW',

+ 10 - 0
tests/Zend/Locale/FormatTest.php

@@ -1137,4 +1137,14 @@ class Zend_Locale_FormatTest extends PHPUnit_Framework_TestCase
 
         $this->assertFalse(Zend_Locale_Data::hasCache());
     }
+
+    /**
+     * @group GH-430
+     */
+    public function testIsIntegerForLocaleZhHK()
+    {
+        $this->assertTrue(
+            Zend_Locale_Format::isInteger('1', array('locale' => 'zh_HK'))
+        );
+    }
 }