OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



French Dates

Are you responsible for making OCS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, michael, John

Forum rules
What to do if you have a technical problem with OCS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved. Please note that this FAQ is OJS-centric, but most issues are applicable to both platforms.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OCS Conference Support and Discussion subforum; if you have a development question, try the OCS Development subforum.

French Dates

Postby tshore » Tue Nov 24, 2009 10:00 am

I just did a little hack to allow dates to be displayed in the correct language. In the file:

lib/smarty/plugins/modifier.date_format.php

I added the following two lines at the top of the function smarty_modifier_date_format:
Code: Select all
$locale = Locale::getLocale().'.UTF-8';
   setlocale(LC_ALL, $locale);

Warning: The suffix that I added to the locale: .UTF-8 won't work on all servers. If it doesn't work, then you will need to look at the locales installed on your server and see exactly what they were called. I found the locales on my server in /usr/share/locale.
tshore
 
Posts: 263
Joined: Fri Nov 18, 2005 12:48 pm
Location: Hamilton, Ontario

Return to OCS Technical Support

Who is online

Users browsing this forum: Bing [Bot] and 2 guests