31
marcan
Re: Dutch month format
  • 2005/11/11 12:54

  • marcan

  • Just can't stay away

  • Posts: 824

  • Since: 2003/10/8


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 ::.

32
Mithrandir
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

33
Tobias
Re: Dutch month format
  • 2005/11/26 5:45

  • Tobias

  • Not too shy to talk

  • Posts: 172

  • Since: 2005/9/13


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.
www.affvu.org

34
incama
Re: Dutch month format
  • 2005/11/26 7:15

  • incama

  • Friend of XOOPS

  • Posts: 513

  • Since: 2003/10/24


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...

35
incama
Re: Dutch month format
  • 2005/11/30 7:18

  • incama

  • Friend of XOOPS

  • Posts: 513

  • Since: 2003/10/24


<{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...

36
incama
Re: Dutch month format
  • 2005/12/6 5:48

  • incama

  • Friend of XOOPS

  • Posts: 513

  • Since: 2003/10/24


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...

37
Mithrandir
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

38
incama
Re: Dutch month format
  • 2006/4/10 7:40

  • incama

  • Friend of XOOPS

  • Posts: 513

  • Since: 2003/10/24


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

39
incama
Re: Dutch month format
  • 2006/5/16 5:14

  • incama

  • Friend of XOOPS

  • Posts: 513

  • Since: 2003/10/24


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...

40
incama
Re: Dutch month format
  • 2006/6/2 14:26

  • incama

  • Friend of XOOPS

  • Posts: 513

  • Since: 2003/10/24


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

Login

Who's Online

214 user(s) are online (37 user(s) are browsing Support Forums)


Members: 0


Guests: 214


more...

Donat-O-Meter

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

Latest GitHub Commits