-
AuthorPosts
-
linebille Friend
linebille
- Join date:
- September 2007
- Posts:
- 15
- Downloads:
- 0
- Uploads:
- 3
- Thanked:
- 2 times in 1 posts
August 7, 2008 at 12:14 pm #264309Should it not be : [PHP]$month = date(“F”);[/PHP] instead of [PHP]$month = date(“M”);[/PHP] ‘M’ is for ‘Jan’, ‘Feb’ ect.
pinta Friendpinta
- Join date:
- March 2006
- Posts:
- 16
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 5
- Thanked:
- 3 times in 1 posts
August 23, 2008 at 5:33 pm #266926Esta es la version en español (Spanish day version joomla TELINE II – )
<div class=”ja-day”>
<?php
$day = date(“l”);
$month = date(“F”);
//* No se necesita $daynum and $year*. *//switch($day)
{
case “Monday”: $day = “Lunes”; break;
case “Tuesday”: $day = “Martes”; break;
case “Wednesday”: $day = “Miercoles”; break;
case “Thursday”: $day = “Jueves”; break;
case “Friday”: $day = “Viernes”; break;
case “Saturday”: $day = “Sábado”; break;
case “Sunday”: $day = “Domingo”; break;
default: $day = “Desconocido”; break;
}switch($month)
{
case “January”: $month = “Enero”; break;
case “February”: $month = “Febrero”; break;
case “March”: $month = “Marzo”; break;
case “April”: $month = “Abril”; break;
case “May”: $month = “Mayo”; break;
case “June”: $month = “Junio”; break;
case “July”: $month = “Julio”; break;
case “August”: $month = “Agosto”; break;
case “September”: $month = “Septiembre”; break;
case “October”: $month = “Octobre”; break;
case “November”: $month = “Novimbre”; break;
case “December”: $month = “Diciembre”; break;
default: $month = “Desconocido”; break;
}
echo “<span>”.$day.”</span>”;
echo ” <div>”.date(‘j’).” “.$month.”</div>”; //* tPara cambiar la fuente, el color, etc… debes modificar la plantilla css templates/ja_teline_ii/css/template.css -> ja-day *//
echo ” <span>”.date (‘Y’).”</span>”;
?>
</div>1 user says Thank You to pinta for this useful post
September 7, 2008 at 2:15 am #269163great solution…i managed to solve it also..thank you. 🙂
September 16, 2008 at 12:31 pm #270826Hi guys,
I tried the above with Teline 1 but it doesn’t work… Any idea to change the “day” to a french one?
Thanks
alioztr Friendalioztr
- Join date:
- September 2008
- Posts:
- 197
- Downloads:
- 0
- Uploads:
- 21
- Thanks:
- 44
- Thanked:
- 3 times in 1 posts
September 19, 2008 at 8:41 pm #271426<em>@euronur 58086 wrote:</em><blockquote>And here the code for the turkish language:
default: $day = "Onbekend"; break;
}switch($month)
{
default: $month = "Onbekend"; break;
}echo $day . ", " . $daynum . ". " . $month . " " . $year;
?>
</div>
</blockquote>what does onbekend mean. Can i delete this code.
ThanksOctober 18, 2008 at 12:17 pm #275992Thank you,
and this is my contribution: Macedonian days and months:
<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;
October 21, 2008 at 5:35 pm #276474Hi.. I’m new at this. I have the same problem with the month configuration. I had to change it manually. I coudn’t find the right settings here in teh forum.
I also can’t change The Global Configuration time zone to Brazil. It says that I can’t write on configuration.php (I think my server don’t allow it). Is there any way that I can do it manually?
And when I write in portuguese Tuesday (Terça), instead of “ç” I get some japanese letter.
Can someone help me?
In Portuguese(BRAZIL)
<div class=”ja-day”>
<?php
$day = date(“l”);
$daynum = date(“j”);
$month = date(“M”);
$year = date(“Y”);switch($day)
{
case “Monday”: $day = “Segunda”; break;
case “Tuesday”: $day = “Terça”; break;
case “Wednesday”: $day = “Quarta”; break;
case “Thursday”: $day = “Quinta”; break;
case “Friday”: $day = “Sexta”; break;
case “Saturday”: $day = “Sábado”; break;
case “Sunday”: $day = “Domingo”; break;
default: $day = “Onbekend”; break;
}switch($month)
{
case “January”: $month = “janeiro”; break;
case “February”: $month = “fevereiro”; break;
case “March”: $month = “março”; break;
case “April”: $month = “abril”; break;
case “May”: $month = “maio”; break;
case “June”: $month = “junho”; break;
case “July”: $month = “julho”; break;
case “August”: $month = “agosto”; break;
case “September”: $month = “setembro”; break;
case “October”: $month = “outubro”; break;
case “November”: $month = “novembro”; break;
case “December”: $month = “dezembro”; break;
default: $month = “onbekend”; break;
}echo $day . “, ” . $daynum . ” de ” . $month . ” de ” . $year;
?>
</div>Thanks
Raciel Goncalves Junior FriendRaciel Goncalves Junior
- Join date:
- September 2014
- Posts:
- 4
- Downloads:
- 0
- Uploads:
- 0
- Thanked:
- 1 times in 2 posts
October 29, 2008 at 1:51 pm #277420Dear Friends,
Here is in Portuguese (Brazilian) one:
—qt
<div class=”ja-day”>
<?php
$day = date(“l”);
$daynum = date(“j”);
$month = date(“M”);
$year = date(“Y”);switch($day)
{
case “Monday”: $day = “Segunda-Feira,”; break;
case “Tuesday”: $day = “Terça-Feira,”; break;
case “Wednesday”: $day = “Quarta-Feira,”; break;
case “Thursday”: $day = “Quinta-Feira,”; break;
case “Friday”: $day = “Sexta-Feira,”; break;
case “Saturday”: $day = “Sábado,”; break;
case “Sunday”: $day = “Domingo,”; break;
default: $day = ” “; break;
}switch($month)
{
case “Jan”: $month = “Jan”; break;
case “Feb”: $month = “Fev”; break;
case “Mar”: $month = “Mar”; break;
case “Apr”: $month = “Abr”; break;
case “May”: $month = “Mai”; break;
case “Jun”: $month = “Jun”; break;
case “Jul”: $month = “Jul”; break;
case “Aug”: $month = “Ago”; break;
case “Sep”: $month = “Set”; break;
case “Oct”: $month = “Out”; break;
case “Nov”: $month = “Nov”; break;
case “Dec”: $month = “Dez”; break;
default: $month = ” “; break;
}echo $day . ” ” . $daynum . ” ” . $month . ” ” . $year;
?>
</div>
—unqtB/Rgds,
Raciel Gonçalves Junior
Itajaí (SC) – BrazilOctober 30, 2008 at 3:18 am #277476But is your ‘ç’ working? Você colocou algum código diferente do meu para funcionar?
Raciel Goncalves Junior FriendRaciel Goncalves Junior
- Join date:
- September 2014
- Posts:
- 4
- Downloads:
- 0
- Uploads:
- 0
- Thanked:
- 1 times in 2 posts
October 30, 2008 at 10:51 am #277508Dear Friends (replying to Danielle Reis),
Here is in Portuguese Brazilian REVISED (Terça = Terça) and (Sábado = Sábado). You can check it running ok at http://www.lcgconsultoria.com
—qt
<div class=”ja-day”>
<?php
$day = date(“l”);
$daynum = date(“j”);
$month = date(“M”);
$year = date(“Y”);switch($day)
{
case “Monday”: $day = “Segunda-Feira,”; break;
case “Tuesday”: $day = “Terça-Feira,”; break;
case “Wednesday”: $day = “Quarta-Feira,”; break;
case “Thursday”: $day = “Quinta-Feira,”; break;
case “Friday”: $day = “Sexta-Feira,”; break;
case “Saturday”: $day = “Sábado,”; break;
case “Sunday”: $day = “Domingo,”; break;
default: $day = ” “; break;
}switch($month)
{
case “Jan”: $month = “Jan”; break;
case “Feb”: $month = “Fev”; break;
case “Mar”: $month = “Mar”; break;
case “Apr”: $month = “Abr”; break;
case “May”: $month = “Mai”; break;
case “Jun”: $month = “Jun”; break;
case “Jul”: $month = “Jul”; break;
case “Aug”: $month = “Ago”; break;
case “Sep”: $month = “Set”; break;
case “Oct”: $month = “Out”; break;
case “Nov”: $month = “Nov”; break;
case “Dec”: $month = “Dez”; break;
default: $month = ” “; break;
}echo $day . ” ” . $daynum . ” ” . $month . ” ” . $year;
?>
</div>
—unqtAll the best,
Raciel
…Raciel Goncalves Junior FriendRaciel Goncalves Junior
- Join date:
- September 2014
- Posts:
- 4
- Downloads:
- 0
- Uploads:
- 0
- Thanked:
- 1 times in 2 posts
November 2, 2008 at 9:14 pm #277816Dear Friends,
The below codes is better
—qt
echo “<span>”.$day.”</span>”;
echo ” <div>”.date(‘j’).” “.$month.”</div>”; //* tPara cambiar la fuente, el color, etc… debes modificar la plantilla css templates/ja_teline_ii/css/template.css -> ja-day *//
echo ” <span>”.date (‘Y’).”</span>”;
—unqtinstead of
—qt
echo $day . ” ” . $daynum . ” ” . $month . ” ” . $year;
—unqtThanks to Pinta from Cali – Colombia at http://www.joomlart.com/?post_type=shop_order&p=111133
“Saludos” from Itajaí-SC-Brazil,
Raciel
…November 6, 2008 at 3:41 pm #278323Hi
I used this code on my site:
<blockquote><div class=”ja-day”>
<?php
$day = date(“l”);
$daynum = date(“j”);
$month = date(“M”);
$year = date(“Y”);switch($day)
{
case “Monday”: $day = “Poniedziałek”; break;
case “Tuesday”: $day = “Wtorek”; break;
case “Wednesday”: $day = “Środa”; break;
case “Thursday”: $day = “Czwartek”; break;
case “Friday”: $day = “Piątek”; break;
case “Saturday”: $day = “Sobota”; break;
case “Sunday”: $day = “Niedziela”; break;
default: $day = “Onbekend”; break;
}switch($month)
{
case “January”: $month = “Styczeń”; break;
case “February”: $month = “Luty”; break;
case “March”: $month = “Marzec”; break;
case “April”: $month = “Kwiecień”; break;
case “May”: $month = “Maj”; break;
case “June”: $month = “Czerwiec”; break;
case “July”: $month = “Lipiec”; break;
case “August”: $month = “Sierpień”; break;
case “September”: $month = “Wrzesień”; break;
case “October”: $month = “Październik”; break;
case “Listopad”: $month = “Listopad”; break;
case “December”: $month = “Grudzień”; break;
default: $month = “Onbekend”; break;
}echo $day . ” ” . $daynum . ” ” . $month . ” ” . $year;
?>
</div></blockquote>
and on my site it didn`t work very good.I see on my site only this :
<blockquote>Czwartek 6 Onbekend 2008</blockquote>
Why?Raciel Goncalves Junior FriendRaciel Goncalves Junior
- Join date:
- September 2014
- Posts:
- 4
- Downloads:
- 0
- Uploads:
- 0
- Thanked:
- 1 times in 2 posts
November 6, 2008 at 4:33 pm #278327Dear Friend,
You need to abbreviate (make short) the month’s names… I’ve passed the below code to my website template and it has passed…
—qt
<div class=”ja-day”>
<?php
$day = date(“l”);
$daynum = date(“j”);
$month = date(“M”);
$year = date(“Y”);switch($day)
{
case “Monday”: $day = “Poniedziałek”; break;
case “Tuesday”: $day = “Wtorek”; break;
case “Wednesday”: $day = “Środa”; break;
case “Thursday”: $day = “Czwartek”; break;
case “Friday”: $day = “Piątek”; break;
case “Saturday”: $day = “Sobota”; break;
case “Sunday”: $day = “Niedziela”; break;
default: $day = “Onbekend”; break;
}switch($month)
{
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;
}echo “<span>”.$day.”</span>”;
echo ” <div>”.date(‘j’).” “.$month.”</div>”; //* To change font, color, etc… go to change the css file at templates/ja_teline_ii/css/template.css -> ja-day *//
echo ” <span>”.date (‘Y’).”</span>”;
?>
</div>
—unqtAll the best,
Raciel
…1 user says Thank You to Raciel Goncalves Junior for this useful post
stbrides Friendstbrides
- Join date:
- January 2008
- Posts:
- 23
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 5
- Thanked:
- 2 times in 1 posts
November 20, 2008 at 11:16 pm #279824Like many people I suspect it is a little frustrating when part of the login switches with Joomfish and others parts don’t
The answers here have been very helpful – I combined that written here with the php coding to switch with the joomfish language being used. In coding on another thread I picked up an extra closing div tag which throw the top my Teline site out and prevented the joomfish flags sitting in the intended div
This is the combined effort that works on the Teline II template. My example is for Spanish es-es
<div class=”ja-day”>
<!– this element below covers the switching of the day, date between languages using the if switch statement of php – can be extend to include other languages –>
<?php if ($this->language==”es-es”) {
$day = date(“l”);
$daynum = date(“d”);
$month = date(“F”);switch($day)
{
case “Monday”: $day = “Lunes”; break;
case “Tuesday”: $day = “Martes”; break;
case “Wednesday”: $day = “Miércoles”; break;
case “Thursday”: $day = “Jueves”; break;
case “Friday”: $day = “Viernes”; break;
case “Saturday”: $day = “Sábado”; break;
case “Sunday”: $day = “Domingo”; break;
default: $day = “”; break;
}switch($month)
{
case “January”: $month = “Eno”; break;
case “February”: $month = “Feb”; break;
case “March”: $month = “Mar”; break;
case “April”: $month = “Abr”; break;
case “May”: $month = “May”; break;
case “June”: $month = “Jun”; break;
case “July”: $month = “Jul”; break;
case “August”: $month = “Ago”; break;
case “September”: $month = “Sept”; break;
case “October”: $month = “Oct”; break;
case “November”: $month = “Nov”; break;
case “December”: $month = “Dic”; break;
default: $month = “”; break;
}echo “<span>”.$day.”</span>”;
echo ” <div>”.$month.” “.$daynum.”</div>”; //* tPara cambiar la fuente, el color, etc… debes modificar la plantilla css templates/ja_teline_ii/css/template.css -> ja-day *//}
?>
<?php if ($this->language==”en-gb”) {
echo “<span>”.date (‘l’).”</span>”;
echo ” <div>”.date (‘M’).” “.date (‘d’).date (‘S’).”</div>”;
}
?>
</div>To get the Text size to switch over to your required language you use the if else statement
<?php if ($tmpTools->getParam(JA_TOOL_USER)) { ?>
<div id=”ja-usertools”>
<?php//section for switching the language of text size on an if else php – original was <strong>Text size</strong> as seen in the echo
if ($this->language==”es-es”)
echo ” <strong>Tamaño texto</strong>”;
else
echo “<strong>Text size</strong>”;
?>I have used the same if else statement to switch the text logo over
<p class=”site-slogan”><?php
if ($this->language==”es-es”)
echo ” cuándo usted necesita para saber “;
elseecho $sloganText;?></p>
<?php } ?>ristovic Friendristovic
- Join date:
- October 2008
- Posts:
- 26
- Downloads:
- 0
- Uploads:
- 24
- Thanks:
- 7
- Thanked:
- 1 times in 1 posts
January 24, 2009 at 12:59 am #287914SERBIAN:
<div class=”ja-day”>
<?php
$day = date(“l”);
$month = date(“m”);switch($day)
{
case “Monday”: $day = “Ponedeljak”; break;
case “Tuesday”: $day = “Utorak”; break;
case “Wednesday”: $day = “Sreda”; break;
case “Thursday”: $day = “Četvrtak”; break;
case “Friday”: $day = “Petak”; break;
case “Saturday”: $day = “Subota”; break;
case “Sunday”: $day = “Nedelja”; break;
default: $day = “Onbekend”; break;
}switch($month)
{
case “1”: $month = “Januar”; break;
case “2”: $month = “Februar”; break;
case “3”: $month = “Mart”; break;
case “4”: $month = “April”; break;
case “5”: $month = “Maj”; break;
case “6”: $month = “Jun”; break;
case “7”: $month = “Juli”; break;
case “8”: $month = “Avgust”; break;
case “9”: $month = “Septembar”; break;
case “10”: $month = “Oktobar”; break;
case “11”: $month = “Novembar”; break;
case “12”: $month = “Decembar”; break;
default: $month = “Onbekend”; break;
}echo $day . “, ” . date(“j”) . “. ” . $month . ” ” . date(“Y”);
?>
</div>😀
-
AuthorPosts
This topic contains 91 replies, has 47 voices, and was last updated by juremmm 14 years, 2 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum