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?

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>.

 Risposta accettata

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 Commento

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

Accedi per commentare.

Più risposte (0)

Categorie

Prodotti

Release

R2007b

Community Treasure Hunt

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

Start Hunting!

Translated by