Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • kaj johansson Friend
    #123186

    I want to change the calender in top of JA-Teline from english to swedish language.

    MONDAY = MÅNDAG
    THUESDAY = TISDAG
    WEDNESDAY = ONSDAG
    and so on…

    But no mather how i try, i cant get it right. What am i doing wrong?

    I have changed the Global Configuration, tab Locale, to “Language: swedish” and “Country locale: se_SE”

    I have also changed the index.php file of JA-teline to the following code:

    <div class=”ja-day”>
    <?php
    setlocale(LC_TIME, “se_SE”);
    echo “<span>”.strftime (‘%A’).”</span>”;
    echo ” <div>”.strftime (‘%d.’).strftime (‘%b’).” “.strftime (‘%Y’).strftime (‘ ‘).”</div>”;
    ?>
    </div>

    Im hosting my site at http://www.one.com and im using php 4.

    What am i doing wrong here?

    steinar Friend
    #231059

    Are you sure your site is served on a Linux box? Local settings are different if it is a Microsoft server. Microsoft does not understand the standard country codes.
    I have just managed to change to Norwegian by looking at this thread:

    http://www.joomlart.com/forums/topic/changing-the-date/

    Now if only someone could tell me how to put a line break into the php code in order to get the date and the month on different lines …

    Edit: Turns out line break was embarrassingly easy: BR in brackets.

    kaj johansson Friend
    #231129

    Yes, i asked my webhost (one.com) and they said that the site is on a Linux box, with locale settings loaded. So this is just so confusing…

    Is there anyone out there to help me? What am i doing wrong? :confused:

    kaj johansson Friend
    #231220

    After some searching i have found out that country codes not necesarily are the same as languages codes. So in my case it should probably be some kind of language codes. Now i only have to figure out wich standard to use, if it should be ISO 639-1 or maybe ISO 639-2 or maybe even the SIL international standard… and then i must figure out if the global settings override the template settings, or maybe vice versa…

    Pleeeease… help me!? Someone!? What should i put in the locale settings for Sweden?

    <blockquote>setlocale(LC_TIME, “swe_SV”)</blockquote>

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  kaj johansson 17 years ago.

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