Fixed unreviewed commit, which might lead to hard-to-spot errors
The last change assumed that "nls_language" can be hard-wired to contain m…
Show more
Fixed unreviewed commit, which might lead to hard-to-spot errorsThe last change assumed that "nls_language" can be hard-wired tocontain most 5 characters. While this not backed by the OpenACS datamodel, the standard (RFC 5646) explicitly states that there is noupper limit on the size of language tags. The tree letter languagecodes have been standard since 2001 (RFC 4646).The change accepts now all defined locales. When the specified localeis not enabled, it provides a log notice, when the locale is notdefined at all, it provides a warning and falls back to "en_US".
Show less