View Full Version : RE: Change Dutch date
dousma
05-14-2006, 01:01 AM
Sergey I did exactly as you told in topic http://www.esyndicat.com/forum/viewtopic.php?t=1873&highlight=dutch
but when I click on the link detail it still remains in English, see http://www.dousma.org/ffa/auto-vervoer/kinderstoeltje-nl-l1158.html
do you have any idea what is going wrong?
I also like to have the news date into Dutch which now still is in English.
dousma
05-29-2006, 10:02 AM
Sorry but does anyone have a clue?
Nick Collins
05-30-2006, 07:59 AM
Hi dousma, please make sure that you made all changes correctly.
dousma
05-30-2006, 08:17 AM
Nick as I wrote before as far as I can see I did make all changes the exact way but it didn't work for me.
Nick Collins
06-06-2006, 06:55 AM
Hope Sergey has already solved you problem!
dousma
06-06-2006, 09:44 PM
Indead he did and he did a great job!
John Turner
02-21-2007, 05:39 AM
Hi there here one more solution (V2.0.x):
1. open '../util.php'
add following code int bottom of the file before '?>'
function convert_date_time($aParams)
{
$months = array
(
'01' => 'januari',
'02' => 'februari',
'03' => 'maart',
'04' => 'april',
'05' => 'mei',
'06' => 'juni',
'07' => 'juli',
'08' => 'augustus',
'09' => 'september',
'10' => 'oktober',
'11' => 'november',
'12' => 'december'
);
$date= explode(" ",$aParams['aDate']);
$ret = explode("-",$date['0']);
$return_date = $ret['2'].' '.$months[$ret['1']].' '.$ret['0'];
return $return_date;
}
Make changes in compliance with your needs.
*** save and close it.
2. open '../classes/DirSmarty.php'
find following code
$gDirSmarty->register_function("print_stars", "print_stars");
$gDirSmarty->register_function("print_pagerank", "print_pagerank");
add following code after it
$gDirSmarty->register_function("convert_date_time", "convert_date_time");
*** save and close it.
3. templates actions (for SunnyDay as example)
A. open 'footer.tpl'
find following code
<div class="news-date">{$one_news.date|date_format:$config.date_format}</div>
replace with following code
<div class="news-date">{convert_date_time aDate=$one_news.date}</div>
*** save and close it.
B. open 'link-display.tpl'
find following code
{$lang.link_added}: {$link.date|date_format:$config.date_format}) ::
replace with following code
{$lang.link_added}: {convert_date_time aDate=$link.date}) ::
*** save and close it.
C. open 'news.tpl'
find following code
<div class="news-date">{$lang.posted}{$onews.date|date_format:$config.dat e_format}</div>
replace with following code
<div class="news-date">{$lang.posted}{convert_date_time aDate=$onews.date}</div>
*** save and close it.
D. open 'view-link.tpl'
find following code
<tr>
<td><strong>{$lang.link_added}:</strong></td>
<td>{$link.date|date_format:$config.date_format}</td>
</tr>
replace with following code
<tr>
<td><strong>{$lang.link_added}:</strong></td>
<td>{convert_date_time aDate=$link.date}</td>
</tr>
*** save and close it.
Thats all!
Hope it helps.
John Turner
02-21-2007, 06:05 AM
Hi there here one more solution (for V2.1.x):
1. open '../includes/util.php'
add following code in the bottom of the file
function convert_date_time($aParams)
{
$months = array
(
'01' => 'januari',
'02' => 'februari',
'03' => 'maart',
'04' => 'april',
'05' => 'mei',
'06' => 'juni',
'07' => 'juli',
'08' => 'augustus',
'09' => 'september',
'10' => 'oktober',
'11' => 'november',
'12' => 'december'
);
$date= explode(" ",$aParams['aDate']);
$ret = explode("-",$date['0']);
$return_date = $ret['2'].' '.$months[$ret['1']].' '.$ret['0'];
return $return_date;
}
Make changes in compliance with your needs.
*** save and close it.
2. open '../includes/config.inc.php'
find following code
$gDirSmarty->register_function("print_stars", "print_stars");
$gDirSmarty->register_function("print_pagerank", "print_pagerank");
add following code after it
$gDirSmarty->register_function("convert_date_time", "convert_date_time");
*** save and close it.
3. templates actions (for GreenLeaves as example)
A. open 'header.tpl'
find following code
<div class="news-date">{$one_news.date|date_format:$config.date_format}</div>
replace with following code
<div class="news-date">{convert_date_time aDate=$one_news.date}</div>
*** save and close it.
B. open 'link-display.tpl'
find following code
{$lang.link_added}: {$link.date|date_format:$config.date_format}) ::
replace with following code
{$lang.link_added}: {convert_date_time aDate=$link.date}) ::
*** save and close it.
C. open 'news.tpl'
find following code
<div class="news-date">{$single_news.date|date_format:$config.date_format }</div>
replace with following code
<div class="news-date">{convert_date_time aDate=$single_news.date}</div>
find following code
<div class="news-date">{$lang.posted}{$onews.date|date_format:$config.dat e_format}</div>
replace with following code
<div class="news-date">{$lang.posted}{convert_date_time aDate=$onews.date}</div>
*** save and close it.
D. open 'view-link.tpl'
find following code
<tr>
<td><strong>{$lang.link_added}:</strong></td>
<td>{$link.date|date_format:$config.date_format}</td>
</tr>
replace with following code
<tr>
<td><strong>{$lang.link_added}:</strong></td>
<td>{convert_date_time aDate=$link.date}</td>
</tr>
*** save and close it.
Thats all!
Hope it helps.
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.