Language Date Block template Finance

Unique Joomla 1.5 template with powerful navigation and stunning design discussion forum
GK User
Sat Aug 07, 2010 3:24 pm
Hello,

How do I change the language from the Date Block in template Finance.
English into Dutch.

I already changed: $_date = $this->params->get("date", 1);
The language in Jooma administrator is set into Dutch.

Please help.
Thanks!

Best Regards,
Wout Touw
User avatar
Fresh Boarder

teitbite
Sun Aug 08, 2010 6:10 pm
Hi

This name is taken from the server, so to forward the language change You will need to write simple code:

Code: Select all
<?php
$monthsLang = array(
1 => January,
2 => February,
...
);
?>


and than replace the in gk_setup.php

Code: Select all
   $date_format = $this->params->get("date_format", 'M j');


to

Code: Select all
   $date_format = date( 'j' ) . ' ' . $monthsLang[ date( 'n' ) ];
User avatar
Moderator

GK User
Sun Aug 08, 2010 9:18 pm
Thanks, but it id not work ...

I put the code in gk_setup.php:

$monthsLang = array(
1 => januari,
2 => februari,
3 => maart,
4 => april,
5 => mei,
6 => juni,
7 => juli,
8 => augustus,
9 => september,
10 => oktober,
11 => november,
12 => december);


$_date = $this->params->get("date", 1);
// $date_format = $this->params->get("date_format", 'j M');
$date_format = date( 'j' ) . ' ' . $monthsLang[ date( 'n' ) ];
User avatar
Fresh Boarder

teitbite
Mon Aug 09, 2010 12:19 pm
Hi

Is it showing any errors? Maby putting the month names in ' ' will do.

Example:

Code: Select all
$monthsLang = array(
1 => 'januari',
2 => 'februari',
...
User avatar
Moderator

GK User
Mon Aug 09, 2010 2:28 pm
This (next line)
9 pm0000003000000543100000054
is the result of

$monthsLang = array(
1 => 'januari',
2 => 'februari',
...

BTW the template is Finance (no Puls)
User avatar
Fresh Boarder

teitbite
Wed Aug 11, 2010 8:24 pm
Hi

Can You please send me ftp access to Your site? I'll check it myself.
User avatar
Moderator

GK User
Thu Aug 12, 2010 10:39 pm
FTP access is sent to your Gmail account.
User avatar
Fresh Boarder

teitbite
Fri Aug 13, 2010 6:26 pm
Hi

Sorry but this data is not working. Can You check it?
User avatar
Moderator

teitbite
Sun Aug 29, 2010 2:26 pm
Hi

The code is ok, but You need to change one more thing at templates/gk_finance/index.php line 88

Code: Select all
<div id="date"><?php echo date($date_format); ?></div>


change to this

Code: Select all
<div id="date"><?php echo $date_format; ?></div>
User avatar
Moderator

GK User
Mon Sep 26, 2011 11:49 am
Hello

If you have multilanguage site how you can translate date, on the same way ? I'm using the same gavick finance ?


Greetings
User avatar
Fresh Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.