Skip to content
Permalink
Browse files

Fixed wrong documentation.

  • Loading branch information...
jrbasso committed Dec 4, 2010
1 parent 0cf02ec commit f4d4811c96a6468f9a175a893b060debbd1af149
Showing with 7 additions and 14 deletions.
  1. +7 −14 cake/basics.php
@@ -461,8 +461,7 @@ function stripslashes_deep($values) {
* Returns a translated string if one is found; Otherwise, the submitted message.
*
* @param string $singular Text to translate
* @param boolean $return Set to true to return translated string, or false to echo
* @return mixed translated string if $return is false string will be echoed
* @return mixed translated string
* @link http://book.cakephp.org/view/1121/__
*/
function __($singular) {
@@ -482,8 +481,7 @@ function __($singular) {
* @param string $singular Singular text to translate
* @param string $plural Plural text
* @param integer $count Count
* @param boolean $return true to return, false to echo
* @return mixed plural form of translated string if $return is false string will be echoed
* @return mixed plural form of translated string
*/
function __n($singular, $plural, $count) {
if (!$singular) {
@@ -500,8 +498,7 @@ function __n($singular, $plural, $count) {
*
* @param string $domain Domain
* @param string $msg String to translate
* @param string $return true to return, false to echo
* @return translated string if $return is false string will be echoed
* @return translated string
*/
function __d($domain, $msg) {
if (!$msg) {
@@ -522,8 +519,7 @@ function __d($domain, $msg) {
* @param string $singular Singular string to translate
* @param string $plural Plural
* @param integer $count Count
* @param boolean $return true to return, false to echo
* @return plural form of translated string if $return is false string will be echoed
* @return plural form of translated string
*/
function __dn($domain, $singular, $plural, $count) {
if (!$singular) {
@@ -555,8 +551,7 @@ function __dn($domain, $singular, $plural, $count) {
* @param string $domain Domain
* @param string $msg Message to translate
* @param integer $category Category
* @param boolean $return true to return, false to echo
* @return translated string if $return is false string will be echoed
* @return translated string
*/
function __dc($domain, $msg, $category) {
if (!$msg) {
@@ -592,8 +587,7 @@ function __dc($domain, $msg, $category) {
* @param string $plural Plural
* @param integer $count Count
* @param integer $category Category
* @param boolean $return true to return, false to echo
* @return plural form of translated string if $return is false string will be echoed
* @return plural form of translated string
*/
function __dcn($domain, $singular, $plural, $count, $category) {
if (!$singular) {
@@ -621,8 +615,7 @@ function __dcn($domain, $singular, $plural, $count, $category) {
*
* @param string $msg String to translate
* @param integer $category Category
* @param string $return true to return, false to echo
* @return translated string if $return is false string will be echoed
* @return translated string
*/
function __c($msg, $category) {
if (!$msg) {

0 comments on commit f4d4811

Please sign in to comment.
You can’t perform that action at this time.