-
AuthorPosts
-
simpsonix Friend
simpsonix
- Join date:
- July 2009
- Posts:
- 52
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 27
- Thanked:
- 1 times in 1 posts
July 18, 2009 at 4:50 pm #142832sorry, i have to open this thread, since it has already been answered. but unfortunately i didn’t get the answer. it would be great, if anybody could post the relevant part of the code. or explain in more detail where and what you have to change.
and i have to mention that i only have english installation.
i tried changing en-GB.ini but nothing happenedmy changes:
DATE_FORMAT_LC=%A, %e %B %Y %H:%M
DATE_FORMAT_LC1=%A, %d %B %Y
DATE_FORMAT_LC2=%A, %d %B %Y %H:%M
DATE_FORMAT_LC3=%d %B %Y
DATE_FORMAT_LC4=%d.%m.%y
DATE_FORMAT_JS1=y-m-d
%Y-%M-%D=%Y-%m-%d
%A, %B %E=%A, %B %e# Months
JANUARY_SHORT=Jan
JANUARY=Jänner
FEBRUARY_SHORT=Feb
FEBRUARY=Februar
MARCH_SHORT=Mar
MARCH=März
APRIL_SHORT=Apr
APRIL=April
MAY_SHORT=Mai
MAY=Maiand as you can see, i also changed the names of the months and days into german.
what is still missing?
thanks!
stilpunkt Friendstilpunkt
- Join date:
- September 2008
- Posts:
- 32
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 6
- Thanked:
- 2 times in 1 posts
July 19, 2009 at 9:32 am #311496Schau mal hier:
http://www.joomlart.com/forums/topic/date-translation-login/
1 user says Thank You to stilpunkt for this useful post
simpsonix Friendsimpsonix
- Join date:
- July 2009
- Posts:
- 52
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 27
- Thanked:
- 1 times in 1 posts
July 19, 2009 at 9:06 pm #311550thanks for the answer. unfortunately it didn’t completely work on my site (ja tube). i attached the suggested code for german (see below), but what happened was that additional to the date next to the login (still in english), there appeared a second date (above the logo) in geman. plus: it didn’t say juli (for july) but “onbekend”, which was part of the code. what does onbekend mean?
thats the code i used in index.php line 87:
<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>help would really be appreciated.
thanks in advance!hawver Friendhawver
- Join date:
- February 2008
- Posts:
- 35
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 3
- Thanked:
- 13 times in 12 posts
July 19, 2009 at 9:46 pm #311551The reason the dates appear twice is because you left the original code in it.
Step 1:
You should remove the lines that contains the following code in index.php. That is the original date presentation
<?php echo “<span>”.date (‘l’).” “.date (‘M’).” “.date (‘d’).date (‘S’).”</span>”; ?>Step 2
You should add the following code at the same spot you removed the original source in step 1:<?php
$day = date(“l”);
$daynum = date(“j”);
$month = date(“F”);
$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;
?>Step 3
You can solve your second problem by changing. (already changed by step 2)
$month = date(“M”);
to
$month = date(“F”);
Good luck
1 user says Thank You to hawver for this useful post
-
AuthorPosts
This topic contains 4 replies, has 3 voices, and was last updated by hawver 15 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum