Question

I'm using PHP's setlocale(LC_TIME, country) to set a server's locale temporarily to Spanish (es_ES.utf8) or french (fr_FR.utf8).

I then use strftime() to print out a date in the selected locale's language.

After testing setlocale by refreshing the page and echoing it out, it is not being set half of the time, and is displaying the date in english as a fall-back.

Are there any reasons that setlocale would not work 100% of the time. It needs to work without fail.

Was it helpful?

Solution

Chrome caching issues.

Always develop with chrome's cache off from within the developer tool-bar.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top