-
AuthorPosts
-
October 11, 2007 at 9:49 pm #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 Friendsteinar
- Join date:
- July 2007
- Posts:
- 319
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 11
- Thanked:
- 98 times in 84 posts
October 15, 2007 at 10:21 am #231059Are 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.
October 16, 2007 at 7:31 pm #231129Yes, 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:
October 19, 2007 at 11:11 am #231220After 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>
-
AuthorPosts
This topic contains 4 replies, has 2 voices, and was last updated by kaj johansson 17 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum