Why do I get an i18n error "InconsistentLocale" or "InconsistentUiLanguage" when starting MATLAB?

2 次查看(过去 30 天)
I get one of the following two errors when starting MATLAB on my non-US English operating system:
 
fl:i18n:InconsistentLocale - The system locale setting, system_locale_name, is different from the user locale setting, user_locale_name.
 
fl:i18n:InconsistentUiLanguage - The user UI language setting, user_ui_locale_name, is different from the user locale setting, user_locale_name.
In R2011b or prior releases, the error message is :
  ERROR: MATLAB:I18n:InconsistentLocale - The system locale setting, system_locale_name, is different from the user locale setting, user_locale_name.  
MATLAB:I18n:InconsistentUiLanguage - The user UI language setting, user_ui_locale_name, is different from the user locale setting, user_locale_name.

采纳的回答

MathWorks Support Team
These errors mean you have an inconsistent locale setting. You should be able to resolve these issues by setting the LANG or LC_MESSAGES environment variables to the appropriate setting for your language.
Please see this link in the documentation for more information:

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

尚未输入任何标签。

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by