-
AuthorPosts
-
April 28, 2008 at 3:22 pm #128004
Hello Community,
cam someone explain me, how can i translate the days in the login form, like monday etc. into my speach?
*greets* Kim
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
April 29, 2008 at 9:41 am #247232Hi Kim8589 !
You open index.php file find code section at bout line 111 :
<div class="ja-day">
<?php
echo "<span>".date ('l')."</span>";
echo " <div>".date ('M')." ".date ('d').date ('S')."</div>";
?>
</div>
this code for display days. You can translate it by use switch command :
<div class="ja-day">
<?php
$days = date ('l');
switch ( $days) {
case 'Monday' :
echo "[monday of mylanguage]" ;
break;
.................
}
echo " <div>".date ('M')." ".date ('d').date ('S')."</div>";
?>
</div>
1 user says Thank You to Sherlock for this useful post
April 29, 2008 at 10:32 am #247244Thanks m8! And how can i change the size of the login box ? cause now the date ist in 2 rows 🙁
Greets!
KimMay 2, 2008 at 10:20 am #247546Hello, in which index.php (map) can i find this code?
I searched but couldn’t find it.:((
Also i want to change the month notation in Dutch.Can you help me out?
TIA Greetings Ton
PGLion FriendPGLion
- Join date:
- March 2006
- Posts:
- 107
- Downloads:
- 0
- Uploads:
- 17
- Thanks:
- 8
- Thanked:
- 7 times in 1 posts
May 2, 2008 at 10:59 am #247548It’s here: public_html/templates/ja_teline_ii/index.php line 111
May 2, 2008 at 11:41 am #247549Thank you PGLion,
Do you know how to change the date(month) notation?
TIA
PGLion FriendPGLion
- Join date:
- March 2006
- Posts:
- 107
- Downloads:
- 0
- Uploads:
- 17
- Thanks:
- 8
- Thanked:
- 7 times in 1 posts
May 2, 2008 at 12:33 pm #247553I am not a coder but managed to get this:
<div class="ja-day">
<?php
$day = date("l");
$daynum = date("j");
$month = date("M");
$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 = "Onbekend"; break;
}echo $day . " " . $daynum . " " . $month . " " . $year;
?>
</div>Can somebody check this and allign it properly?
May 2, 2008 at 1:24 pm #247557Wow, thanx PGLion,
This works perfectcool:
Greetings Ton
May 2, 2008 at 1:25 pm #247558Hi PGLion,
yes your code works on my site. And here the code for the german language:<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>gozal Friendgozal
- Join date:
- June 2006
- Posts:
- 15
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
May 2, 2008 at 3:12 pm #247565here’s the french one
Patrick
<div class=”ja-day”>
<?php
$day = date(“l”);
$daynum = date(“j”);
$month = date(“M”);
$year = date(“Y”);switch($day)
{
case “Monday”: $day = “Lundi”; break;
case “Tuesday”: $day = “Mardi”; break;
case “Wednesday”: $day = “Mercredi”; break;
case “Thursday”: $day = “Jeudi”; break;
case “Friday”: $day = “Vendredi”; break;
case “Saturday”: $day = “Samedi”; break;
case “Sunday”: $day = “Dimanche”; break;
default: $day = “Onbekend”; break;
}
switch($month)
{
case “January”: $month = “Janvier”; break;
case “February”: $month = “Fevrier”; break;
case “March”: $month = “Mars”; break;
case “April”: $month = “Avril”; break;
case “May”: $month = “Mai”; break;
case “June”: $month = “Juin”; break;
case “July”: $month = “Juillet”; break;
case “August”: $month = “Aout”; break;
case “September”: $month = “Septembre”; break;
case “October”: $month = “Octobre”; break;
case “November”: $month = “Novembre”; break;
case “December”: $month = “Decembre”; break;
default: $month = “Onbekend”; break;
}
echo $day . ” ” . $daynum . ” ” . $month . ” ” . $year;
?>
</div>1 user says Thank You to gozal for this useful post
May 2, 2008 at 5:22 pm #247570nice one thanks m8!
Why is there an off-set, when i implement the code?
Link : http://www.imaedia.de/gap.jpg
Greets Kim!
onboom Friendonboom
- Join date:
- March 2008
- Posts:
- 26
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 5
- Thanked:
- 2 times in 1 posts
May 3, 2008 at 6:11 am #247597Vietnamese code:
[PHP]
<div class=”ja-day”>
<?php
$day = date(“l”);
$daynum = date(“j”);
$month = date(“M”);
$year = date(“Y”);switch($day)
{
case “Monday”: $day = “Thứ Hai”; break;
case “Tuesday”: $day = “Thứ Ba”; break;
case “Wednesday”: $day = “Thứ Tư”; break;
case “Thursday”: $day = “Thứ Năm”; break;
case “Friday”: $day = “Thứ Sáu”; break;
case “Saturday”: $day = “Thứ Bảy”; break;
case “Sunday”: $day = “Chủ Nhật”; break;
default: $day = “Ngày”; break;
}switch($month)
{
case “January”: $month = “Tháng 1”; break;
case “February”: $month = “Tháng 2”; break;
case “March”: $month = “Tháng 3”; break;
case “April”: $month = “Tháng 4”; break;
case “May”: $month = “Tháng 5”; break;
case “June”: $month = “Tháng 6”; break;
case “July”: $month = “Tháng 7”; break;
case “August”: $month = “Tháng 8”; break;
case “September”: $month = “Tháng 9”; break;
case “October”: $month = “Tháng 10”; break;
case “November”: $month = “Tháng 11”; break;
case “December”: $month = “Tháng 12”; break;
default: $month = “Tháng”; break;
}echo $day . ” ” . $daynum . ” ” . $month . ” ” . $year;
?>
</div>
[/PHP]onboom Friendonboom
- Join date:
- March 2008
- Posts:
- 26
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 5
- Thanked:
- 2 times in 1 posts
May 3, 2008 at 6:26 am #247598Vietnamese – Tiếng Việt Nam:
Fix update:
[PHP]
<div class=”ja-day”>
<?php
$day = date(“l”);
$daynum = date(“j”);
$month = date(“M”);
$year = date(“Y”);switch($day)
{
case “Monday”: $day = “Thứ Hai, ngày”; break;
case “Tuesday”: $day = “Thứ Ba, ngày”; break;
case “Wednesday”: $day = “Thứ Tư, ngày”; break;
case “Thursday”: $day = “Thứ Năm, ngày”; break;
case “Friday”: $day = “Thứ Sáu, ngày”; break;
case “Saturday”: $day = “Thứ Bảy, ngày”; break;
case “Sunday”: $day = “Chủ Nhật, ngày”; break;
default: $day = “Ngày”; break;
}switch($month)
{
case “January”: $month = “Tháng 1, năm”; break;
case “February”: $month = “Tháng 2, năm”; break;
case “March”: $month = “Tháng 3, năm”; break;
case “April”: $month = “Tháng 4, năm”; break;
case “May”: $month = “Tháng 5, năm”; break;
case “June”: $month = “Tháng 6, năm”; break;
case “July”: $month = “Tháng 7, năm”; break;
case “August”: $month = “Tháng 8, năm”; break;
case “September”: $month = “Tháng 9, năm”; break;
case “October”: $month = “Tháng 10, năm”; break;
case “November”: $month = “Tháng 11, năm”; break;
case “December”: $month = “Tháng 12, năm”; break;
default: $month = “Tháng”; break;
}echo $day . ” ” . $daynum . ” ” . $month . ” ” . $year;
?>
</div>
[/PHP]
————————————–
Sample site here:
Ja Teline II – VietnamesePGLion FriendPGLion
- Join date:
- March 2006
- Posts:
- 107
- Downloads:
- 0
- Uploads:
- 17
- Thanks:
- 8
- Thanked:
- 7 times in 1 posts
May 3, 2008 at 7:09 am #247603<em>@Kim8589 51487 wrote:</em><blockquote>nice one thanks m8!
Why is there an off-set, when i implement the code?
Link : http://www.imaedia.de/gap.jpg
Greets Kim!</blockquote>
As said before, I am not a coder. When I posted this code I also wondered why this code is off-set. It’s a start but we need someone to fix it, not only the off-set but also color. Who can help?
May 3, 2008 at 7:59 am #247606Hello to all,
Does someone know how i can align the date with log-in?
As you can see the date floats compared to the login.
http://www.apbsquad.info/TIA,
Greetings Ton
I solved it moving this partical line:
[PHP]echo $day . ” ” . $daynum . ” ” . $month . ” ” . $year;[/PHP]
with some changes
to:[PHP]<ul>
<?php echo $day . ” ” . $daynum . ” ” . $month . ” ” . $year;?><jdoc:include type=”modules” name=”ja-login” />
<!–module search–>
<?php if($this->countModules(‘user4’)) : ?>
<jdoc:include type=”modules” name=”user4″ />
<?php endif; ?>
</ul>
[/PHP] -
AuthorPosts
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