Permalink
Browse files

fixing failing i18n testcase, caused by setting $category parameter f…

…or __c(), __dc() and __dcn() as LC_MONETARY instead of numeric value
  • Loading branch information...
1 parent 1ee9771 commit 3dbae37aadc903f380647d9454e25635d3e560ab @ceeram ceeram committed with markstory Oct 22, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 cake/tests/cases/libs/i18n.test.php
@@ -2557,7 +2557,7 @@ function testCategoryThenSingular() {
* @access private
* @return void
*/
- function __domainCategorySingular($domain = 'test_plugin', $category = LC_MONETARY) {
+ function __domainCategorySingular($domain = 'test_plugin', $category = 3) {
$singular = __dc($domain, 'Plural Rule 1', $category, true);
return $singular;
}
@@ -2567,7 +2567,7 @@ function __domainCategorySingular($domain = 'test_plugin', $category = LC_MONETA
* @access private
* @return void
*/
- function __domainCategoryPlural($domain = 'test_plugin', $category = LC_MONETARY) {
+ function __domainCategoryPlural($domain = 'test_plugin', $category = 3) {
$plurals = array();
for ($number = 0; $number <= 25; $number++) {
$plurals[] = sprintf(__dcn($domain, '%d = 1', '%d = 0 or > 1', (float)$number, $category, true), (float)$number);
@@ -2603,7 +2603,7 @@ function __domainPlural($domain = 'test_plugin') {
* @access private
* @return void
*/
- function __category($category = LC_MONETARY) {
+ function __category($category = 3) {
$singular = __c('Plural Rule 1', $category, true);
return $singular;
}

0 comments on commit 3dbae37

Please sign in to comment.