Hello, just a simple question about the strftime function.
I want to get the full day in French, so I do :
exten => 801,1,agi(googletts.agi,"Nous sommes le ${STRFTIME(${EPOCH},Europe/Paris,%A %d %B %Y)}, il est actuellement ${STRFTIME(${EPOCH},Europe/Paris,%H:%M)} et nous sommes dans la ${STRFTIME(${EPOCH},Europe/Paris,%W)}ème semaine de l'année",fr,any,1.5)
My Debian language is set to FR :
env | grep LANG > LANG=fr_FR.UTF-8
but Asterisk is sending the US day name.
Is there a configuration to do in Asterisk to get it in French?
Thanks
Firstly, environment variables generally belong to the login session, and may be unset or different in processes created directly during start up.
Secondly, it is common for programs to set the language to the default “C”, to get predictable results from system libraries so that the code can interpret them. Asterisk is quite likely to do that. “C” means produce results that conform with the C language definitions for the libraries.
Thirdly, is the channel language actually set to French?
As you haven’t mentioned that the times are off by up to 10 hours, I assume the timezone is set correctly.