is it possible to change the default language (German) of the Apache DirectoryListing?
I tried this:
DefaultLanguage de
AddLanguage de .de
LanguagePriority de en
ForceLanguagePriority Fallback
The table headers are still "Name", "Last modified" an "Size".
As of httpd 2.4.10, this is not possible using only httpd.conf because the column headings are hard-coded in modules/generators/mod_autoindex.c.
I changed the headings using httpd.conf and JavaScript. This is not a full solution because it works for one language only. I have not been able to figure out how to do the same for several languages. It is, unfortunately, not possible to use 'document.documentElement.lang' to detect the appropriate language because mod_autoindex.c does not provide the 'lang' attribute.
Here are the relevant lines from my httpd.conf (you can omit everything from IndexOptions except HTMLTable):
Note that you cannot omit the IndexStyleSheet directive even if you don't need the stylesheet. The stylesheet file does not have to exist.
And this is my /DirectoryIndexFooter.html: