Setting UI Language to "Auto Detection" will result in an English UI when the system language is Simplified Chinese #1304
Labels
Status: Fixed in Next Build
Fixed in the next Sandboxie version
Type: Localization
Localization/translation issues
Sandboxie-Plus will have an English UI in a Simplified Chinese system when Sandboxie's language setting is "Auto Detection".
After doing some research, I found that
QLocale::system().name()
returns"zh_CN"
in my system, but the corresponding translation file is namedsandman_zh-CN
, so Sandboxie's language will fall back to English.The translation files from the Qt installation have names like
linguist_zh_CN.qm
, suggesting that Qt separates the parts of locale names with underscores. Qt's documentation about QLocale::QLocale also tells you that.Microsoft's documentation about locale names tells a different story, though. They separate those parts with hyphens, so
"zh-CN"
would be correct. However, passing"zh_CN"
to the functionLocaleNameToLCID
still gives you the correct result.Also here's some code from SandMan.cpp (line 2269):
Only when underscores are used to separate locale name parts will that fallback mechanism make sense.
The text was updated successfully, but these errors were encountered: