forked from extern/egroupware
new param to translate, for string to add if no translation present, default '*'
This commit is contained in:
parent
e291aa7339
commit
33389df33d
@ -124,7 +124,7 @@
|
|||||||
@abstract translates a phrase and evtl. substitute some variables
|
@abstract translates a phrase and evtl. substitute some variables
|
||||||
@returns the translation
|
@returns the translation
|
||||||
*/
|
*/
|
||||||
function translate($key, $vars=false )
|
function translate($key, $vars=false, $not_found='*' )
|
||||||
{
|
{
|
||||||
if (!$vars)
|
if (!$vars)
|
||||||
{
|
{
|
||||||
@ -134,7 +134,7 @@
|
|||||||
{
|
{
|
||||||
$this->init();
|
$this->init();
|
||||||
}
|
}
|
||||||
$ret = $key.'*'; // save key if we dont find a translation
|
$ret = $key.$not_found; // save key if we dont find a translation
|
||||||
|
|
||||||
$key = strtolower(trim(substr($key,0,MAX_MESSAGE_ID_LENGTH)));
|
$key = strtolower(trim(substr($key,0,MAX_MESSAGE_ID_LENGTH)));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user