Wrong locale name.

This commit is contained in:
Andrei Zmievski 2007-04-10 22:44:57 +00:00
parent a8e133eafa
commit 324cdbf874

View file

@ -191,7 +191,7 @@ PHP_FUNCTION(collator_create)
ucoll = ucol_open(collator_name, &status); ucoll = ucol_open(collator_name, &status);
if (U_FAILURE(status)) { if (U_FAILURE(status)) {
/* UTODO handle error case properly */ /* UTODO handle error case properly */
zend_error(E_ERROR, "Could not open collator for locale %s", UG(default_locale)); zend_error(E_ERROR, "Could not open collator for locale %s", collator_name);
return; return;
} }
collator_set_wrapper(object, zend_collator_create(ucoll) TSRMLS_CC); collator_set_wrapper(object, zend_collator_create(ucoll) TSRMLS_CC);
@ -199,7 +199,7 @@ PHP_FUNCTION(collator_create)
/* }}} */ /* }}} */
/* {{{ proto int Collator::compare(string str1, string str2) U /* {{{ proto int Collator::compare(string str1, string str2) U
Compare two strings using collation */ Compare two strings using collation }}} */
/* {{{ proto int collator_compare(Collator coll, string str1, string str2) U /* {{{ proto int collator_compare(Collator coll, string str1, string str2) U
Compare two strings using collation */ Compare two strings using collation */
PHP_FUNCTION(collator_compare) PHP_FUNCTION(collator_compare)
@ -218,7 +218,7 @@ PHP_FUNCTION(collator_compare)
/* }}} */ /* }}} */
/* {{{ proto array Collator::sort(array input) U /* {{{ proto array Collator::sort(array input) U
Sort an array using collation */ Sort an array using collation }}} */
/* {{{ proto array collator_sort(Collator coll, array input) U /* {{{ proto array collator_sort(Collator coll, array input) U
Sort an array using collation */ Sort an array using collation */
PHP_FUNCTION(collator_sort) PHP_FUNCTION(collator_sort)
@ -248,7 +248,7 @@ PHP_FUNCTION(collator_sort)
/* }}} */ /* }}} */
/* {{{ proto void Collator::setStrength(int strength) U /* {{{ proto void Collator::setStrength(int strength) U
Set the collation strength */ Set the collation strength }}} */
/* {{{ proto void collator_set_strength(Collator coll, int strength) U /* {{{ proto void collator_set_strength(Collator coll, int strength) U
Set the collation strength */ Set the collation strength */
PHP_FUNCTION(collator_set_strength) PHP_FUNCTION(collator_set_strength)
@ -266,7 +266,7 @@ PHP_FUNCTION(collator_set_strength)
/* }}} */ /* }}} */
/* {{{ proto int Collator::getStrength() U /* {{{ proto int Collator::getStrength() U
Returns the current collation strength */ Returns the current collation strength }}} */
/* {{{ proto int collator_get_strength(Collator coll) U /* {{{ proto int collator_get_strength(Collator coll) U
Returns the current collation strength */ Returns the current collation strength */
PHP_FUNCTION(collator_get_strength) PHP_FUNCTION(collator_get_strength)
@ -283,7 +283,7 @@ PHP_FUNCTION(collator_get_strength)
/* }}} */ /* }}} */
/* {{{ proto bool Collator::setAttribute(int attribute, int value) U /* {{{ proto bool Collator::setAttribute(int attribute, int value) U
Set a collation attribute */ Set a collation attribute }}} */
/* {{{ proto bool collator_set_attribute(Collator coll, int attribute, int value) U /* {{{ proto bool collator_set_attribute(Collator coll, int attribute, int value) U
Set a collation attribute */ Set a collation attribute */
PHP_FUNCTION(collator_set_attribute) PHP_FUNCTION(collator_set_attribute)
@ -305,7 +305,7 @@ PHP_FUNCTION(collator_set_attribute)
/* {{{ proto int Collator::getAttribute(int attribute) U /* {{{ proto int Collator::getAttribute(int attribute) U
Returns a collation attribute */ Returns a collation attribute }}} */
/* {{{ proto int collator_get_attribute(Collator coll, int attribute) U /* {{{ proto int collator_get_attribute(Collator coll, int attribute) U
Returns a collation attribute */ Returns a collation attribute */
PHP_FUNCTION(collator_get_attribute) PHP_FUNCTION(collator_get_attribute)