cvs: phpweb / docs.php

From: Date: Mon, 12 Mar 2001 18:49:46 +0000
Subject: cvs: phpweb / docs.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-4438@lists.php.net to get a copy of this message
goba Mon Mar 12 10:49:46 2001 EDT Modified files: /phpweb docs.php Log: Using the new $LANGUAGES array... Just need to specify the manual langs list... Hope it will work :) Index: phpweb/docs.php diff -u phpweb/docs.php:1.71 phpweb/docs.php:1.72 --- phpweb/docs.php:1.71 Sun Mar 11 10:54:46 2001 +++ phpweb/docs.php Mon Mar 12 10:49:46 2001 @@ -26,19 +26,7 @@ commonHeader("Documentation"); -$languages = array( - "en" => "English", - "pt_BR" => "Brazilian Portuguese", - "cs" => "Czech", - "nl" => "Dutch", - "fr" => "French", - "de" => "German", - "hu" => "Hungarian", - "it" => "Italian", - "ja" => "Japanese", - "kr" => "Korean", - "es" => "Spanish" -); +$man_languages = array('en', 'pt_BR', 'cs', 'nl', 'fr', 'de', 'hu', 'it', 'ja', 'kr', 'es'); # array structure: (header, link text, show_size_in_link) $formats = array( @@ -74,7 +62,8 @@ }?> </tr> <?php - while (list($langcode,$language) = each($languages)) { + while (list(,$langcode) = each($man_languages)) { + $language = $LANGUAGES[$langcode]; echo "<tr>\n<td bgcolor=\"#dddddd\"><b>$language</b></td>\n"; reset($formats); while (list($fn,$details) = each($formats)) {

« previous php.mirrors (#4438) next »