Why do I receive the error "MATLAB:I1​8n:Inconsi​stentLocal​e - The system locale setting, <Language 1>, is different from the user locale setting, <Language 2>. " in my compiled application?

44 views (last 30 days)
I receive the following error when running my MATLAB compiled application:
MATLAB:I18n:InconsistentLocale - The system locale setting, <Language 1>, is different from the user locale setting, <Language 2>.
In post R2010b releases, the error message is
fl:i18n:InconsistentLocale - The system locale setting, <Language 1>, is different from the user locale setting, <Language 2>.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 4 May 2012
This warning indicates that your User Locale does not match your System Local. To eliminate this warning, follow the instructions under Related Solutions to make your User Locale match your System Locale. You will need to restart your PC in order for changes to take effect.
This might also propagate an error with the same message. If this is the case, follow the steps below.
Note: You might need Admin privileges on your machine in order to change this setting.
1. Go to Control Panel -> Regional and Language Settings.
2. Check to see if the Languages match under the Language Tab and the Advanced Tab.
3. Restart the system.
  1 Comment
Usha Duddu
Usha Duddu on 21 Mar 2016
Hi Oleg
You can suppress the warning in your compiled application by adding the following lines of code in startup.m
if isdeployed
warning off
end
This will turn off all warnings in a compiled application.
You can also use the -w compiler switch to turn individual warnings on and off:
>> mcc -m -w off:MATLAB:dispatcher:nameConflict foo.m
Hope this helps.
Usha

Sign in to comment.

More Answers (0)

MathWorks Support

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Products


Release

R2007b

Community Treasure Hunt

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

Start Hunting!