How to force Alfresco Share use only one language, independent from browsers locale?
alfresco, browser, share
Solution
It depends on how you have deployed Alfresco, but assuming that you are working in a production environment, where it is standard practice to place a HTTP proxy/load balancer between your clients and the Alfresco server, you have some potential options.
Share responds to the `Accept-Language` header that is sent by the web browser, so in order to prevent it from switching the language based on this, you could configure your proxy to drop the `Accept-Language` header from incoming client requests.
For example, using Apache you could use `mody_proxy` together with `mod_headers` in a configuration such as
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
RequestHeader unset Accept-Language
The first two lines will proxy requests from Apache (most likely running on port 80) to the Tomcat instance hosting Alfresco on port 8080, while the third line will remove the `Accept-Language` header.
Share will then default to the locale of the Java process in which Alfresco is running, so you should make sure that this is set to US English (`en-US`).
Problem
It's easy to found solution for Alfresco Exlplorer, but which way is proper for Alfresco Share to use only one specific language, independent from web-browser's locale settings?