Changeset 2720

Show
Ignore:
Timestamp:
07/07/08 19:26:11 (5 months ago)
Author:
arvind
Message:

Swapped to one common index.html too. Both readme and index attempt to detect browser language first

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/feature-no-make-me

    • Property svn:ignore changed from
      mt-config.cgi
      mt-config.cgi-original
      build-language-stamp
      index.html
      to
      mt-config.cgi
      mt-config.cgi-original
      build-language-stamp
  • branches/feature-no-make-me/index.html

    r1308 r2720  
    55<head> 
    66    <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 
    7     <meta http-equiv="content-language" content="en" /> 
    8     <meta http-equiv="refresh" content="8;url=mt.cgi"> 
    9      
     7 
    108    <title>Movable Type Publishing Platform</title> 
    119     
    12             <style type="text/css" media="screen"> 
    13             body { 
    14                 font-family: "Helvetica Neue", Arial, sans-serif; 
    15                 font-size: 12px; 
    16                 line-height: 1.6; 
    17                 background-color: #fff; 
    18            
     10    <style type="text/css" media="screen"> 
     11        body { 
     12            font-family: "Helvetica Neue", Arial, sans-serif; 
     13            font-size: 12px; 
     14            line-height: 1.6; 
     15            background-color: #fff; 
     16       
    1917 
    20             a { 
    21                 color: #33789c; 
    22            
     18        a { 
     19            color: #33789c; 
     20       
    2321 
    24             a:hover { 
    25                 color: #a2ad00; 
    26            
     22        a:hover { 
     23            color: #a2ad00; 
     24       
    2725 
    28             .chromeless #container { 
    29                 position: relative; 
    30                 margin: 0 auto; 
    31                 text-align: left; 
    32            
    33             .chromeless #container { 
    34                 width: 360px; 
    35            
     26        .chromeless #container { 
     27            position: relative; 
     28            margin: 0 auto; 
     29            text-align: left; 
     30       
     31        .chromeless #container { 
     32            width: 360px; 
     33       
    3634 
    37             .chromeless #container { 
    38                 margin-top: 50px; 
    39            
     35        .chromeless #container { 
     36            margin-top: 50px; 
     37       
    4038 
    41             .chromeless #content { 
    42                 border: 1px solid #cfdde5; 
    43                 padding: 20px; 
    44            
     39        .chromeless #content { 
     40            border: 1px solid #cfdde5; 
     41            padding: 20px; 
     42       
    4543 
    46             .chromeless #content h1 { 
    47                 margin: 10px 0 20px 0; 
    48                 padding: 0; 
    49                 font-size: 24px; 
    50                 font-weight: normal; 
    51            
    52             .chromeless #content h2 { 
    53                 font-size: 16px; 
    54                 margin: 0 0 10px 0; 
    55            
     44        .chromeless #content h1 { 
     45            margin: 10px 0 20px 0; 
     46            padding: 0; 
     47            font-size: 24px; 
     48            font-weight: normal; 
     49       
     50        .chromeless #content h2 { 
     51            font-size: 16px; 
     52            margin: 0 0 10px 0; 
     53       
    5654 
    57             .info { 
    58                 font-size: 14px; 
    59            
     55        .info { 
     56            font-size: 14px; 
     57       
    6058 
    61             .login { 
    62                 margin: 30px auto 30px auto; 
    63                 text-align: center; 
    64             } 
    65             .login a { 
    66                 font-size: 18px; 
    67                 color: #fff; 
    68                 text-decoration: none; 
    69                 background-color: #226C9C; 
    70                 border-width: 2px; 
    71                 border-style: solid; 
    72                 border-color: #6AA8C6 #1B577D #1B577D #6AA8C6; 
    73                 padding: 4px 12px; 
    74             } 
    75             .login a:hover { 
    76                 color: #fff; 
    77             } 
     59        .login { 
     60            margin: 30px auto 30px auto; 
     61            text-align: center; 
     62        } 
     63        .login a { 
     64            font-size: 18px; 
     65            color: #fff; 
     66            text-decoration: none; 
     67            background-color: #226C9C; 
     68            border-width: 2px; 
     69            border-style: solid; 
     70            border-color: #6AA8C6 #1B577D #1B577D #6AA8C6; 
     71            padding: 4px 12px; 
     72        } 
     73        .login a:hover { 
     74            color: #fff; 
     75        } 
     76    </style> 
     77        <script type="text/javascript"> 
     78        <!-- 
     79            var languages = new Array('de', 'en-us', 'es', 'fr', 'ja', 'nl'); 
     80            var timeoutID; 
     81            function swapLanguage(lang) { 
     82                for(var i = 0; i < languages.length; i++) { 
     83                    var d = document.getElementById(languages[i]); 
     84                    if(d) 
     85                        d.style.display = 'none'; 
     86                } 
    7887 
    79             </style> 
     88            var ld = document.getElementById(lang); 
     89            if(ld) 
     90                ld.style.display = 'block'; 
     91             
     92            // If a user changes languages, give them time to (re)read     
     93            if(timeoutID) 
     94                window.clearTimeout(timeoutID); 
     95             
     96            timeoutID = window.setTimeout('window.location = \'mt.cgi\'', 8000); 
     97            } 
    8098 
     99            // Attempt to detect the language 
     100            window.onload = function() { 
     101                var userLang = (navigator.language) ? navigator.language : navigator.userLanguage;  
     102                swapLanguage(userLang.toLowerCase()); 
     103            } 
     104        //--> 
     105        </script> 
    81106</head> 
    82107 
     
    86111         
    87112            <h1>Movable Type</h1> 
     113             
     114            <a href="#" onclick="swapLanguage('de');">Deutsch</a> |  
     115            <a href="#" onclick="swapLanguage('en-us');">English</a> | 
     116            <a href="#" onclick="swapLanguage('es');">Español</a> | 
     117            <a href="#" onclick="swapLanguage('fr');">Français</a> | 
     118            <a href="#" onclick="swapLanguage('ja');">日本語</a> | 
     119            <a href="#" onclick="swapLanguage('nl');">Nederlands</a> 
    88120 
    89             <p class="info">Welcome to Movable Type, the premier blog publishing platform.</p> 
     121            <div id="en-us"><!-- Start English --> 
     122                <p class="info">Welcome to Movable Type, the premier blog publishing platform.</p> 
    90123 
    91             <p class="login"><a rel="nofollow" href="mt.cgi">Log in to Movable Type</a></p> 
     124                <p class="login"><a rel="nofollow" href="mt.cgi">Log in to Movable Type</a></p> 
    92125 
    93             <h2>Installing?</h2> 
     126                <h2>Installing?</h2> 
    94127 
    95             <p>If you are just starting with Movable Type, you may want to review the installation/upgrade guide posted on the <a href="http://www.movabletype.org/documentation/">Movable Type documentation site</a> and view the <a rel="nofollow" href="mt-check.cgi">Movable Type System Check</a> to make sure that your system has what it needs.</p> 
     128                <p>If you are just starting with Movable Type, you may want to review the installation/upgrade guide posted on the <a href="http://www.movabletype.org/documentation/">Movable Type documentation site</a> and view the <a rel="nofollow" href="mt-check.cgi">Movable Type System Check</a> to make sure that your system has what it needs.</p> 
     129            </div><!-- End English --> 
     130             
     131            <div id="de" style="display: none;"><!-- Start German --> 
     132                <p class="info">Herzlich willkommen zu Movable Type, der Premium-Weblogging-Plattform.</p> 
     133 
     134                <p class="login"><a rel="nofollow" href="mt.cgi">Bei Movable Type anmelden</a></p> 
     135 
     136                <h2>Movable Type installieren?</h2> 
     137 
     138                <p>Wenn Sie Movable Type jetzt installieren möchten, lesen Sie bitte die Installationshinweise in der <a href="http://www.movabletype.org/documentation/">Movable Type-Dokumentation</a> und nutzen Sie die <a rel="nofollow" href="mt-check.cgi">Movable Type-SystemÃŒberprÃŒfung</a>, die Ihren Server automatisch auf die erforderliche Software hin ÃŒberprÃŒft.</p> 
     139            </div><!-- End German --> 
     140             
     141            <div id="es" style="display: none;"><!-- Start Spanish --> 
     142                <p class="info">¡Bienvenido a Movable Type, la mejor plataforma de publicación de blogs.</p> 
     143 
     144                <p class="login"><a rel="nofollow" href="mt.cgi">Iniciar sesión en Movable Type</a></p> 
     145 
     146                <h2>¿Instalando?</h2> 
     147 
     148                <p>Si acaba de empezar con Movable Type, quizás desee consultar la sección de instalación/actualización de la <a href="http://www.movabletype.org/documentation/">documentación de Movable Type</a> y ver la <a rel="nofollow" href="mt-check.cgi">comprobación del sistema de Movable Type</a> para segurarse de que su sistema tiene todo lo necesario.</p> 
     149            </div><!-- End Spanish --> 
     150             
     151            <div id="fr" style="display: none;"><!-- Start French --> 
     152                <p class="info">Bienvenue sur Movable Type, la premiÚre plateforme de blogging.</p> 
     153 
     154                <p class="login"><a rel="nofollow" href="mt.cgi">S'enregistrer dans Movable Type</a></p> 
     155 
     156                <h2>Installation?</h2> 
     157 
     158                <p>Si vous découvrez Movable Type, vous apprécierez certainement de trouver des conseils utiles dans le chapitre "Installation" dans notre <a href="http://www.movabletype.org/documentation/">documentation Movable Type</a>. Vous pouvez aussi visiter la Page <a rel="nofollow" href="mt-check.cgi">"Vérification SystÚme"</a> pour vérifier que votre systÚme comporte tous les éléments nécessaires à l'installation de Movable Type.</p> 
     159            </div><!-- End French --> 
     160             
     161            <div id="ja" style="display: none;"><!-- Start Japanese --> 
     162                <p class="info">衚珟力豊かなブログをすべおの人に。Movable Typeぞようこそ。</p> 
     163                <p class="login"><a rel="nofollow" href="mt.cgi">ログむン</a></p> 
     164 
     165                <h2>はじめおお䜿いになる方ぞ</h2> 
     166                <p>Movable Typeをご利甚いただくためには、セットアップを完了しおおく忠
     167芁がありたす。<a href="http://www.movabletype.jp/documentation/">オンラむン・マニュアル</a>のむンストヌル・セットアップの章を読み、皌働に忠
     168芁な環境を準備しおください。たた、<a rel="nofollow" href="mt-check.cgi">Movable Type システム・チェック (mt-check.cgi)</a> を実行し、環境が敎ったこずを確認しおください。</p> 
     169                <p>å¿ 
     170芁な環境が敎っおいるこずを確認した埌に、䞊の「ログむン」をクリックしおください。</p> 
     171            </div><!-- End Japanese --> 
     172             
     173            <div id="nl" style="display: none;"><!-- Start Dutch --> 
     174                <p class="info">Welkom op Movable Type, het beste publicatieplatform voor weblogs.</p> 
     175 
     176                <p class="login"><a rel="nofollow" href="mt.cgi">Aanmelden op Movable Type</a></p> 
     177 
     178                <h2>Installatie?</h2> 
     179 
     180                <p>Als u Movable Type aan het installeren bent, is het nuttig om de <a href="http://www.movabletype.org/documentation/">installatie-instructies</a> te bekijken en om de <a rel="nofollow" href="mt-check.cgi">Movable Type systeemcontrole</a> uit te voeren om zeker te zijn dat u systeem alles heeft wat nodig is.</p> 
     181            </div><!-- End Dutch --> 
    96182        </div> 
    97183    </div> 
  • branches/feature-no-make-me/readme.html

    r2719 r2720  
    1010        <script type="text/javascript"> 
    1111        <!-- 
    12             var languages = new Array('de', 'en_us', 'es', 'fr', 'ja', 'nl'); 
     12            var languages = new Array('de', 'en-us', 'es', 'fr', 'ja', 'nl'); 
    1313            function swapLanguage(lang) { 
    1414                for(var i = 0; i < languages.length; i++) { 
     
    2222                ld.style.display = 'block'; 
    2323            } 
     24             
     25            // Attempt to detect the language 
     26            window.onload = function() { 
     27                var userLang = (navigator.language) ? navigator.language : navigator.userLanguage;  
     28                swapLanguage(userLang.toLowerCase()); 
     29            } 
    2430        //--> 
    2531        </script> 
     
    2935    <img src="mt-static/readme/mt4-logo.png" width="750" height="250" /> 
    3036    <a href="#" onclick="swapLanguage('de');">Deutsch</a> |  
    31     <a href="#" onclick="swapLanguage('en_us');">English</a> | 
     37    <a href="#" onclick="swapLanguage('en-us');">English</a> | 
    3238    <a href="#" onclick="swapLanguage('es');">Español</a> | 
    3339    <a href="#" onclick="swapLanguage('fr');">Français</a> | 
     
    3541    <a href="#" onclick="swapLanguage('nl');">Nederlands</a> 
    3642     
    37     <div id="en_us"><!-- Start English --> 
     43    <div id="en-us"><!-- Start English --> 
    3844        <h1>Welcome to Movable Type</h1> 
    3945        <p>Thank you for choosing Movable Type, the premiere solution for all your blogging needs. This file will show you how to get up and running; click on the highlighted sections for more information on that subject.</p>