2007-12-08, 12:58 PM
Hello,
First I would like to thank you all for your fabulous work
Second I'm facing very huge and exhausting problem each time there is an upgrade , my forum is in arabic and I had to add small code to almost all php files to fix the time translation problem ( AM/PM )
e.g from index.php
Is it possible to make the AM/PM translatable in the language files ?
I mean to add or change the code so I don't have to do this with each upgrade
Thank you,
First I would like to thank you all for your fabulous work
Second I'm facing very huge and exhausting problem each time there is an upgrade , my forum is in arabic and I had to add small code to almost all php files to fix the time translation problem ( AM/PM )
e.g from index.php
$recordtime = my_date($mybb->settings['timeformat'], $mostonline['time']);
changed to$recordtime = my_date($mybb->settings['timeformat'], $mostonline['time']);
$recordtime = preg_replace('/AM/', 'صباحاً', $recordtime);
$recordtime = preg_replace('/PM/', 'مساءاً', $recordtime);
Is it possible to make the AM/PM translatable in the language files ?
I mean to add or change the code so I don't have to do this with each upgrade
Thank you,