Jamit Software Forum

Jamit Job Board Customers => User-to-User Support => Topic started by: Tijn on July 29, 2010, 09:16:04 am



Title: Date localization
Post by: Tijn on July 29, 2010, 09:16:04 am
JobBoard uses the date() and gmdate() functions all over the place to format dates.
Sadly, these dates are alway localized & translated to english.
I've managed to isolate a few of them using a plugin that uses the more appropriate setlocale() and strftime()/gmstrftime().
Is there a way to localize all dates at once, again, without having to resort to hacking the core JobBoard code and breaking updatability?


Title: Re: Date localization
Post by: Peter on July 31, 2010, 11:42:39 pm
I am the author of the plugin Langdet, which is a language detector.

I could give users the option to set locale using the setlocale() function in this plugin. The locale would be configurable for each language.

However, I have no control over invoking the display of time strings. Users would need to replace date() with strftime() manually in their JJB system.


Title: Re: Date localization
Post by: Tijn on August 02, 2010, 07:25:06 am
Doing a setlocale based on GeoIP wouldn't be that hard (done it before for other sites; quite a nice feature to have), but it'd be kind of pointless if the locale isn't used by the JobBoard code ;)

Together with all the other localization and theme issues in JJB, it's starting to dawn on me that I might be forced to edit core code and suffer the consequences for updating if I want it truely 100% localized and themed. Too bad, considering it would be far more easy for Jamit to improve JobBoard than it would be for me.

I've read elsewhere that JobBoard might be going open source (instead of shared source, as it is now), does that mean we get the possibility to put fixes like that into the core code ourselves?


Title: Re: Date localization
Post by: Peter on August 03, 2010, 01:52:25 am
.... it'd be kind of pointless if the locale isn't used by the JobBoard code ;)....

It wouldn't be pointless. It would help a lot. I will put it into the next version of LANGDET plugin.


Title: Re: Date localization STRFTIME !
Post by: Peter on September 19, 2010, 10:12:48 am
JobBoard uses the date() and gmdate() functions all over the place to format dates.
Sadly, these dates are alway localized & translated to english.
I've managed to isolate a few of them using a plugin that uses the more appropriate setlocale() and strftime()/gmstrftime().
Is there a way to localize all dates at once, again, without having to resort to hacking the core JobBoard code and breaking updatability?

GOOD NEWS!

Plugin LANGDET version 2.05 now automatically selects predefined settings for setlocale(), so you can use strftime().