From 33389df33db6bbd756b5c9b798b76b7618517b59 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 10 Oct 2003 00:07:20 +0000 Subject: [PATCH] new param to translate, for string to add if no translation present, default '*' --- phpgwapi/inc/class.translation_sql.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.translation_sql.inc.php b/phpgwapi/inc/class.translation_sql.inc.php index 53c4ec7476..be1bf69c07 100644 --- a/phpgwapi/inc/class.translation_sql.inc.php +++ b/phpgwapi/inc/class.translation_sql.inc.php @@ -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)));