MATLAB: Do I get an i18n error “InconsistentLocale” or “InconsistentUiLanguage” when starting MATLAB

MATLAB

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.

Best Answer

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: