How to get dates and times in local format?
|
Posted
#57935
(In Topic #12649)
|
|
|---|---|
|
Fan in action |
|
|
Posted
|
|
|
ocStaff (admin) |
These are controlled by some language strings. More details are in our internationalisation tutorial. If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource. |
|
Posted
|
|
|
Fan in action |
If I'm not mistaken, they are concentrated in the "global"-template, where the following items appear: 10. English: . Explanation: A comma-separated list of locale codes, given in priority (different systems have different availability, and convention) Located in [descriptions]locale 18. en-GB Located in [strings]locale 19. en-GB Located in [strings]dictionary Probably, I didn't handle these right, when I 'translated' these as follows: 10. "nl,en" 18. "en-GB" 19. "en-GB" I guess for 18 and 19 it should be: "nl". For 10, I'm not sure yet. I'll try and report back. |
|
Posted
|
|
|
Fan in action |
"nl-NL,nl_NL,nld-NLD,nld_NLD". I don't quite understand what string nr. 10 does. Chris, could you explain? Now I see that time-notation is not correct anymore (it tries to give times in a more Dutch way, that is, without "AM" of "PM", but it shouldn't just leave those out. Instead it should distinguish between 8.00 o'clock and 20.00 o'clock). I'll try to correct that. |
|
Posted
|
|
|
ocStaff (admin) |
date_* / time_* / calendar_* is the bit in the tutorial I was referring to. But actually Launchpad will be referring to these according to what the original English versions were, rather than the codenames; look for strings like "%i:%M %p". If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource. |
|
Posted
|
|
|
Fan in action |
Anyone interested in how to do this, can take a look at Launchpad (template global for Dutch language). One more thing: posts on my site tend to show a time which is one hour before 'realtime' over here. When looking how to correct this, I noticed that in the 'global' template, there is a string "date_verbose_time" with the following explanation: "English: %i:%M %p. Explanation: Note that if you're running an international site, you might want to put your timezone on here and related time strings". My question: how could I put my timezone here? I've been checking the internationalisation manual and the PHP manual, but I cannot figure it out. Could someone give me an example for this (preferably for my timezone, i.e. Amsterdam)? Thanks as always, Frits |
|
Posted
|
|
|
Fan in action |
Admin Zone - Setup - Site Options - Current time. Terrific! Frits |
|
Posted
|
|
|
Fan in action |
Anyone know how to make a hard space at Launchpad? |
1 guests and 0 members have just viewed this: None
Control functions:







