How to resolve "logUnsupportedLocale" error in the logs?



After migrating from Bonita 7.11.1 to 7.11.3 it seems that the logs became full of the following error:

INFO [http-nio-8080-exec-1] org.bonitasoft.console.common.server.utils.LocaleUtils.logUnsupportedLocale Unsupported locale: "en_US", using locale "en"

Have you ever encountered this error before? Any insight on how it could be resolved?

Thanks a lot,

2 answers


Hi, this is not an error, it's just an info, this log will not appear anymore after the 7.12.0 Release Candidate.


Submitted by ismail.lagouill... on Thu, 11/19/2020 - 21:09

Indeed, however, this message is very recurring and makes the logs almost full of this only message. Do you have information on how it could be resolved? Thanks a lot!

Submitted by dumitru.corini_... on Fri, 11/20/2020 - 09:42

What version of the product are you using?

Submitted by ismail.lagouill... on Fri, 11/20/2020 - 17:49

I'm using Bonita 7.11.3

Submitted by dumitru.corini_... on Mon, 11/23/2020 - 09:28

You could try Anthony's solution which would make it so that the messages don't show anymore. If that is not possible, we can try to find a different solution.

Submitted by ismail.lagouill... on Mon, 11/23/2020 - 23:49

Thank you! In fact, we'd like to keep the log level set to ALL. It'll be great if we can understand this warning message and also stop it from appearing in the logs. ;)

Submitted by dumitru.corini_... on Tue, 11/24/2020 - 09:27

This message appears when you have " en_US " as a language that is set in either:
- The url, by using a parameter "_l" or "locale"
- In the BOS_Locale cookie
- In your browser
This locale is not supported by default and thus, translations don't get applied (if, for example the locale is fr_CA, the website will still display in french). We made a decision to force the locale to switch to a supported locale, which is "fr" in case of "fr_CA" and "en" in your case.

That is the reason why you have the logs.


Hi Ismail,
if this is a problem, you can probably change the logging configuration in to log only the warning messages for the logs of this class's packages.
Something like org.bonitasoft.console.common.server.utils.lever=WARNING