I was trying to generate a localized date string with strftime, the placeholder I use is %x. The language/locale is setlocale(LC_ALL, array(\
strftime
%x
setlocale(LC_ALL, array(\
You can check the return value of setlocale and at least check that it was installed. Otherwise you will have silent failures:
setlocale(LC_ALL, 'en_US') or die('Locale not installed');