Translating OCS

OCS development discussion, enhancement requests, third-party patches and plug-ins.

Moderators: jmacgreg, michael

Forum rules
The Public Knowledge Project Support Forum is moving to

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
Posts: 1
Joined: Fri Jun 29, 2012 3:15 pm

Translating OCS

Postby acuadec » Fri Jun 29, 2012 3:28 pm


I have been translated the OCS locale files to Turkish Language. But i need help for translating dates, (months). I could not find any locale file related to dates.

Example: June -> Haziran, July -> Temmuz etc...


Site Admin
Posts: 910
Joined: Tue Jan 10, 2006 6:20 am

Re: Translating OCS

Postby JasonNugent » Thu Jun 13, 2013 11:34 am

Hi acuadec,

OJS doesn't handle the locale translations for dates. We use Smarty for our templates, and Smarty lets us format dates within our templates using a date_format modifier, which ultimately calls PHP's strftime() function. That function is aware of locales, and is dependent on your web server having the correct default locale set for PHP. You can do this either through the Intl extension for PHP, or possibly also through various global variables set via .htaccess, e.g. something like this:

Code: Select all

SetEnv   LC_ALL  tr_TR.UTF-8


Return to “OCS Development”

Who is online

Users browsing this forum: No registered users and 1 guest