Furry stuff, oekaki stuff, and other stuff.
You are not logged in.
Waccoon wrote:
Would it be more appropriate to have defaults set in the language file, and allow the config to override the default? Date and numerical preferences tend to differ based on locale, and that depends on the viewer, not the oekaki.
That would be very good.
How would the defaults set in the language file work?
(Besides that, this forum thread is well over a year old and someone just necro'd it.)
Would it be more appropriate to have defaults set in the language file, and allow the config to override the default? Date and numerical preferences tend to differ based on locale, and that depends on the viewer, not the oekaki.
I agree, this sounds like a good idea.
This is what I'm suggesting for the control panel that affects all of the files on the oekaki: Easier customisation of regional number, decimal and date formatting in the control panel.
If you look at my oekaki, I've took advantage of date, time and number formatting virtually in all aspects of the site. My suggestion is the regional short and long date formats would be applied in the config.php file by default:
$cfg['longdate'] = 'L, F js, Y'; $cfg['shortdate'] = 'n/j/Y'; $cfg['time'] = 'g:i A'; $cfg['thousands'] = ''; $cfg['decimal'] = '.';
The $cfg['longdate'] variable would affect the index and profile page, while the $cfg['shortdate'] variable would affect the rest of the oekaki site. $cfg['thousands'] and $cfg['decimal'] would affect picture numbers, picture and comment counts as well as the diagnostic page.
The site owner would then be able to easily configure how they would want the short and long dates would be formatted without having to go through a hassle of modifying a piece of code in one of the affected PHP files.
What do you all think about this possible suggestion?