1
mschmid
date week names in german instead english
  • 2006/10/18 18:52

  • mschmid

  • Just popping in

  • Posts: 28

  • Since: 2002/9/19


I have in the html code this:

<{$smarty.now|date_format:"%A %e %B %Y"}>

It works fine. Only the language for the Weekdays are in english and not in german.
I have the german language files installed and selectet.
=> does not help
Have read on the web that the language for this smarty cal is defined in php!?
I have XOOPS v2.0.14 and PHP 4.4.0 Zend Engine v1.3.0,
Has some one an idea how I can change this? Any hint will help

thx
Markus

2
Mithrandir
Re: date week names in german instead english

You'll need to find some way of calling setlocale() with the German locale

http://www.php.net/manual/en/function.setlocale.php
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software

3
mschmid
Re: date week names in german instead english
  • 2006/10/26 22:55

  • mschmid

  • Just popping in

  • Posts: 28

  • Since: 2002/9/19


I was a bit offline.....
=> thx for the answer. It helped

I add to the header.php:

setlocale(LC_ALL, 'de_DE.ISO8859-1');

the lang code I got by doing a "locale -a" on the FreeBSD console. If I did de_DE as the normal default = It does not work. So you have to use the one the system shows you.
BTW: On linux was the de_DE runing.

Login

Who's Online

177 user(s) are online (116 user(s) are browsing Support Forums)


Members: 1


Guests: 176


Mamba,

more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits