Changeset 1740
- Timestamp:
- 09/03/2008 04:00:10 PM (3 months ago)
- Files:
-
- trunk/lang/lang-admin.de.inc.php (modified) (1 diff)
- trunk/scripts/update/102To110.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lang/lang-admin.de.inc.php
r1718 r1740 234 234 "cat_duplicate" => "Eine andere Kategorie hat diesen URL schon besetzt.", 235 235 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.", 237 240 "pingback_closed" => "Pingbacks fÃŒr diesen Eintrag schlieÃen.", 238 241 trunk/scripts/update/102To110.php
r1738 r1740 3 3 class JlogUpdate_102To110 4 4 { 5 var $languages = array(); 6 5 7 function JlogUpdate_102To110() 6 8 { 7 9 $dir = opendir(JLOG_BASEPATH.'lang'); 8 $languages = array();9 10 while(($file = readdir($dir)) !== false) { 10 11 if($file == '.' OR $file == '..') continue; 11 12 if(!preg_match('/lang\.([a-zA-z0-9]+)\.inc\.php/', $file, $matches)) continue; 12 $ languages[] = $matches[1];13 $this->languages[] = $matches[1]; 13 14 } 14 15 } … … 18 19 $html = "<p><label for='language'>Bitte wÀhlen Sie die gewÃŒnschte Sprache fÃŒr Ihr Weblog:</label><br /> 19 20 <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>"; 24 23 } 25 24 $html .= "</select> … … 50 49 51 50 // 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; 53 53 54 54 // rewrite settings.inc.php
