Public Member Functions | Public Attributes

TrHelper Class Reference

Translation helper class. More...

Inheritance diagram for TrHelper:
AppHelper

List of all members.

Public Member Functions

 t ($s, $return=false)
 translate a string
 td ($d, $s, $return=false)
 Translate string using domain (i.e.
 translate ($s, $return=false)
 normal translation using i18n in cake php
 link ($s, $u)
 translate html->link url...
 translatePlural ($s, $plural, $count, $return=false)
 normal translation using i18n in cake php
 moduleField ($moduleName, $dbFieldName)
 return the field used in the module corresponding to a database field

Public Attributes

 $helpers = array('Html')

Detailed Description

Translation helper class.

Version:
$Revision$ $LastChangedBy$ $LastChangedDate$

$Id$ i18n - translation helper

Definition at line 35 of file tr.php.


Member Function Documentation

TrHelper::link ( s,
u 
)

translate html->link url...

Parameters:
string $s label
string $u url
Returns:
string html link

Definition at line 112 of file tr.php.

TrHelper::moduleField ( moduleName,
dbFieldName 
)

return the field used in the module corresponding to a database field

Parameters:
string $moduleName
string $dbFieldName
Returns:
string

Definition at line 137 of file tr.php.

TrHelper::t ( s,
return = false 
)

translate a string

Parameters:
string $s
boolean $return
Returns:
string translation

Definition at line 80 of file tr.php.

TrHelper::td ( d,
s,
return = false 
)

Translate string using domain (i.e.

plugin name)

Parameters:
string $d, domain to use
string $s, text to translate
boolean $return

Definition at line 90 of file tr.php.

TrHelper::translate ( s,
return = false 
)

normal translation using i18n in cake php

Parameters:
string $s
boolean $return
Returns:
string translation

Definition at line 101 of file tr.php.

TrHelper::translatePlural ( s,
plural,
count,
return = false 
)

normal translation using i18n in cake php

Parameters:
string $s Text to translate
string $plural
int $count
boolean $return Set to true to return translated string, or false to echo
Returns:
mixed translated string if $return is false string will be echoed

Definition at line 126 of file tr.php.


The documentation for this class was generated from the following file:
Generated on Fri Dec 11 2015 15:29:47 by Doxygen 1.7.1  BEditaBEdita 3.7 Corylus