PDA

View Full Version : Fire&Ice: date format


lsb
05-27-2006, 07:37 PM
Hi all,

is it possible to change the date format (May 19, 2006) from English into German?
I am using Fire&Ice template.

Greetings,
Lars

Sergey Ten
05-27-2006, 08:06 PM
Hello Lars,

Please visit this link:

http://www.esyndicat.com/old_forum/about1873.html

lsb
05-27-2006, 09:20 PM
Hi Sergey!

Hello Lars,

Please visit this link:

http://www.esyndicat.com/old_forum/about1873.html

Did not work for me.
1. In German we use 27. Mai 2006 (not 27 Mai 2006). Perhaps your code would work when adding ". Mai" instead of "Mai" in all the sections where the months have to be modified?! I am not sure if this would cause some troubles somewhere else?!
2. Even after the changes you suggested the detailed view still appeared in English.

Perhaps the following idea is more simple:
What about having 27.05.2006? Then this would be valid not only in German.
Is this changeable in the admin section? There I found the following information for the date format:
%b %e, %Y
I do not know the rules of this code, but perhaps I can change something here?
Hmm, I try...
...
...
%e. %b %Y
is better for me.
Now I only need an idea how to change %b in a digit. Is that possible?
Hmm, let me have a look at Google...
...
...
Ah, I found something!
(http://www.phpreferenz.de/load.php?name=Smarty&getdatei=language.modifier.date.format.html in German, but for sure somewhere else in English, Dutch,...)
No I have changed my date format within the admin panel in: %e.%m.%Y
Seems to work for me at all pages, or do I mess something somewhere else with this change?

Greetings,
Lars

Sergey Ten
05-27-2006, 11:12 PM
Hi Lars,

Please follow this directives:

*** Open your index.php and view-link.php ***
*** Find this code ***


$new_date = "{$matches['3']} ";
$new_date .= $dutch_date[$matches['2']];
$new_date .= ", {$matches['1']}";


*** Change to ***

$new_date = "{$matches['3']}. ";
$new_date .= $dutch_date[$matches['2']];
$new_date .= " {$matches['1']}";


*** Save changes ***

lsb
05-28-2006, 09:38 PM
Hi Lars,

Please follow this directives:
(...)

Thank you!