Update of /cvsroot/fink/web
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29040

Modified Files:
        header.inc 
Log Message:
menu items are in English by default

Index: header.inc
===================================================================
RCS file: /cvsroot/fink/web/header.inc,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- header.inc  29 Feb 2004 05:45:35 -0000      1.61
+++ header.inc  29 Feb 2004 13:10:56 -0000      1.62
@@ -6,19 +6,9 @@
 $lang_code = 'en';
 if ((phpLang_current)) $lang_code = phpLang_current;
 
-if ('en' == $lang_code) {
+if ('ja' == $lang_code) {
        // section navigation (always visible)
        $section_names = array(
-               'home' => 'Home',
-               'download' => 'Download',
-               'packages' => 'Packages',
-               'help' => 'Help',
-               'faq' => 'F.A.Q.',
-               'documentation' => 'Documentation',
-               'mailing-lists' => 'Mailing Lists'
-       );
-} elseif ('ja' == $lang_code)  {
-       $section_names = array(
                'home' => 'ホーム',
                'download' => 'ダウンロード',
                'packages' => 'パッケージ',
@@ -27,6 +17,16 @@
                'documentation' => '文書',
                'mailing-lists' => 'メーリングリスト'
        );
+} else  {
+       $section_names = array(
+               'home' => 'Home',
+               'download' => 'Download',
+               'packages' => 'Packages',
+               'help' => 'Help',
+               'faq' => 'F.A.Q.',
+               'documentation' => 'Documentation',
+               'mailing-lists' => 'Mailing Lists'
+       );
 }
 
 $section_files = array(
@@ -42,7 +42,7 @@
 if (!$section) $section = "home";
 
 // main navigation box
-if (!is_array($navbox) && $nonva != 1) {
+if (!is_array($navbox) && $nonav != 1) {
        $navbox = array(
                "index.php", "Home",
                "news/index.php", "News",
@@ -277,4 +277,11 @@
        <td width="100%">
 
 <? /* Call phpLang function */ ?>
-<? /* if (function_exists(AddFlags)) AddFlags(' ', true); else echo "&nbsp;";  */ ?>
+<? 
+if (function_exists(AddLanguageNames)) {
+       echo 'Available Languages';
+       AddLanguageNames(' | ', true); 
+} else {
+       echo "&nbsp;";
+}
+?>
\ No newline at end of file



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to