GFE_Stallac 0 Report post Posted March 3, 2005 Hallo Leute, wo kann ich denn die Monate editieren, damit da nicht z.B. wie jetzt grad steht: Tagesrekord seit 2-March 05 : 4 Mitglied(er) am 3-March 05 Wie kann ich das ändern ? Share this post Link to post
GFE_Stallac 0 Report post Posted March 3, 2005 Sorry, dass ich nochmal nachfrage, aber scheint wohl niemand zu wissen, wo man das ändern kann, schade . Share this post Link to post
Stefan 0 Report post Posted March 3, 2005 Hast du in den acht Stunden, die zwischen deinem vorherigen und dem letzten Posting liegen, mal selber geschaut, wo das Problem liegt oder hast du nur ständig den Reload Button betätigt? Hast du mal geprüft, ob du die richtige "mod_customize_date_lang.php" in deinem Ordner hochgeladen hast und nicht versuchst, englische Monatsbezeichnungen mit englischen zu ersetzen? Desweiteren wird bei dem Mod wohl nicht geschaut, welche Sprachdatei der Benutzer verwendet, sondern welche die Standardsprache im Forum ist. $lang_id = $INFO['default_language']==""?'en':$INFO['default_language']; Ist dein deutsches Sprachpaket in einen gesonderten Ordner im Verzeichnis "lang" und in deiner conf_gloabl.php steht entweder $INFO['default_language']=""; oder $INFO['default_language']="en"; ? Dann setzt mal die Standardsprache im ACP auf deutsch und schau, ob es dann klappt. Share this post Link to post
GFE_Stallac 0 Report post Posted March 3, 2005 Hast du in den acht Stunden, die zwischen deinem vorherigen und dem letzten Posting liegen, mal selber geschaut, wo das Problem liegt oder hast du nur ständig den Reload Button betätigt? Selbstverständlich habe ich selber rumprobiert und gesucht. Ich habe z.B. die englische Version der "mod_customize_date_lang.php" (also für den Ordner "en") ausgetauscht mit der deutschen "mod_customize_date_lang.php". Hat aber nicht gefunzt. In der Confglobal.php steht "deutsch" (bei mir hat der Ordner den Namen "6") als Sprache ebenso wie im ACP als "default"... Daran kanns also auch nicht liegen. Link zum Forum Weiß leider nicht mehr, wo ich noch nachschauen kann. Gibts noch eine andere Möglichkeit? P.S.: Sorry, dass ich so "schnell" nachgehackt habe, aber normalerweise seid ihr verdammt schnell im Beantworten von Fragen (sollte ein Lob sein ) und ich dachte, es weiß niemand eine Lösung... Share this post Link to post
Stefan 0 Report post Posted March 3, 2005 Schau mal, ob du folgende Funktionen in der mod_wwo_func.php hast. function get_date($date="", $method=""){ global $INFO, $MEMBER; if (!$date) { return '--'; } if (empty($method)){ $method = 'Y-m-d'; } $time_offset = (($MEMBER['time_offset'] != "") ? $MEMBER['time_offset'] : $INFO['time_offset']) * 3600; if ($INFO['time_adjust'] != "" and $INFO['time_adjust'] != 0) { $time_offset += ($INFO['time_adjust'] * 60); } if ($MEMBER['dst_in_use']){ $time_offset += 3600; } return $this->My_Replace_date(gmdate($method, ($date + $time_offset) )); } function My_Replace_Date($date) { global $INFO, $ibforums, $std, $root_path; if (defined("ROOT_PATH")) { $root_path = ROOT_PATH; } $lang_id = $INFO['default_language']==""?'en':$INFO['default_language']; if (file_exists($root_path."lang/".$lang_id."/mod_customize_date_lang.php")) { $ibforums->lang = $std->load_words($ibforums->lang, 'mod_customize_date_lang', $lang_id); } else { die("Could not load required language file 'lang/$lang_id/mod_customize_date_lang.php'"); } $Replace_Array = array( "January" => $ibforums->lang['mod_M1'], "February" => $ibforums->lang['mod_M2'], "March" => $ibforums->lang['mod_M3'], "April" => $ibforums->lang['mod_M4'], "May" => $ibforums->lang['mod_M5'], "June" => $ibforums->lang['mod_M6'], "July" => $ibforums->lang['mod_M7'], "August" => $ibforums->lang['mod_M8'], "September" => $ibforums->lang['mod_M9'], "October" => $ibforums->lang['mod_M10'], "November" => $ibforums->lang['mod_M11'], "December" => $ibforums->lang['mod_M12'], "Jan" => $ibforums->lang['mod_m1'], "Feb" => $ibforums->lang['mod_m2'], "Mar" => $ibforums->lang['mod_m3'], "Apr" => $ibforums->lang['mod_m4'], "May" => $ibforums->lang['mod_m5'], "Jun" => $ibforums->lang['mod_m6'], "Jul" => $ibforums->lang['mod_m7'], "Aug" => $ibforums->lang['mod_m8'], "Sep" => $ibforums->lang['mod_m9'], "Oct" => $ibforums->lang['mod_m10'], "Nov" => $ibforums->lang['mod_m11'], "Dec" => $ibforums->lang['mod_m12'], "Sunday" => $ibforums->lang['mod_D0'], "Monday" => $ibforums->lang['mod_D1'], "Tuesday" => $ibforums->lang['mod_D2'], "Wednesday" => $ibforums->lang['mod_D3'], "Thursday" => $ibforums->lang['mod_D4'], "Friday" => $ibforums->lang['mod_D5'], "Saturday" => $ibforums->lang['mod_D6'], "Sun" => $ibforums->lang['mod_d0'], "Mon" => $ibforums->lang['mod_d1'], "Tue" => $ibforums->lang['mod_d2'], "Wed" => $ibforums->lang['mod_d3'], "Thu" => $ibforums->lang['mod_d4'], "Fri" => $ibforums->lang['mod_d5'], "Sat" => $ibforums->lang['mod_d6'] ); return Strtr($date, $Replace_Array); } Ggf. mal vor return Strtr($date, $Replace_Array); ein echo "Debug: ". print_r($Replace_Array); einfügen und die Boardansicht aktualisieren im Browser. Share this post Link to post
GFE_Stallac 0 Report post Posted March 3, 2005 Also bei mir sieht die so aus: function get_date($date="", $method=""){ global $INFO, $MEMBER; if (!$date) { return '--'; } if (empty($method)){ $method = 'Y-m-d'; } $time_offset = (($MEMBER['time_offset'] != "") ? $MEMBER['time_offset'] : $INFO['time_offset']) * 3600; if ($INFO['time_adjust'] != "" and $INFO['time_adjust'] != 0) { $time_offset += ($INFO['time_adjust'] * 60); } if ($MEMBER['dst_in_use']){ $time_offset += 3600; } return $this->My_Replace_date(gmdate($method, ($date + $time_offset) )); } function My_Replace_Date($date) { global $INFO, $ibforums, $std, $root_path; if (defined("ROOT_PATH")) { $root_path = ROOT_PATH; } $lang_id = $INFO['default_language']==""?'en':$INFO['default_language']; if (file_exists($root_path."lang/".$lang_id."/mod_customize_date_lang.php")) { $ibforums->lang = $std->load_words($ibforums->lang, 'mod_customize_date_lang', $lang_id); } else { die("Could not load required language file 'lang/$lang_id/mod_customize_date_lang.php'"); } $Replace_Array = array( "January" => $ibforums->lang['mod_M1'], "February" => $ibforums->lang['mod_M2'], "March" => $ibforums->lang['mod_M3'], "April" => $ibforums->lang['mod_M4'], "May" => $ibforums->lang['mod_M5'], "June" => $ibforums->lang['mod_M6'], "July" => $ibforums->lang['mod_M7'], "August" => $ibforums->lang['mod_M8'], "September" => $ibforums->lang['mod_M9'], "October" => $ibforums->lang['mod_M10'], "November" => $ibforums->lang['mod_M11'], "December" => $ibforums->lang['mod_M12'], "Jan" => $ibforums->lang['mod_m1'], "Feb" => $ibforums->lang['mod_m2'], "Mar" => $ibforums->lang['mod_m3'], "Apr" => $ibforums->lang['mod_m4'], "May" => $ibforums->lang['mod_m5'], "Jun" => $ibforums->lang['mod_m6'], "Jul" => $ibforums->lang['mod_m7'], "Aug" => $ibforums->lang['mod_m8'], "Sep" => $ibforums->lang['mod_m9'], "Oct" => $ibforums->lang['mod_m10'], "Nov" => $ibforums->lang['mod_m11'], "Dec" => $ibforums->lang['mod_m12'], "Sunday" => $ibforums->lang['mod_D0'], "Monday" => $ibforums->lang['mod_D1'], "Tuesday" => $ibforums->lang['mod_D2'], "Wednesday" => $ibforums->lang['mod_D3'], "Thursday" => $ibforums->lang['mod_D4'], "Friday" => $ibforums->lang['mod_D5'], "Saturday" => $ibforums->lang['mod_D6'], "Sun" => $ibforums->lang['mod_d0'], "Mon" => $ibforums->lang['mod_d1'], "Tue" => $ibforums->lang['mod_d2'], "Wed" => $ibforums->lang['mod_d3'], "Thu" => $ibforums->lang['mod_d4'], "Fri" => $ibforums->lang['mod_d5'], "Sat" => $ibforums->lang['mod_d6'] ); return Strtr($date, $Replace_Array); } Also eigentlich so wie bei dir, oder? Wo soll ich jetzt genau den Befehl^^ davorsetzen? Kann ich nicht einfach die Felder "January"....usw. manuell editieren? Share this post Link to post
Stefan 0 Report post Posted March 3, 2005 Das wäre ja nicht Sinn und Zweck der Sache. Einfach aus return Strtr($date, $Replace_Array); machst du echo "Debug: ". print_r($Replace_Array); return Strtr($date, $Replace_Array); Share this post Link to post
GFE_Stallac 0 Report post Posted March 3, 2005 (edited) Hat leider nicht geklappt. Habe auch das "Template Tool" ausgeführt und funzt trotzdem nicht. http://www.gfeclan.de/forum Hast du vielleicht noch eine andere Idee? Edited March 3, 2005 by GFE_Stallac Share this post Link to post
Stefan 0 Report post Posted March 4, 2005 Erscheint keine Debug Meldung am oberen Rand nachdem du das eingebaut hast? Share this post Link to post
GFE_Stallac 0 Report post Posted March 4, 2005 Weiß jetzt nicht genau, wo du meinst? Ich habe lediglich die betroffene php-Datei "editiert" und eben noch die eine Zeile hinzugefügt, so wie du es gesagt hattest. Anschließend bin ich ins ACP und hab das obige Tool ausgeführt, weil im Forum eben der "Fehler" immer noch so angezeigt wurde. Aber da kam keine "Debug-Meldung", so viel ich weiß. Share this post Link to post
Stefan 0 Report post Posted March 4, 2005 Muß ich mir später mal in Ruhe anschauen, da ich gleich erstmal zur Uni muß. :) Share this post Link to post
GFE_Stallac 0 Report post Posted March 5, 2005 Muß ich mir später mal in Ruhe anschauen, da ich gleich erstmal zur Uni muß. Hi Stefan, brauchst du irgendwelchen INPUT von mir zwecks "englischer" Monate? Share this post Link to post
B.SCHEUERT 0 Report post Posted March 8, 2005 Sieht eher so aus als sei die Zeitzone und die Eindeutschung des Datums und der Zeit noch nicht vorgenommen. :D Share this post Link to post
GFE_Stallac 0 Report post Posted March 10, 2005 Und wie kann man das ändern bzw. wo? Share this post Link to post
B.SCHEUERT 0 Report post Posted March 10, 2005 Im ACP! Standardeinstellung, glaube Date/Time oder so. Dazu gibts auch ein Thread von Webarche zum Thread und mal durchlesen. Share this post Link to post
GFE_Stallac 0 Report post Posted March 10, 2005 Jup, habs hingekriegt. Zeigt halt jetzt überhaupt nicht mehr den "Monat" also "März" an, sondern habs so gemacht, dass halt 10.03.2005 da steht... Thx. Share this post Link to post
B.SCHEUERT 0 Report post Posted March 10, 2005 Gerne geschehen! Ich konnte auch mal helfen!!!! *EXTREMFREU* Share this post Link to post