2013-03-26, 05:28 PM
Hello!
I am trying to change the display (everywhere, forums, threads, etc.,) from showing the Month and Year (which is what I have it currently set at through the admin cp via time and date settings) to show a Season and the current year. The year part isn't the problem however I would like for it to show instead of 'March' I would like it to say 'Winter' for example. I have messed around with the lang files and changed all the Month names to the seasons however this didn't work because mybb gets its date from PHP. However I did find something on this thread, that shows a little code snippet that changed the weekdays names into the german language. Is there a way, instead of the weekdays to change the month names to whatever I want them to be (in this case into seasons) Example: March = Winter April = Winter May = Spring June = Spring July = Spring...and so on...
Anyone have an idea on how I could accomplish this?
I am trying to change the display (everywhere, forums, threads, etc.,) from showing the Month and Year (which is what I have it currently set at through the admin cp via time and date settings) to show a Season and the current year. The year part isn't the problem however I would like for it to show instead of 'March' I would like it to say 'Winter' for example. I have messed around with the lang files and changed all the Month names to the seasons however this didn't work because mybb gets its date from PHP. However I did find something on this thread, that shows a little code snippet that changed the weekdays names into the german language. Is there a way, instead of the weekdays to change the month names to whatever I want them to be (in this case into seasons) Example: March = Winter April = Winter May = Spring June = Spring July = Spring...and so on...
Anyone have an idea on how I could accomplish this?
// Set the current date and time now
$datenow = my_date($mybb->settings['dateformat'], TIME_NOW, '', false);
$timenow = my_date($mybb->settings['timeformat'], TIME_NOW);
$lang->welcome_current_time = $lang->sprintf($lang->welcome_current_time, $datenow.', '.$timenow);