cvs: pearweb /public_html weeklynews.php

From: Date: Wed, 10 Jul 2002 07:38:22 +0000
Subject: cvs: pearweb /public_html weeklynews.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-5005@lists.php.net to get a copy of this message
alan_k Wed Jul 10 03:38:22 2002 EDT Modified files: /pearweb/public_html weeklynews.php Log: gettext is not supported on server - quick work around added Index: pearweb/public_html/weeklynews.php diff -u pearweb/public_html/weeklynews.php:1.7 pearweb/public_html/weeklynews.php:1.8 --- pearweb/public_html/weeklynews.php:1.7 Wed Jul 10 02:17:16 2002 +++ pearweb/public_html/weeklynews.php Wed Jul 10 03:38:21 2002 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: Alan Knowles <alan@akbkhome.com> | +----------------------------------------------------------------------+ - $Id: weeklynews.php,v 1.7 2002/07/10 06:17:16 alan_k Exp $ + $Id: weeklynews.php,v 1.8 2002/07/10 07:38:21 alan_k Exp $ */ @@ -37,8 +37,12 @@ - archived page - look at old stufff. */ - - +if (!function_exists("getText")) { + function getText($string) { return $string; } + + + +} function show_languages($visitlang = "") { $available_langs = array( @@ -188,14 +192,16 @@ ); $show_lang = $args[1]; $locale = $lang_maps[$args[1]]; - setlocale(LC_ALL, $locale); + setlocale(LC_ALL, $locale); /* if (!setlocale(LC_ALL, $locale)) { echo "NOT SUPPORTED? LC_MESSAGES, $locale "; } */ - bindtextdomain("weeklynews", "../weeklynews/locale"); - textdomain("weeklynews"); + if (function_exists("bindtextdomain")) { + bindtextdomain("weeklynews", "../weeklynews/locale"); + textdomain("weeklynews"); + } //echo getText("test"); }

« previous php.pear.cvs (#5005) next »