I am planning to use strftime(), however when I check my server regarding what’s available locale, via (locale -a), I only have this:
C
en_US.utf8
POSIX
I badly need to have this de_DE.utf8, in order to turn my dates to German. How can I add additional locale? Is there any other better way?
You need to generate
de_DE.utf8locale in your server.The process is pretty straightforward. For example on Debian/Ubuntu distros, you can add/remove locales by issuing the following command:
You will be then presented with a list of available locales (basically all of them). Check/uncheck the one you like and click on OK. Good luck!