Thank you lat9 and torvista, I really am getting some imsomnia but the error was actually quite simple:
finnish.php was "shortened" by unknown translator and was only containing part of info setlocale needs, it was wrongly formatted as
when it should have been:
Code:
// look in your $PATH_LOCALE/locale directory for available locales..
@setlocale(LC_TIME, 'fi_FI.utf8');
Now php locale time works correctly.
If someone wants to know their server supported locales below is a script you can upload to server and check it out. Just change the fi to your country code:
Code:
<?php
echo "<hr><br>The available 'locale' strings for 'fi' on this server are:<br>";
echo '<pre>';
system('locale -a | grep -i fi');
echo '</pre>';
?>
Bookmarks