xoops forums

marcan

Just can't stay away
Posted on: 2005/11/11 12:54
marcan
marcan (Show more)
Just can't stay away
Posts: 824
Since: 2003/10/8
#31

Re: Dutch month format

Still thinking and elaborating a solution.

You shall be inform here when a true solution has been found.

Cheers!
.:: marcan (aka mal aka Marc-André) ::.
.:: Open Source :: The SmartFactory ::.
.:: XOOPS Professional Services :: INBOX International ::.

Mithrandir

XOOPS is my life!
Posted on: 2005/11/23 10:43
Mithrandir
Mithrandir (Show more)
XOOPS is my life!
Posts: 6320
Since: 2003/6/21
#32

Re: Dutch month format

A temp solution for use in a theme could be:

<{php}>
setlocale(LC_TIME'nl_NL');
<{/
php}>
<{
$smarty.now|date_format:"%B %e, %Y"}>


I haven't tried it, but it ought to at least get you closer to a solution. Since Smarty's date_format uses strftime, the locale setting will be taken into consideration.

Note that the nl_NL is not confirmed - the Danish is da_DK, but I couldn't find a clear indication of what is used in Holland.
"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

Tobias

Not too shy to talk
Posted on: 2005/11/26 5:45
Tobias
Tobias (Show more)
Not too shy to talk
Posts: 172
Since: 2005/9/13
#33

Re: Dutch month format

Now that you guys are working on it, I would preferably have a solution which doesn't depend on setting the server locale as, it seems, I can't change it on my server. Some global sanitation of dates retrieved from the database. May be difficult or impossible to implement, with all the modules going their own ways and pulling dates independently from the database. But in an ideal world, that would be my ideal idea of how it would work best for me Thanks for all the work, and keep it up.

incama

Friend of XOOPS
Posted on: 2005/11/26 7:15
incama
incama (Show more)
Friend of XOOPS
Posts: 513
Since: 2003/10/24
#34

Re: Dutch month format

Thank you very much Mith, I will try this this afternoon and report back to you.
Thank you for the effort
Webdesign
Sitting Ducks?!
I hate politics, give me a stylie instead...

incama

Friend of XOOPS
Posted on: 2005/11/30 7:18
incama
incama (Show more)
Friend of XOOPS
Posts: 513
Since: 2003/10/24
#35

Re: Dutch month format

<{php}>
setlocale(LC_TIME'nl_NL');
<{/
php}>
<{
$smarty.now|date_format:"%A %e %B %Y"}>

nicely shows up as :
woensdag 30 november 2005, so the localtime is now set correctly, but the next step would be how to convert the rest of dates according to the above?

I have tried to edit my news item templates like this:
<div class="item">
  <
div class="itemHead"><span class="itemTitle"><{$story.title}></span></div>
  <
div class="itemInfo">
  <
span class="itemPostDate"><{php}>
setlocale(LC_TIME'nl_NL');
<{/
php}><{$story.posttime|date_format:"%A %e %B %Y"}></span>
  </
div>
  <
div class="itemBody">
  <
class="itemText"><{$story.text}></p>
  </
div>
  <
div class="itemFoot">
 <
span class="itemPermaLink"><{$story.morelink}></span>
  </
div>
</
div>

which again shows the correct date format, only it shows up like:
donderdag 1 januari 1970

any suggestions how to continue?
Webdesign
Sitting Ducks?!
I hate politics, give me a stylie instead...

incama

Friend of XOOPS
Posted on: 2005/12/6 5:48
incama
incama (Show more)
Friend of XOOPS
Posts: 513
Since: 2003/10/24
#36

Re: Dutch month format

Hello, yes it's me again,.I know the dev are looking into this, and I do have alot of patience to spare. I'm just wondering, if there is going to be solution of this problem, will it be fixed in XOOPS version 2.2, 2.0 or both.
Webdesign
Sitting Ducks?!
I hate politics, give me a stylie instead...

Mithrandir

XOOPS is my life!
Posted on: 2005/12/6 8:14
Mithrandir
Mithrandir (Show more)
XOOPS is my life!
Posts: 6320
Since: 2003/6/21
#37

Re: Dutch month format

re. your template problem with News - are you sure that $story.posttime is a UNIX timestamp? IIRC, News does a lot of processing of output values prior to sending it to the template (admin links, title includes topic etc.)

If there is going to be a solution of this problem on a core level, it will probably be in XOOPS version 2.3 on which Skalpa will disclose more information soon.
"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

incama

Friend of XOOPS
Posted on: 2006/4/10 7:40
incama
incama (Show more)
Friend of XOOPS
Posts: 513
Since: 2003/10/24
#38

Re: Dutch month format

Any update on this?
Webdesign
Sitting Ducks?!
I hate politics, give me a stylie instead...

incama

Friend of XOOPS
Posted on: 2006/5/16 5:14
incama
incama (Show more)
Friend of XOOPS
Posts: 513
Since: 2003/10/24
#39

Re: Dutch month format

I'll keep on bumping this issue, because I feel XOOPS isn't really multi-languale if it isn't capable to produce date formatting (eg monday, tuesday, january, february) in all kind of different languages. This may seem minor to most (english speaking) people, but I really think I have a point.

And don't come saying php is an English based language, other (there I go again) cms/blog-ware writtin in php is capcable in doing this.

So yet again Bump
Webdesign
Sitting Ducks?!
I hate politics, give me a stylie instead...

incama

Friend of XOOPS
Posted on: 2006/6/2 14:26
incama
incama (Show more)
Friend of XOOPS
Posts: 513
Since: 2003/10/24
#40

Re: Dutch month format

*Bump*,.
Webdesign
Sitting Ducks?!
I hate politics, give me a stylie instead...