Setting locale with fails

Description

Calling PresideSuperClass->$getI18nLocale() returns an invalid locale, .e.g "en-" that then causes an InvalidLocale exception from buildLocale() in preside/system/modules/cbi18n/models/i18n.cfc when trying to set the value using I18n.setFwLocale()

The reason for the error seems to be the following method in PresideSuperClass.cfc:

It would be correct to return e.g. "en" or "en_GB" (underscore instead of dash).

Environment

None

Assignee

Unassigned

Reporter

Sacha Moufarrege

Labels

Accepted

Yes

Fix versions

Affects versions

Priority

Medium
Configure