-
AuthorPosts
-
gaygiorgia Friend
gaygiorgia
- Join date:
- June 2008
- Posts:
- 218
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 15
- Thanked:
- 15 times in 1 posts
July 15, 2008 at 7:53 pm #259984try to read all the thread.
http://www.joomlart.com/forums/showpost.php?p=60296&postcount=28
July 17, 2008 at 12:41 pm #260523well, i’ve tries to use this code, but it does not work perfectly.
1) it gives default month value (obnekent ), so i have to erase this string
2) original version date (Jul17) is in dark foreground, but when i replace original code into new, there is no dar foreground left… it looks much better in original version when there is a separation like this…
orpheus2510 Friendorpheus2510
- Join date:
- July 2007
- Posts:
- 149
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 3
- Thanked:
- 14 times in 1 posts
July 17, 2008 at 5:27 pm #260560rubikonas;67431well, i’ve tries to use this code, but it does not work perfectly.
1) it gives default month value (obnekent ), so i have to erase this string
Just use the first three letters of the original names of month – Jan instead of January etc.
AND READ THIS THREAD COMPLETELY! We have had this question and got the answer some time ago, just one post above your’s!2) original version date (Jul17) is in dark foreground, but when i replace original code into new, there is no dar foreground left… it looks much better in original version when there is a separation like this…
Take a look also at this thread – it works (J1.5 – not for J1.0!), perhaps it can be a solution for you as well (the dark background is shown after the changes!)?
nic0 Friendnic0
- Join date:
- July 2006
- Posts:
- 4
- Downloads:
- 8
- Uploads:
- 1
- Thanks:
- 2
- Thanked:
- 3 times in 1 posts
July 18, 2008 at 9:09 pm #260776use setlocale() and strftime()
In line 113 rewrite:
<?php
setlocale(LC_TIME, "es_es");
echo "<span>".strftime("%A")."</span>";
echo " <div>".strftime('%d')." ".strftime ('de %B')."</div>";
?>
Other parameters:
PHP official ref: http://www.php.net/manual/en/function.strftime.phpModify CSS style to capitalize date:
.ja-day {
float: left;
padding: 2px 0 0;
text-transform:capitalize;
}
July 21, 2008 at 12:22 pm #261170It’s my polish translation
[PHP] <div class=”ja-day”>
<?php
$day = date(“l”);
$month = date(“m”);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 = “”; break;
}switch($month)
{
case “1”: $month = “Stycznia”; break;
case “2”: $month = “Lutego”; break;
case “3”: $month = “Marca”; break;
case “4”: $month = “Kwietnia”; break;
case “5”: $month = “Maja”; break;
case “6”: $month = “Czerwca”; break;
case “7”: $month = “Lipca”; break;
case “8”: $month = “Sierpnia”; break;
case “9”: $month = “Września”; break;
case “10”: $month = “Października”; break;
case “11”: $month = “Listopada”; break;
case “12”: $month = “Grudnia”; break;
default: $month = “”; break;
}echo $day . “, ” . date(“j”) . “. ” . $month . ” ” . date(“Y”);
?>
</div>[/PHP]migors Friendmigors
- Join date:
- December 2007
- Posts:
- 129
- Downloads:
- 0
- Uploads:
- 19
- Thanks:
- 33
- Thanked:
- 3 times in 1 posts
July 23, 2008 at 11:55 am #261734Can you tell me from where jateline 2 gets these dates, fromjoomla language file or somewhere else?
If i dont wont to add code, is it possible to change language whwere it resists
July 23, 2008 at 12:02 pm #261735you can go on easier way (i gess so)
you can try to go to language/en_GB and to adapt all files by changing term from english to you language
en_GB.in is the main file
change words after “=”do not forget to backup files if anythuing goes wrong.
good luck
migors Friendmigors
- Join date:
- December 2007
- Posts:
- 129
- Downloads:
- 0
- Uploads:
- 19
- Thanks:
- 33
- Thanked:
- 3 times in 1 posts
July 23, 2008 at 12:46 pm #261745thanks for repley but nothing happens! I even delited that file en_GB. and no changes. So where does it takes data from?
When i tried above solutions, them changes template. I am building one language website so if I change defoult language it would be ok. But how. I have instaled local Latvian language I canot find where change that f…… date 🙂 . it takes too long time
July 23, 2008 at 12:57 pm #261746try to look in other files in that directory. they belong to other modules. It should work. I think.. 80 %
July 23, 2008 at 1:07 pm #261749anyway,
there are two dates in my teline II – http://www.piguperku.lt
1 in the top
I solved this problem by changing the code adding echo (search the forum – there must be date translation problem solved)other date is in the articles (created, updated). I solved it using earlier method, that i described (in lanuguage folder)
migors Friendmigors
- Join date:
- December 2007
- Posts:
- 129
- Downloads:
- 0
- Uploads:
- 19
- Thanks:
- 33
- Thanked:
- 3 times in 1 posts
July 23, 2008 at 2:15 pm #261764Ok i managed, tried all examples and one was ok 🙂 I realy canot understand where from it takes that data?
jbgorg Friendjbgorg
- Join date:
- April 2008
- Posts:
- 80
- Downloads:
- 0
- Uploads:
- 11
- Thanks:
- 13
- Thanked:
- 3 times in 1 posts
July 28, 2008 at 3:09 pm #262728Joomla Teline II takes date from server php libraries in this case:
[PHP].ja-day {
float: left;
padding: 2px 0 0;
text-transform:capitalize;
}<?php
setlocale(LC_TIME, “es_es”);
echo “<span>”.strftime(“%A”).”</span>”;
echo ” <div>”.strftime(‘%d’).” “.strftime (‘de %B’).”</div>”;
?>
[/PHP]Where “es_es” is the language of the date (in this case Spanish), if you want english write: “en_en”
migors Friendmigors
- Join date:
- December 2007
- Posts:
- 129
- Downloads:
- 0
- Uploads:
- 19
- Thanks:
- 33
- Thanked:
- 3 times in 1 posts
July 28, 2008 at 9:29 pm #262751thanks a lot
July 29, 2008 at 6:52 pm #262929Attention: Change “Guigno” to “Giugno”
<em>@felsimedia 52532 wrote:</em><blockquote>Italian:
<div class=”ja-day”>
<?php
$day = date(“l”);
$daynum = date(“j”);
$month = date(“M”);
$year = date(“Y”);switch($day)
{
case “Monday”: $day = “Lunedi”; break;
case “Tuesday”: $day = “Martedi”; break;
case “Wednesday”: $day = “Mercoledi”; break;
case “Thursday”: $day = “Giovedi”; break;
case “Friday”: $day = “Venerdi”; break;
case “Saturday”: $day = “Sabato”; break;
case “Sunday”: $day = “Domenica”; break;
default: $day = “Ignoto”; break;
}switch($month)
{
case “January”: $month = “Gennaio”; break;
case “February”: $month = “Febbraio”; break;
case “March”: $month = “Marzo”; break;
case “April”: $month = “Aprile”; break;
case “May”: $month = “Maggio”; break;
case “June”: $month = “Guigno”; break;
case “July”: $month = “Luglio”; break;
case “August”: $month = “Agosto”; break;
case “September”: $month = “Settembre”; break;
case “October”: $month = “Ottobre”; break;
case “November”: $month = “Novembre”; break;
case “December”: $month = “Dicembre”; break;
default: $month = “Ignoto”; break;
}echo $day . “, ” . $daynum . “. ” . $month . ” ” . $year;
?>
</div></blockquote>gaygiorgia Friendgaygiorgia
- Join date:
- June 2008
- Posts:
- 218
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 15
- Thanked:
- 15 times in 1 posts
July 30, 2008 at 6:32 am #263002<em>@dallacosta 70370 wrote:</em><blockquote>Attention: Change “Guigno” to “Giugno”</blockquote>
quand’è che imparerete a non fermarvi ai primi 2 post?
http://www.joomlart.com/forums/showpost.php?p=60296&postcount=28 -
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