cvs: phpweb / docs.php /include languages.inc
| From: | Derick Rethans | Date: | Mon, 02 Jun 2003 08:36:54 +0000 |
| Subject: | cvs: phpweb / docs.php /include languages.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-18375@lists.php.net to get a copy of this message | ||
derick Mon Jun 2 04:36:54 2003 EDT
Modified files:
/phpweb docs.php
/phpweb/include languages.inc
Log:
- Make it possible to disable languages that should not show up as available
language online.
Index: phpweb/docs.php
diff -u phpweb/docs.php:1.124 phpweb/docs.php:1.125
--- phpweb/docs.php:1.124 Thu May 15 13:39:36 2003
+++ phpweb/docs.php Mon Jun 2 04:36:53 2003
@@ -46,7 +46,9 @@
// Check for really available manual languages
$man_languages = array();
-foreach ($LANGUAGES as $code => $langname) {
+// Remove inactive online languages from the list to show
+$online_languages = array_diff($LANGUAGES, $INACTIVE_ONLINE_LANGUAGES);
+foreach ($online_languages as $code => $langname) {
// Avoid this stat call here for the moment
// if (file_exists("manual/$code/index.php")) {
$man_languages[] = $code;
Index: phpweb/include/languages.inc
diff -u phpweb/include/languages.inc:1.8 phpweb/include/languages.inc:1.9
--- phpweb/include/languages.inc:1.8 Fri May 23 16:32:16 2003
+++ phpweb/include/languages.inc Mon Jun 2 04:36:54 2003
@@ -1,6 +1,6 @@
<?php // -*- C++ -*-
-// $Id: languages.inc,v 1.8 2003/05/23 20:32:16 goba Exp $
+// $Id: languages.inc,v 1.9 2003/06/02 08:36:54 derick Exp $
/*
This is a list of all manual languages hosted
@@ -39,6 +39,10 @@
'tr' => 'Turkish',
);
+$INACTIVE_ONLINE_LANGUAGES = array(
+ 'el' => 'Greek',
+);
+
// Convert between language codes back and forth
// [We use non standard languages codes and so conversion
// is needed when communicating with the outside world]
@@ -61,3 +65,4 @@
}
}
}
+?>