cancel
Showing results for 
Search instead for 
Did you mean: 

locking language

miguel81
Champ in-the-making
Champ in-the-making
Hello everybody,

as far as I know the language is chosen based on the browsers locale in Alfresco Share.
How can I force Share to always use GERMAN in any case?

Thank You in advance
miguel
1 REPLY 1

davidcognite
Star Contributor
Star Contributor
Hi,

Yes, you are correct that the browser's locale is used to determine what language to render Share in (via the Accept-Language http header on requests). If the user's locale is not recognised then the default system language is returned.

There is no way that I know of to turn off this feature in Share.

The only solution I can think of would be to delete the supplied language bundles and replace the default bundle with the one for your chosen language. The internationalised strings are all stored in Java properties files with the extension .properties - translated strings are stored according to the language code, so German files are all _de.properties. These files are all stored in the same directory as the file they translate. If you wanted to remove support for all languages except German, you'd need to delete all the other language files *_[es|fr|it|ja|nl].properties and move *_de.properties to *.properties, taking care not to overwrite any .properties files that do not have translations (there are some files that we do not translate).

If you can explain your use-case (I'm a little unsure as to why you would need to do this), then maybe it is something that we could look at making easier in future versions.

HTH,
David.