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

Birthday im Kalender trotz Langpack nicht übersetz

Recommended Posts

Ich hab den Fehler im offiziellen englischen Forum auch schon mitgeteilt.

Dort war er anscheinend schon bekannt, doch das ist mir auch keine Hilfe, wenn die mir sagen, dass sie den Fehler schon kennen.

Ich hätte gerne einen Workaround wenn möglich.

Hier meine Fehlerbeschreibung:

I found a bug together with the german language pack in the IPS 2.0.3 (20013).

There is the lang_calender.php where it says

'bd_birthday' => "'s Geburtstag",
right at the beginning. But the calendar itself still shows "· Username's Birthday". Only when switching into the weekly display mode it says "· Username's Geburtstag" as it should be. Strange. The responsible skin template for this is cal_events_wrap as a subset of Calendar. In there you can find
<div class="divpad">·<a href="{ipb.script_url}act=calendar&$link">$text</a></div>
and $text already contains the output string with the english 's Birthday. I'd rather like to have s Geburtstag (without high comma) Any chance for a quick workaround there? As I cannot use php commands in the templates (like str_replace) Kann man php-Code in den Templates zur Anwendung bringen, um geänderte Variableninhalte auszugeben? Sowas z.B.
<?php  $text1=str_replace("'s Birthday","s Geburtstag",$text); ?>

funktioniert nicht, wenn ich das in den cal_events_wrap reinschreibe :(

Thanks for a hint,

cu,

Rolitoon

°¿°

Share this post


Link to post

Willkommen im Forum. :)

Datei calendar.php (Ordner sources)

Suchen:

        $this_day_events .= $this->html->cal_events_wrap(
                    "code=birthdays&y=".$day_array['year']."&m=".$day_array['mon']."&d=".$day_array['mday'],
                    $user['name']."'s Birthday"
                     );
Ändern in:
        $this_day_events .= $this->html->cal_events_wrap(
                    "code=birthdays&y=".$day_array['year']."&m=".$day_array['mon']."&d=".$day_array['mday'],
                    $user['name'].$ibforums->lang['bd_birthday']
                     );

Das war es schon. :)

Share this post


Link to post

Danke Stefan,

du bist ja wohl so ziemlich der großartigste Helper, der hier abhängt ...

Naja kein Wunder als Admin und Forumsbetreiber *g*.

Also ich danke mal ganz herzlichst!

cu,

Rolitoon

°¿°

Edited by Rolitoon

Share this post


Link to post

Ich finde es nur schade, das er da keinen kleinen Workaround für unbedarfte Benutzer schreibt. Wäre ja nur ein Sache von Minuten und könnte man ruhig verlangen, wenn man schon Geld dafür ausgibt.

Ist jedenfalls meine Meinung dazu. ;)

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  

×