-
AuthorPosts
-
February 4, 2009 at 9:14 pm #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 Friendjbgorg
- Join date:
- April 2008
- Posts:
- 80
- Downloads:
- 0
- Uploads:
- 11
- Thanks:
- 13
- Thanked:
- 3 times in 1 posts
February 5, 2009 at 8:10 pm #289757Try 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
February 6, 2009 at 3:07 am #289807Thanks 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 Friendmigors
- Join date:
- December 2007
- Posts:
- 129
- Downloads:
- 0
- Uploads:
- 19
- Thanks:
- 33
- Thanked:
- 3 times in 1 posts
February 6, 2009 at 6:20 am #289833I 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:
February 6, 2009 at 2:54 pm #289941Can 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!
February 8, 2009 at 8:09 pm #290133Hi
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>February 8, 2009 at 10:08 pm #290164I 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.
February 8, 2009 at 10:17 pm #290165Thank 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 Friendjbgorg
- Join date:
- April 2008
- Posts:
- 80
- Downloads:
- 0
- Uploads:
- 11
- Thanks:
- 13
- Thanked:
- 3 times in 1 posts
February 9, 2009 at 2:11 pm #290278This has nothing to do with Joomla. Using a html editor you can get the exactly html code for these letters:
æ = æ
ø = ø
å = å
Regards,
CarlosFebruary 9, 2009 at 3:28 pm #290287Thank you very much 😀
jbgorg Friendjbgorg
- Join date:
- April 2008
- Posts:
- 80
- Downloads:
- 0
- Uploads:
- 11
- Thanks:
- 13
- Thanked:
- 3 times in 1 posts
April 13, 2009 at 11:22 pm #301188please, how change date to spanish. thanks.
APOSTOLOS FOUKIS FriendAPOSTOLOS FOUKIS
- Join date:
- December 2008
- Posts:
- 170
- Downloads:
- 137
- Uploads:
- 36
- Thanks:
- 54
- Thanked:
- 1 times in 1 posts
May 9, 2009 at 8:59 pm #304167And 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 . ” ” . ” “;
?>July 2, 2009 at 10:16 am #309764Thanks 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 Friendariane1001
- Join date:
- October 2009
- Posts:
- 13
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
December 10, 2009 at 1:09 pm #326296Dutch 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> -
AuthorPosts
This topic contains 91 replies, has 47 voices, and was last updated by juremmm 14 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum