Viewing 15 posts - 61 through 75 (of 91 total)
  • Author
    Posts
  • linebille Friend
    #264309

    Should it not be : [PHP]$month = date(“F”);[/PHP] instead of [PHP]$month = date(“M”);[/PHP] ‘M’ is for ‘Jan’, ‘Feb’ ect.

    pinta Friend
    #266926

    Esta es la version en español (Spanish day version joomla TELINE II – )

    <div class=”ja-day”>
    <?php
    $day = date(“l”);
    $month = date(“F”);
    //* No se necesita $daynum and $year*. *//

    switch($day)
    {
    case “Monday”: $day = “Lunes”; break;
    case “Tuesday”: $day = “Martes”; break;
    case “Wednesday”: $day = “Miercoles”; break;
    case “Thursday”: $day = “Jueves”; break;
    case “Friday”: $day = “Viernes”; break;
    case “Saturday”: $day = “Sábado”; break;
    case “Sunday”: $day = “Domingo”; break;
    default: $day = “Desconocido”; break;
    }

    switch($month)
    {
    case “January”: $month = “Enero”; break;
    case “February”: $month = “Febrero”; break;
    case “March”: $month = “Marzo”; break;
    case “April”: $month = “Abril”; break;
    case “May”: $month = “Mayo”; break;
    case “June”: $month = “Junio”; break;
    case “July”: $month = “Julio”; break;
    case “August”: $month = “Agosto”; break;
    case “September”: $month = “Septiembre”; break;
    case “October”: $month = “Octobre”; break;
    case “November”: $month = “Novimbre”; break;
    case “December”: $month = “Diciembre”; break;
    default: $month = “Desconocido”; break;
    }
    echo “<span>”.$day.”</span>”;
    echo ” <div>”.date(‘j’).” “.$month.”</div>”; //* tPara cambiar la fuente, el color, etc… debes modificar la plantilla css templates/ja_teline_ii/css/template.css -> ja-day *//
    echo ” <span>”.date (‘Y’).”</span>”;
    ?>
    </div>

    mohdismail Friend
    #269163

    great solution…i managed to solve it also..thank you. 🙂

    kamal2099 Friend
    #270826

    Hi guys,

    I tried the above with Teline 1 but it doesn’t work… Any idea to change the “day” to a french one?

    Thanks

    alioztr Friend
    #271426

    <em>@euronur 58086 wrote:</em><blockquote>And here the code for the turkish language:

    default: $day = "Onbekend"; break;
    }

    switch($month)
    {
    default: $month = "Onbekend"; break;
    }

    echo $day . ", " . $daynum . ". " . $month . " " . $year;
    ?>
    </div>

    </blockquote>

    what does onbekend mean. Can i delete this code.
    Thanks

    cgoran Friend
    #275992

    Thank you,

    and this is my contribution: Macedonian days and months:

    <div class=”ja-day”>
    <?php
    $day = date(“l”);
    $daynum = date(“j”);
    $month = date(“M”);
    $year = date(“Y”);

    switch($day)
    {
    case “Monday”: $day = “Понеделник”; break;
    case “Tuesday”: $day = “Вторник”; break;
    case “Wednesday”: $day = “Среда”; break;
    case “Thursday”: $day = “Четврток”; break;
    case “Friday”: $day = “Петок”; break;
    case “Saturday”: $day = “Сабота”; break;
    case “Sunday”: $day = “Недела”; break;
    default: $day = “Onbekend”; break;
    }

    switch($month)
    {
    case “Jan”: $month = “Јануари”; break;
    case “Feb”: $month = “Февруари”; break;
    case “Mar”: $month = “Март”; break;
    case “Apr”: $month = “Април”; break;
    case “May”: $month = “Мај”; break;
    case “Jun”: $month = “Јуни”; break;
    case “Jul”: $month = “Јули”; break;
    case “Aug”: $month = “Август”; break;
    case “Sep”: $month = “Септември”; break;
    case “Oct”: $month = “Октомври”; break;
    case “Nov”: $month = “Ноември”; break;
    case “Dec”: $month = “Декември”; break;
    default: $month = “Onbekend”; break;
    }

    echo $day . “, ” . $daynum . ” ” . $month . ” ” . $year;

    danielle_reis Friend
    #276474

    Hi.. I’m new at this. I have the same problem with the month configuration. I had to change it manually. I coudn’t find the right settings here in teh forum.

    I also can’t change The Global Configuration time zone to Brazil. It says that I can’t write on configuration.php (I think my server don’t allow it). Is there any way that I can do it manually?

    And when I write in portuguese Tuesday (Terça), instead of “ç” I get some japanese letter.

    Can someone help me?

    In Portuguese(BRAZIL)

    <div class=”ja-day”>
    <?php
    $day = date(“l”);
    $daynum = date(“j”);
    $month = date(“M”);
    $year = date(“Y”);

    switch($day)
    {
    case “Monday”: $day = “Segunda”; break;
    case “Tuesday”: $day = “Terça”; break;
    case “Wednesday”: $day = “Quarta”; break;
    case “Thursday”: $day = “Quinta”; break;
    case “Friday”: $day = “Sexta”; break;
    case “Saturday”: $day = “Sábado”; break;
    case “Sunday”: $day = “Domingo”; break;
    default: $day = “Onbekend”; break;
    }

    switch($month)
    {
    case “January”: $month = “janeiro”; break;
    case “February”: $month = “fevereiro”; break;
    case “March”: $month = “março”; break;
    case “April”: $month = “abril”; break;
    case “May”: $month = “maio”; break;
    case “June”: $month = “junho”; break;
    case “July”: $month = “julho”; break;
    case “August”: $month = “agosto”; break;
    case “September”: $month = “setembro”; break;
    case “October”: $month = “outubro”; break;
    case “November”: $month = “novembro”; break;
    case “December”: $month = “dezembro”; break;
    default: $month = “onbekend”; break;
    }

    echo $day . “, ” . $daynum . ” de ” . $month . ” de ” . $year;
    ?>
    </div>

    Thanks

    Raciel Goncalves Junior Friend
    #277420

    Dear Friends,

    Here is in Portuguese (Brazilian) one:

    —qt

    <div class=”ja-day”>
    <?php
    $day = date(“l”);
    $daynum = date(“j”);
    $month = date(“M”);
    $year = date(“Y”);

    switch($day)
    {
    case “Monday”: $day = “Segunda-Feira,”; break;
    case “Tuesday”: $day = “Terça-Feira,”; break;
    case “Wednesday”: $day = “Quarta-Feira,”; break;
    case “Thursday”: $day = “Quinta-Feira,”; break;
    case “Friday”: $day = “Sexta-Feira,”; break;
    case “Saturday”: $day = “Sábado,”; break;
    case “Sunday”: $day = “Domingo,”; break;
    default: $day = ” “; break;
    }

    switch($month)
    {
    case “Jan”: $month = “Jan”; break;
    case “Feb”: $month = “Fev”; break;
    case “Mar”: $month = “Mar”; break;
    case “Apr”: $month = “Abr”; break;
    case “May”: $month = “Mai”; break;
    case “Jun”: $month = “Jun”; break;
    case “Jul”: $month = “Jul”; break;
    case “Aug”: $month = “Ago”; break;
    case “Sep”: $month = “Set”; break;
    case “Oct”: $month = “Out”; break;
    case “Nov”: $month = “Nov”; break;
    case “Dec”: $month = “Dez”; break;
    default: $month = ” “; break;
    }

    echo $day . ” ” . $daynum . ” ” . $month . ” ” . $year;

    ?>
    </div>
    —unqt

    B/Rgds,

    Raciel Gonçalves Junior
    Itajaí (SC) – Brazil

    danielle_reis Friend
    #277476

    But is your ‘ç’ working? Você colocou algum código diferente do meu para funcionar?

    Raciel Goncalves Junior Friend
    #277508

    Dear Friends (replying to Danielle Reis),

    Here is in Portuguese Brazilian REVISED (Terça = Terça) and (Sábado = Sábado). You can check it running ok at http://www.lcgconsultoria.com

    —qt

    <div class=”ja-day”>
    <?php
    $day = date(“l”);
    $daynum = date(“j”);
    $month = date(“M”);
    $year = date(“Y”);

    switch($day)
    {
    case “Monday”: $day = “Segunda-Feira,”; break;
    case “Tuesday”: $day = “Terça-Feira,”; break;
    case “Wednesday”: $day = “Quarta-Feira,”; break;
    case “Thursday”: $day = “Quinta-Feira,”; break;
    case “Friday”: $day = “Sexta-Feira,”; break;
    case “Saturday”: $day = “Sábado,”; break;
    case “Sunday”: $day = “Domingo,”; break;
    default: $day = ” “; break;
    }

    switch($month)
    {
    case “Jan”: $month = “Jan”; break;
    case “Feb”: $month = “Fev”; break;
    case “Mar”: $month = “Mar”; break;
    case “Apr”: $month = “Abr”; break;
    case “May”: $month = “Mai”; break;
    case “Jun”: $month = “Jun”; break;
    case “Jul”: $month = “Jul”; break;
    case “Aug”: $month = “Ago”; break;
    case “Sep”: $month = “Set”; break;
    case “Oct”: $month = “Out”; break;
    case “Nov”: $month = “Nov”; break;
    case “Dec”: $month = “Dez”; break;
    default: $month = ” “; break;
    }

    echo $day . ” ” . $daynum . ” ” . $month . ” ” . $year;

    ?>
    </div>
    —unqt

    All the best,

    Raciel

    Raciel Goncalves Junior Friend
    #277816

    Dear Friends,

    The below codes is better

    —qt
    echo “<span>”.$day.”</span>”;
    echo ” <div>”.date(‘j’).” “.$month.”</div>”; //* tPara cambiar la fuente, el color, etc… debes modificar la plantilla css templates/ja_teline_ii/css/template.css -> ja-day *//
    echo ” <span>”.date (‘Y’).”</span>”;
    —unqt

    instead of

    —qt
    echo $day . ” ” . $daynum . ” ” . $month . ” ” . $year;
    —unqt

    Thanks to Pinta from Cali – Colombia at http://www.joomlart.com/?post_type=shop_order&p=111133

    “Saludos” from Itajaí-SC-Brazil,

    Raciel

    roberto_one Friend
    #278323

    Hi
    I used this code on my site:
    <blockquote><div class=”ja-day”>
    <?php
    $day = date(“l”);
    $daynum = date(“j”);
    $month = date(“M”);
    $year = date(“Y”);

    switch($day)
    {
    case “Monday”: $day = “Poniedziałek”; break;
    case “Tuesday”: $day = “Wtorek”; break;
    case “Wednesday”: $day = “Środa”; break;
    case “Thursday”: $day = “Czwartek”; break;
    case “Friday”: $day = “Piątek”; break;
    case “Saturday”: $day = “Sobota”; break;
    case “Sunday”: $day = “Niedziela”; break;
    default: $day = “Onbekend”; break;
    }

    switch($month)
    {
    case “January”: $month = “Styczeń”; break;
    case “February”: $month = “Luty”; break;
    case “March”: $month = “Marzec”; break;
    case “April”: $month = “Kwiecień”; break;
    case “May”: $month = “Maj”; break;
    case “June”: $month = “Czerwiec”; break;
    case “July”: $month = “Lipiec”; break;
    case “August”: $month = “Sierpień”; break;
    case “September”: $month = “Wrzesień”; break;
    case “October”: $month = “Październik”; break;
    case “Listopad”: $month = “Listopad”; break;
    case “December”: $month = “Grudzień”; break;
    default: $month = “Onbekend”; break;
    }

    echo $day . ” ” . $daynum . ” ” . $month . ” ” . $year;
    ?>
    </div></blockquote>
    and on my site it didn`t work very good.

    I see on my site only this :
    <blockquote>Czwartek 6 Onbekend 2008</blockquote>
    Why?

    Raciel Goncalves Junior Friend
    #278327

    Dear Friend,

    You need to abbreviate (make short) the month’s names… I’ve passed the below code to my website template and it has passed…

    —qt
    <div class=”ja-day”>
    <?php
    $day = date(“l”);
    $daynum = date(“j”);
    $month = date(“M”);
    $year = date(“Y”);

    switch($day)
    {
    case “Monday”: $day = “Poniedziałek”; break;
    case “Tuesday”: $day = “Wtorek”; break;
    case “Wednesday”: $day = “Środa”; break;
    case “Thursday”: $day = “Czwartek”; break;
    case “Friday”: $day = “Piątek”; break;
    case “Saturday”: $day = “Sobota”; break;
    case “Sunday”: $day = “Niedziela”; break;
    default: $day = “Onbekend”; break;
    }

    switch($month)
    {
    case “Jan”: $month = “Sty”; break;
    case “Feb”: $month = “Lut”; break;
    case “Mar”: $month = “Mar”; break;
    case “Apr”: $month = “Kwi”; break;
    case “May”: $month = “Maj”; break;
    case “Jun”: $month = “Cze”; break;
    case “Jul”: $month = “Lip”; break;
    case “Aug”: $month = “Sie”; break;
    case “Sep”: $month = “Wrz´”; break;
    case “Oct”: $month = “Paz”; break;
    case “Nov”: $month = “Lis”; break;
    case “Dec”: $month = “Gru”; break;
    default: $month = “Onbekend”; break;
    }

    echo “<span>”.$day.”</span>”;
    echo ” <div>”.date(‘j’).” “.$month.”</div>”; //* To change font, color, etc… go to change the css file at templates/ja_teline_ii/css/template.css -> ja-day *//
    echo ” <span>”.date (‘Y’).”</span>”;
    ?>
    </div>
    —unqt

    All the best,

    Raciel

    stbrides Friend
    #279824

    Like many people I suspect it is a little frustrating when part of the login switches with Joomfish and others parts don’t

    The answers here have been very helpful – I combined that written here with the php coding to switch with the joomfish language being used. In coding on another thread I picked up an extra closing div tag which throw the top my Teline site out and prevented the joomfish flags sitting in the intended div

    This is the combined effort that works on the Teline II template. My example is for Spanish es-es

    <div class=”ja-day”>
    <!– this element below covers the switching of the day, date between languages using the if switch statement of php – can be extend to include other languages –>
    <?php if ($this->language==”es-es”) {
    $day = date(“l”);
    $daynum = date(“d”);
    $month = date(“F”);

    switch($day)
    {
    case “Monday”: $day = “Lunes”; break;
    case “Tuesday”: $day = “Martes”; break;
    case “Wednesday”: $day = “Miércoles”; break;
    case “Thursday”: $day = “Jueves”; break;
    case “Friday”: $day = “Viernes”; break;
    case “Saturday”: $day = “Sábado”; break;
    case “Sunday”: $day = “Domingo”; break;
    default: $day = “”; break;
    }

    switch($month)
    {
    case “January”: $month = “Eno”; break;
    case “February”: $month = “Feb”; break;
    case “March”: $month = “Mar”; break;
    case “April”: $month = “Abr”; break;
    case “May”: $month = “May”; break;
    case “June”: $month = “Jun”; break;
    case “July”: $month = “Jul”; break;
    case “August”: $month = “Ago”; break;
    case “September”: $month = “Sept”; break;
    case “October”: $month = “Oct”; break;
    case “November”: $month = “Nov”; break;
    case “December”: $month = “Dic”; break;
    default: $month = “”; break;
    }

    echo “<span>”.$day.”</span>”;
    echo ” <div>”.$month.” “.$daynum.”</div>”; //* tPara cambiar la fuente, el color, etc… debes modificar la plantilla css templates/ja_teline_ii/css/template.css -> ja-day *//

    }
    ?>
    <?php if ($this->language==”en-gb”) {
    echo “<span>”.date (‘l’).”</span>”;
    echo ” <div>”.date (‘M’).” “.date (‘d’).date (‘S’).”</div>”;
    }
    ?>
    </div>

    To get the Text size to switch over to your required language you use the if else statement

    <?php if ($tmpTools->getParam(JA_TOOL_USER)) { ?>
    <div id=”ja-usertools”>
    <?php

    //section for switching the language of text size on an if else php – original was <strong>Text size</strong> as seen in the echo

    if ($this->language==”es-es”)
    echo ” <strong>Tamaño texto</strong>”;
    else
    echo “<strong>Text size</strong>”;
    ?>

    I have used the same if else statement to switch the text logo over

    <p class=”site-slogan”><?php

    if ($this->language==”es-es”)
    echo ” cuándo usted necesita para saber “;
    else

    echo $sloganText;?></p>
    <?php } ?>

    ristovic Friend
    #287914

    SERBIAN:

    <div class=”ja-day”>
    <?php
    $day = date(“l”);
    $month = date(“m”);

    switch($day)
    {
    case “Monday”: $day = “Ponedeljak”; break;
    case “Tuesday”: $day = “Utorak”; break;
    case “Wednesday”: $day = “Sreda”; break;
    case “Thursday”: $day = “Četvrtak”; break;
    case “Friday”: $day = “Petak”; break;
    case “Saturday”: $day = “Subota”; break;
    case “Sunday”: $day = “Nedelja”; break;
    default: $day = “Onbekend”; break;
    }

    switch($month)
    {
    case “1”: $month = “Januar”; break;
    case “2”: $month = “Februar”; break;
    case “3”: $month = “Mart”; break;
    case “4”: $month = “April”; break;
    case “5”: $month = “Maj”; break;
    case “6”: $month = “Jun”; break;
    case “7”: $month = “Juli”; break;
    case “8”: $month = “Avgust”; break;
    case “9”: $month = “Septembar”; break;
    case “10”: $month = “Oktobar”; break;
    case “11”: $month = “Novembar”; break;
    case “12”: $month = “Decembar”; break;
    default: $month = “Onbekend”; break;
    }

    echo $day . “, ” . date(“j”) . “. ” . $month . ” ” . date(“Y”);
    ?>
    </div>

    😀

Viewing 15 posts - 61 through 75 (of 91 total)

This topic contains 91 replies, has 47 voices, and was last updated by  juremmm 14 years, 2 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum