I already set the @define("APP_DEFAULT_TIMEZONE", "GMT") but now I to change the default names to portuguese:
Instead of "Monday" I want "segunda-feira".
Is any simple way of doing that or I must write a class to convert?
Those day names are generated by a SQL query in MySQL using the MySQL DAYNAME Date and Time function: http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html
I'm not sure if there is a language setting in MySQL that you can change to return 'segunda-feira' instead of 'Monday'..
The SQL query is generated in Fez include/class.collection.php in the 'browseListing' function.
So if there is no way to make MySQL return other language day names then maybe some post processing on the returned sql result array could work.
Maybe you could ask the e-spacio guys, they have done this for Spanish: http://e-spacio.uned.es/fez/index.php
Luis's contact details are on the front page of their site.
Log in to post a comment.