Viewing 15 posts - 76 through 90 (of 91 total)
  • Author
    Posts
  • ecohosting Friend
    #289543

    This is great and I appreciate the fix but what about multiple language sites? Isn’t date supposed to be part of the language extraction layer for Joomla? Like the ‘Read more’ (which also does not work if we change language). There are some things that get translated properly and others that do not.

    How do I set the ‘MORE:” that exists now back to the standard ‘Read More’ so it gets properly translated when using multiple languages?

    jbgorg Friend
    #289757

    Try using this code instead:

    <div class="ja-day">
    <?php
    setlocale(LC_TIME, "es_es");
    echo "<span>".strftime("%A")."</span>";
    echo " <div>".strftime('%d')." ".strftime ('de %B')."</div>";
    ?>
    </div>

    Tell me if this works for you.

    regards

    ecohosting Friend
    #289807

    Thanks jbgorg. That does work but only for a single language. Would you or anyone else know how to make it work with Joomfish and multiple language sites?

    It would be interesting to know why Joomlart created the template this way.

    migors Friend
    #289833

    I only now understand that if I am going to use multi language site, I should change template. It is not normal. Too many work is invested in building site using Jateline II.:confused:

    ecohosting Friend
    #289941

    Can someone from Joomlart please address this? We have spent a lot of time on this template only to find out it does not support multiple languages.

    Joomlart Developers: if you are going to do this then please post it in the templates description. There are a lot of people who use Joomfish and MUST HAVE multi-lingual compatible templates. When you hack these elements you essentially break the standard structure of Joomla. If a template is a hack then tell us!

    alasadi Friend
    #290133

    Hi

    I have translated the day/Months to Danish and now the day is shown ok, but the month is “Unknown” no matter what I do???

    I used the german code and replaced the german with Danish
    Help?

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

    switch($day)
    {
    case “Monday”: $day = “Montag”; break;
    case “Tuesday”: $day = “Dienstag”; break;
    case “Wednesday”: $day = “Mittwoch”; break;
    case “Thursday”: $day = “Donnerstag”; break;
    case “Friday”: $day = “Freitag”; break;
    case “Saturday”: $day = “Samstag”; break;
    case “Sunday”: $day = “Sonntag”; break;
    default: $day = “Onbekend”; break;
    }

    switch($month)
    {
    case “January”: $month = “Januar”; break;
    case “February”: $month = “Februar”; break;
    case “March”: $month = “Maerz”; break;
    case “April”: $month = “April”; break;
    case “May”: $month = “Mai”; break;
    case “June”: $month = “Juni”; break;
    case “July”: $month = “Juli”; break;
    case “August”: $month = “August”; break;
    case “September”: $month = “September”; break;
    case “October”: $month = “Oktober”; break;
    case “November”: $month = “November”; break;
    case “December”: $month = “Dezember”; break;
    default: $month = “Onbekend”; break;
    }

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

    ecohosting Friend
    #290164

    I think it was mentioned earlier in the post but you have to use a 3 letter abbreviation for the month……like this:

    {
    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;
    }

    I took out the default line as it didn’t make sense to me.

    alasadi Friend
    #290165

    Thank you very much.. It works..

    I have another question.. In danish we have the letters æ, ø and å.. But when I writes sunday in danish (søndag), joomla can not read the ø.. I think it have something to do with the unicode.. What can I do to solve this problem? :((

    jbgorg Friend
    #290278

    This has nothing to do with Joomla. Using a html editor you can get the exactly html code for these letters:

    æ = æ

    ø = ø

    å = å

    Regards,
    Carlos

    alasadi Friend
    #290287

    Thank you very much 😀

    jbgorg Friend
    #290297

    Maybe the solution is to find out a module that shows the date and that supports joomfish. Please, search here . If you find something please let us know.

    jose vega Friend
    #301188

    please, how change date to spanish. thanks.

    APOSTOLOS FOUKIS Friend
    #304167

    And here the code for the greek language:
    <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 . ” ” . ” “;
    ?>

    advenire Friend
    #309764

    Thanks for this solution!
    Below is what works on my swedish (not multilingual) Joomla 1.5.11 site. I changed the original months to 3 letters as mentioned earlier in this post. I also changed the layout part at the end to fit with the original JA design.

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

    switch($day)
    {
    case “Monday”: $day = “Måndag”; break;
    case “Tuesday”: $day = “Tisdag”; break;
    case “Wednesday”: $day = “Onsdag”; break;
    case “Thursday”: $day = “Torsdag”; break;
    case “Friday”: $day = “Fredag”; break;
    case “Saturday”: $day = “Lördag”; break;
    case “Sunday”: $day = “Söndag”; break;
    default: $day = “”; break;
    }

    switch($month)
    {
    case “Jan”: $month = “Januari”; break;
    case “Feb”: $month = “Februari”; break;
    case “Mar”: $month = “Mars”; break;
    case “Apr”: $month = “April”; break;
    case “May”: $month = “Maj”; break;
    case “Jun”: $month = “Juni”; break;
    case “Jul”: $month = “Juli”; break;
    case “Aug”: $month = “Augusti”; break;
    case “Sep”: $month = “September”; break;
    case “Oct”: $month = “Oktober”; break;
    case “Nov”: $month = “November”; break;
    case “Dec”: $month = “December”; break;
    default: $month = “”; break;
    }

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

    ariane1001 Friend
    #326296

    Dutch version with month writen out:

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

    switch($day)
    {
    case “Monday”: $day = “Maandag”; break;
    case “Tuesday”: $day = “Dinsdag”; break;
    case “Wednesday”: $day = “Woensdag”; break;
    case “Thursday”: $day = “Donderdag”; break;
    case “Friday”: $day = “Vrijdag”; break;
    case “Saturday”: $day = “Zaterdag”; break;
    case “Sunday”: $day = “Zondag”; break;
    default: $day = “Onbekend”; break;
    }

    switch($month)
    {
    case “January”: $month = “Januari”; break;
    case “February”: $month = “Februari”; break;
    case “March”: $month = “Maart”; break;
    case “April”: $month = “April”; break;
    case “May”: $month = “Mei”; break;
    case “June”: $month = “Juni”; break;
    case “July”: $month = “Juli”; break;
    case “August”: $month = “Augustus”; break;
    case “September”: $month = “September”; break;
    case “October”: $month = “Oktober”; break;
    case “November”: $month = “November”; break;
    case “December”: $month = “December”; break;
    default: $month = ” “; break;
    }

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

Viewing 15 posts - 76 through 90 (of 91 total)

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

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