Jump to content
InvisionCommunity.de - Der Deutsche Invision Community Support
Sign in to follow this  
GFE_Stallac

Monate bei WWO-mod sind englisch

Recommended Posts

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

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

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 :D ) und ich dachte, es weiß niemand eine Lösung...

Share this post


Link to post

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

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

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×