Skip to content

Commit

Permalink
Fixed wrong documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbasso committed Dec 4, 2010
1 parent 0cf02ec commit f4d4811
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions cake/basics.php
Expand Up @@ -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) {
Expand All @@ -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) {
Expand All @@ -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) {
Expand All @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit f4d4811

Please sign in to comment.