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
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
-
- 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:
and than replace the in gk_setup.php
to
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' ) ];
-
- 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' ) ];
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' ) ];
-
- 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:
Is it showing any errors? Maby putting the month names in ' ' will do.
Example:
- Code: Select all
$monthsLang = array(
1 => 'januari',
2 => 'februari',
...
-
- 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)
9 pm0000003000000543100000054
is the result of
$monthsLang = array(
1 => 'januari',
2 => 'februari',
...
BTW the template is Finance (no Puls)
-
- 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.
Can You please send me ftp access to Your site? I'll check it myself.
-
- Moderator
- GK User
- Thu Aug 12, 2010 10:39 pm
FTP access is sent to your Gmail account.
-
- Fresh Boarder
- teitbite
- Fri Aug 13, 2010 6:26 pm
Hi
Sorry but this data is not working. Can You check it?
Sorry but this data is not working. Can You check it?
-
- 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
change to this
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>
-
- 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
If you have multilanguage site how you can translate date, on the same way ? I'm using the same gavick finance ?
Greetings
-
- Fresh Boarder
10 posts
• Page 1 of 1