When showing a date in long format (e.g. “June 4, 2020” in “homepage-issue-published”), the name of the month is not translated to the chosen locale. How can we change this? It also doesn’t seem to be depending on the locale of the browser.
In short, it depends on the locales installed on the server, meaning the operational system. On Ubuntu, I use locale -a command to check installed locales. If you don’t have access to the server’s command line, I recommend asking your system administrator about that to exclude the possibility that it’s not installed.
Good idea for debugging! I did it and it showed “de_DE.utf-8 Publiziert December 1, 2020” (still wrong).
I checked “/usr/share/i18n/locales/musl/de_DE.UTF-8” and it contains “Dezember” (which is correct).
I also copied the file “de_DE.UTF-8” and named the copy “de_DE.utf-8” to check if it’s a upper/lower case issue. Didn’t have any effect, though.
Do you have any more ideas on how to get to the source of this behaviour?
In the next step I’d try directly change the system locale to de_DE and see if date is getting translated by typing something like date +%B in the terminal. I’m not familiar with Alpine Linux, thus cannot give more direct recommendations.
Since I got those calls also in the beginning of my playing around, I assume it must have been a cache issue somewhere, but I made sure the browser wasn’t caching.
Anyway, the translation works now. I still get “Publiziert Dezember 1, 2020” and not “Publiziert 1. Dezember 2020”. But it might depend on settings I can change in the OJS backend, have to check that.
Thanks for your inputs!