Changeset 1740

Show
Ignore:
Timestamp:
09/03/2008 04:00:10 PM (3 months ago)
Author:
driehle
Message:

Added updated language files, fixed old update

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lang/lang-admin.de.inc.php

    r1718 r1740  
    234234"cat_duplicate"            => "Eine andere Kategorie hat diesen URL schon besetzt.", 
    235235 
    236 "update_successfull"       => "Das Update ist gelungen. <a href='../'>Viel Spaß!</a>", 
     236"update_start"             => 'Update starten!', 
     237"update_successfull_part"  => 'Das Update wurde erfolgreich ausgefÃŒhrt.', 
     238"update_successfull"       => "Alle Updates wurden erfolgreich durchgefÃŒhrt. <a href='../'>Viel Spaß!</a>", 
     239"update_failure"           => "Ein Update ist fehlgeschlagen.", 
    237240"pingback_closed"          => "Pingbacks fÃŒr diesen Eintrag schließen.", 
    238241 
  • trunk/scripts/update/102To110.php

    r1738 r1740  
    33class JlogUpdate_102To110 
    44{ 
     5    var $languages = array(); 
     6     
    57    function JlogUpdate_102To110() 
    68    { 
    79        $dir = opendir(JLOG_BASEPATH.'lang'); 
    8         $languages = array(); 
    910        while(($file = readdir($dir)) !== false) { 
    1011          if($file == '.' OR $file == '..') continue; 
    1112          if(!preg_match('/lang\.([a-zA-z0-9]+)\.inc\.php/', $file, $matches)) continue; 
    12           $languages[] = $matches[1]; 
     13          $this->languages[] = $matches[1]; 
    1314        } 
    1415    } 
     
    1819        $html = "<p><label for='language'>Bitte wÀhlen Sie die gewÃŒnschte Sprache fÃŒr Ihr Weblog:</label><br /> 
    1920                     <select class='userdata' id='language' name='j110_language'>";  
    20         foreach($languages as $lang) { 
    21             $html .= "<option"; 
    22             //if((isset($_POST['jlog_language']) AND $_POST['jlog_language'] == $lang) OR $old_language == $lang) $c['main'] .= " selected='selected'"; 
    23             $html .= ">$lang</option>"; 
     21        foreach($this->languages as $lang) { 
     22            $html .= "<option>$lang</option>"; 
    2423        } 
    2524        $html .= "</select> 
     
    5049    
    5150            // store chosen language 
    52             $update->d['jlog_language'] = $_POST['j110_language']; 
     51            $lang = in_array($_POST['j110_language'], $this->languages) ? $_POST['j110_language'] : 'de'; 
     52            $update->d['jlog_language'] = $lang; 
    5353    
    5454            // rewrite settings.inc.php