-
AuthorPosts
-
January 15, 2011 at 9:01 pm #158814
Hi,
Is it possible to change time format to 24h instead of 12 in teline IV (last update in the top left corner), and get the date in french language ?
Thank’s
XPROPARIS
Web, Development & Event Agencywalkysss Friend
walkysss
- Join date:
- February 2010
- Posts:
- 115
- Downloads:
- 0
- Uploads:
- 17
- Thanks:
- 47
- Thanked:
- 1 times in 1 posts
January 16, 2011 at 3:22 am #372044To get the the date in french , i will suggest you to install the french package : fr-FR_joomla_lang_full.1.5.20 – Install it and go in language manager and switch the french Lang as default then save
2- To Change the Last updated :go in your : fr-FR.ini (language File) ( Im using CPANEL ) and change Last Updated to Last Update=Mise à jour
Your fist question ..i dont know how .. i have to find it
steinar Friend
steinar
- Join date:
- July 2007
- Posts:
- 319
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 11
- Thanked:
- 98 times in 84 posts
January 16, 2011 at 5:18 pm #372104Although I don’t know whether it is advisable, I can tell you what I did:
In templates >> ja_teline_iv >> blocks >> topbar.php I removed the upper (ja-day clearfix) part and replaced it whith this:
[PHP] <p class=”ja-day clearfix”>
<?php
echo(strftime(” %A %e %b %Y | week %V | day no %j “).”<br />”);
?>
</p>
[/PHP]This gives the following representation in your language:
SUNDAY 16 JAN 2011 | WEEK 02 | DAY NO 016Addendum: I used a non-breaking space before and after the code inside the quotation marks, it looks better.
The week number is according to international (ISO) standard, where the first Thursday in a given year always is in week number one. The United States have their own numbering systems and need to use either %U (for Sunday as first day in the week) or %w (for Monday as first day).
The Last updated part I replaced whith:
[PHP] <p class=”ja-updatetime”><span>
<?php echo JText::_(‘ your translation of last updated ‘)?></span><em><?php //echo T3Common::getLastUpdate(); ?>
<?php
$cet = T3Common::getLastUpdate();
$cet = str_replace(” GMT”, “”, $cet);
date_default_timezone_set(“CET”);
$timestamp = strtotime($cet);
date_default_timezone_set(“Europe/Paris”);
$cet = date(“H.i.s “, $timestamp);
echo $cet.””;
?></em></p>[/PHP]
This is not perfect, but it seems to work.
🙂1 user says Thank You to steinar for this useful post
-
AuthorPosts
This topic contains 3 replies, has 3 voices, and was last updated by steinar 14 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum