[Tiki-devel] Tracker item calculation field date and multilingual
Bernard Sfez via TikiWiki-devel <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello, I post this in the list because it look to me something more related to the developers knowledge than power users. In a tracker I use a item calculation field to extract the month from another (complete date) field. (date (str F) paymentsDate) It will output “September” and unlike other fields it won’t be changed considering the language of the Tiki. How can I made this multilingual ? Is the function using https://www.php.net/manual/en/function.date.php (not good for multilingual) ? To format dates in other languages, you should use the setlocale() <https://www.php.net/manual/en/function.setlocale.php> and strftime() <https://www.php.net/manual/en/function.strftime.php> functions instead of date(). But may be not because in many places I see dates properly translated. Does anyone see a clever way to have this translated ? Bernard _______________________________________________ TikiWiki-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel