|
From: Benjamin C. <bc...@us...> - 2004-07-03 13:08:50
|
Update of /cvsroot/phpbt/phpbt/inc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7559/inc Modified Files: Tag: htmltemplates functions.php Log Message: Moving gettext() setup to inc/functions.php from include.php Index: functions.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/inc/functions.php,v retrieving revision 1.44.2.7 retrieving revision 1.44.2.8 diff -u -r1.44.2.7 -r1.44.2.8 --- functions.php 30 Jun 2004 13:49:24 -0000 1.44.2.7 +++ functions.php 3 Jul 2004 13:08:42 -0000 1.44.2.8 @@ -22,6 +22,16 @@ // ------------------------------------------------------------------------ // $Id$ +// Set the domain if gettext is available +if (is_callable('gettext')) { + define('USE_GETTEXT', true); + setlocale(LC_ALL, LOCALE); + bindtextdomain('phpbt', './locale'); + textdomain('phpbt'); +} else { + define('USE_GETTEXT', false); +} + /// /// Show text to the browser - escape hatch function show_text($text, $iserror = false) { |