Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 28d352e

Browse files
committed
Merge pull request zendframework#432 from froschdesign/master
Fixes zendframework#430 - zh_HK locale cannot identify Integer
2 parents c7eb8ab + aad097b commit 28d352e

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

library/Zend/Locale.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class Zend_Locale
6060
'uz_UZ' => 'uz_Latn_UZ',
6161
'vai_LR' => 'vai_Latn_LR',
6262
'zh_CN' => 'zh_Hans_CN',
63-
'zh_HK' => 'zh_Hans_HK',
63+
'zh_HK' => 'zh_Hant_HK',
6464
'zh_MO' => 'zh_Hans_MO',
6565
'zh_SG' => 'zh_Hans_SG',
6666
'zh_TW' => 'zh_Hant_TW',

tests/Zend/Locale/FormatTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,4 +1137,14 @@ public function testZendLocaleDisableCacheShouldNotOverwritten()
11371137

11381138
$this->assertFalse(Zend_Locale_Data::hasCache());
11391139
}
1140+
1141+
/**
1142+
* @group GH-430
1143+
*/
1144+
public function testIsIntegerForLocaleZhHK()
1145+
{
1146+
$this->assertTrue(
1147+
Zend_Locale_Format::isInteger('1', array('locale' => 'zh_HK'))
1148+
);
1149+
}
11401150
}

0 commit comments

Comments
 (0)