nlopess         Sun Mar 21 13:35:55 2004 EDT

  Modified files:              
    /livedocs   config.php.in configure.in 
  Log:
  allow user to change default language
  
http://cvs.php.net/diff.php/livedocs/config.php.in?r1=1.6&r2=1.7&ty=u
Index: livedocs/config.php.in
diff -u livedocs/config.php.in:1.6 livedocs/config.php.in:1.7
--- livedocs/config.php.in:1.6  Sat Mar 20 11:43:31 2004
+++ livedocs/config.php.in      Sun Mar 21 13:35:55 2004
@@ -19,9 +19,9 @@
 // | the ./configure call                                                 |
 // +----------------------------------------------------------------------+
 //
-// $Id: config.php.in,v 1.6 2004/03/20 16:43:31 didou Exp $
+// $Id: config.php.in,v 1.7 2004/03/21 18:35:55 nlopess Exp $
 
-define('FALLBACK_LANG', 'en');
+define('FALLBACK_LANG', '@DEFAULTLANG@');
 define('PHPDOC', '@PHPDOCFORPHP@');
 define('LIVEDOCS', '@LIVEDOCSFORPHP@');
 define('OUTPUTDIR', '@OUTPUTDIRFORPHP@');
http://cvs.php.net/diff.php/livedocs/configure.in?r1=1.20&r2=1.21&ty=u
Index: livedocs/configure.in
diff -u livedocs/configure.in:1.20 livedocs/configure.in:1.21
--- livedocs/configure.in:1.20  Sun Mar 21 08:59:42 2004
+++ livedocs/configure.in       Sun Mar 21 13:35:55 2004
@@ -1,5 +1,5 @@
 ## A configure script
-## $Id: configure.in,v 1.20 2004/03/21 13:59:42 nlopess Exp $
+## $Id: configure.in,v 1.21 2004/03/21 18:35:55 nlopess Exp $
 
 AC_PREREQ(2.13)
 AC_INIT(livedoc.php)
@@ -59,6 +59,10 @@
   [THEMENAME="$withval"],
   [THEMENAME="default"])
 
+AC_ARG_WITH(default-lang,[  --with-default-lang[=THEME_NAME] Default language 
[default=en]],
+  [DEFAULTLANG="$withval"],
+  [DEFAULTLANG="en"])
+
 AC_ARG_WITH(docs,[  --with-docs[=DIR]               Docs location  
[default=/dat/dev/php/phpdoc-all]],
   [PHPDOC="$withval"],
   [PHPDOC="/dat/dev/php/phpdoc-all"])
@@ -114,6 +118,7 @@
 AC_SUBST(OUTPUTDIR)
 AC_SUBST(LANGUAGES)
 AC_SUBST(THEMENAME)
+AC_SUBST(DEFAULTLANG)
 AC_SUBST(BUILDTYPE)
 AC_SUBST(FORCE_DYNAMIC)
 AC_SUBST(WEBBASE)

Reply via email to