Hi, i found that the formatted getDatePublished
failed or have the wrong month translation for Bahasa Indonesia
<span>{$issue->getDatePublished()|date_format:$dateFormatLong}</span>
June should be translated as Juni not June, any idea?
OJS Version 3.3.0.6
1 Like
Hi @Yudy_Ananda,
Thanks for flagging this. I’m inquiring with some other members of our teams on how to go about addressing this, and I (or another team member) will follow-up when I receive a more clear response.
Best regards,
Roger
PKP Team
Hi everyone,
Date formats in OJS, on the front end in the templates, are handled by Smarty, the template engine the software uses. You can specify the format in your config.inc.php
file, and then ultimately the date_format
Smarty modifier changes the date into the format you want, as described here:
https://www.smarty.net/docs/en/language.modifier.date.format.tpl
If the month string is not translating correctly, it may be an underlying issue with how PHP’s locales are configured on your server.
Cheers,
Jason
that clould make sense, it’s still under development using xampp in my local computer