|
From: Benjamin C. <bc...@us...> - 2004-05-18 12:59:32
|
Update of /cvsroot/phpbt/phpbt/inc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21036/inc Modified Files: Tag: htmltemplates functions.php Log Message: Fall back to strings file for translation Index: functions.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/inc/functions.php,v retrieving revision 1.44.2.4 retrieving revision 1.44.2.5 diff -u -r1.44.2.4 -r1.44.2.5 --- functions.php 3 May 2004 13:37:19 -0000 1.44.2.4 +++ functions.php 18 May 2004 12:59:19 -0000 1.44.2.5 @@ -596,7 +596,9 @@ if (USE_GETTEXT) { return $plural ? ngettext($string) : gettext($string); } else { - return $string; + @include_once('languages/'.LANGUAGE.'.php'); + if (!empty($_STRING[$string])) return $_STRING[$string]; + else return $string; } } |