I am developing an english/spanish zencart on a windows 2000 local pc with xampp.
Some of the generated text in the cart uses strftime to get the day and month names in the correct language.
This works ok on my unix host but not on the xampp server.
I have used this code for testing the installed locales:
- Code: Select all
<?php
echo "<hr><br>The available 'locale' strings for 'es' on this server are:<br>";
echo '<pre>';
system('locale -a | grep -i es');
echo '</pre>';
?>
When I run this on my unix host, it returns a nice long list including es_ES.utf8 which I have been using in setlocale successfully.
When run locally on the xampp windows 2000 machine it returns nothing, not with es, esp, spain or en, only the first line of the test:
The available 'locale' strings for 'en' on this server are:
Due to lack of knowledge I don’t know if I should be installing or enabling something on the server or maybe (more likely) it is not executing the system command, anyway after a LOT of searching I have to admit defeat and ask here, what is going on?
Thanks
Steve