Update of /cvsroot/phpwiki/phpwiki
In directory usw-pr-cvs1:/tmp/cvs-serv6597
Modified Files:
index.php
Log Message:
Revert $LANG back to being a global rather than an environment variable
(as per patches from Jan Nieuwenhuizen <ja...@gn...>.)
Use constants LC_ALL (&c) rather than literal "LC_ALL" as first
argument to setlocale().
Define constants LC_ALL and LC_CTYPE if needed (for PHP < 4.0.5).
Index: index.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/index.php,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** index.php 2001/04/07 00:34:30 1.16
--- index.php 2001/05/31 17:39:01 1.17
***************
*** 116,127 ****
// Select your language/locale - default language "C": English
// other languages available: Dutch "nl", Spanish "es", German "de",
! // and Swedish "sv".
//
// Note that on some systems, apprently using these short forms for
// the locale won't work. On my home system 'LANG=de' won't result
// in german pages. Somehow the system must recognize the locale
! // as a valid locale before gettext() will work. ('de_DE' works for
! // me.)
! putenv('LANG=C');
// Setting the LANG environment variable (accomplished above) may or
--- 116,128 ----
// Select your language/locale - default language "C": English
// other languages available: Dutch "nl", Spanish "es", German "de",
! // Swedish "sv", and Italian, "it".
//
// Note that on some systems, apprently using these short forms for
// the locale won't work. On my home system 'LANG=de' won't result
// in german pages. Somehow the system must recognize the locale
! // as a valid locale before gettext() will work, i.e., use 'de_DE',
! // 'nl_NL'.
! $LANG='C';
! //$LANG='nl_NL';
// Setting the LANG environment variable (accomplished above) may or
|