Jamit Software Forum
Welcome, Guest. Please login or register.
May 29, 2023, 05:20:45 am

Login with username, password and session length
Search:     Advanced search
May 5th, 2010 - Jamit Software Launches the Market!
3,080 Posts in 791 Topics by 1,999,006 Members
Latest Member: LibbyStead
* Home Help Search Login Register
+  Jamit Software Forum
|-+  Jamit Job Board Customers
| |-+  User-to-User Support
| | |-+  Date localization
« previous next »
Pages: [1] Print
Author Topic: Date localization  (Read 5377 times)
Tijn
Jammers
Jr. Member
*
Posts: 19


« 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?
Logged
Peter
Administrator
Hero Member
*****
Posts: 248



« Reply #1 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.
Logged

SECURE your site BEFORE you wish you had! Use plugins by COLOSSAL MIND!
Tijn
Jammers
Jr. Member
*
Posts: 19


« Reply #2 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 Wink

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?
Logged
Peter
Administrator
Hero Member
*****
Posts: 248



« Reply #3 on: August 03, 2010, 01:52:25 am »

.... it'd be kind of pointless if the locale isn't used by the JobBoard code Wink....

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

SECURE your site BEFORE you wish you had! Use plugins by COLOSSAL MIND!
Peter
Administrator
Hero Member
*****
Posts: 248



« Reply #4 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().
Logged

SECURE your site BEFORE you wish you had! Use plugins by COLOSSAL MIND!
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.058 seconds with 18 queries.