mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 00:43:20 +01:00
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
|
||||
@returns the translation
|
||||
*/
|
||||
function translate($key, $vars=false )
|
||||
function translate($key, $vars=false, $not_found='*' )
|
||||
{
|
||||
if (!$vars)
|
||||
{
|
||||
@ -134,7 +134,7 @@
|
||||
{
|
||||
$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)));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user