FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » FUDforum 3.0+ » hmm... some locale problems...
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: hmm... some locale problems... [message #3018 is a reply to message #3017] Fri, 07 June 2002 14:13 Go to previous messageGo to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma:
Senior Member
Administrator
Core Developer
The code is fine, I too have tried a few other locales, such as german, polish, swedish, russian and all have worked fine. But when I try tr_TR locale it seems to break, I suspect this is actually a bug in PHP rather then the forum, mostly because the problem appears for a particular locale.

I did find an solution to this problem however:

Edit the core.inc.t file, go to the line which says:
define('__REQUEST_TIMESTAMP__', time());

and move this line below the
@setlocale(LC_ALL, $GLOBALS['LOCALE']);


which is right below it.

The end result should look like this:
@setlocale(LC_ALL, $GLOBALS['LOCALE']);
define('__REQUEST_TIMESTAMP__', time());


On my system that seems to have solved the problem. I am guessing something about the tr_TR locale makes PHP unset the __REQUEST_TIMESTAMP__ define, which is technically impossible, since defines cannot be undefined in PHP.


FUDforum Core Developer
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: selecting user adds semicolon in PM
Next Topic: boardusage.hlp is broken: missing paragraph
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 12:30:55 GMT 2024

Total time taken to generate the page: 0.05006 seconds