Welcome, Guest. Please Login or Register.
May 17, 2025, 08:24:44 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  How about set_locale ? (date/timeformat in other language) « previous next »
Pages: [1] Reply Ignore Print
Author Topic: How about set_locale ? (date/timeformat in other language)  (Read 486 times)
MedMan
Noobie
*
Posts: 40


Trust me I'm a doctor...;-)

How about set_locale ? (date/timeformat in other language)
« on: January 16, 2002, 02:08:14 PM »
Reply with quote

In SE 1.1.0 the date/time format is now no longer in DATE but in STRFTIME format.
As mentioned on www.php.net, this enables you to display e.g. months in other languages than englsih, using a set_locale code.


But HOW do you implement this set_locale stuff in YaBB ? Which file(s) should be modfied and what syntax should be used. anyone familiar with this ?
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:How about set_locale ? (date/timeformat in other language)
« Reply #1 on: January 16, 2002, 03:01:55 PM »
Reply with quote

I believe it is set in english.lng :)
Logged

MedMan
Noobie
*
Posts: 40


Trust me I'm a doctor...;-)

Re:How about set_locale ? (date/timeformat in other language)
« Reply #2 on: January 16, 2002, 03:09:57 PM »
Reply with quote

No, just like the previous version, despite that the arrays in the .lng files are translated (in my case into ducth in dutch.lng), the date still appears in January instead of Januari (which is dutch).

How do you "call"/select the array in the .lng file in this timeformat?
Logged
MedMan
Noobie
*
Posts: 40


Trust me I'm a doctor...;-)

Re:How about set_locale ? (date/timeformat in other language)
« Reply #3 on: January 16, 2002, 03:21:04 PM »
Reply with quote

Just modified Settings.php (about rule 97) like this:

$profilebutton = 1;   # 1 to show view profile button under post, or 0 for blank
setlocale ("LC_TIME", "nl_NL");
$timeformatstring = "%d-%B-%Y %R";   # Select your preferred output Format of Time and Date

inserted the bold text and he voila I got my JanuarI

 ;D ;D ;D
Logged
MedMan
Noobie
*
Posts: 40


Trust me I'm a doctor...;-)

Re:How about set_locale ? (date/timeformat in other language)
« Reply #4 on: January 16, 2002, 03:29:19 PM »
Reply with quote

Changed some formats and got stuck in the old JanuarY again ;-(
Logged
andrea
Global Moderator
YaBB God
*****
Posts: 4400


Peace on Earth

WWW
Re:How about set_locale ? (date/timeformat in other language)
« Reply #5 on: January 17, 2002, 07:35:14 PM »
Reply with quote

Hi MedMan,

you did ask the same question in the german language forum, and got your answer there.

There is no need to modify the sources to get foreign language weekdays or month names.

And please do not make double posts.
Logged

Chris Boston
Sr. Member
****
Posts: 262


ICQ - 124305318chris_afc@hotmail.com WWW
Re:How about set_locale ? (date/timeformat in other language)
« Reply #6 on: January 18, 2002, 10:20:31 PM »
Reply with quote

yeah well, how many admins are there that speak German? ;)
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:How about set_locale ? (date/timeformat in other language)
« Reply #7 on: January 18, 2002, 10:46:11 PM »
Reply with quote

At least two...
Logged

Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  How about set_locale ? (date/timeformat in other language) « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.044 seconds with 20 queries.