My web apps are localized with default, english and german. If I run the apps in debug or standalone for OS X or Windows everything is fine. But I deploy for xojo cloud, the localization did not work, everything is in english. If I check the language code with Session.LanguageCode.DefineEncoding(Encodings.UTF8).ToText. It alway comes “de” for German, but localized string are in english. Firefox language setting is german. Same with google chrome.

Xojo 2019 R2.1, Firefox 76.0.1


We’re looking at this. It may be a bug with a workaround of setting the strings in code.

I found in the forum the link to the blog https://blog.xojo.com/2014/03/05/picking-a-language-at-runtime/ to fix it.

Example how I set the strings in code:

var code as string = Session.LanguageCode.DefineEncoding(Encodings.UTF8).totext
msgbox message_fault(code)

Session.LanguageCode.DefineEncoding(Encodings.UTF8).totext works correct and give back (with german language settings) correct “de”. message_fault is a localized string.