ApplicationLanguages.PrimaryLanguageOverride | primaryLanguageOverride property

1 out of 1 rated this helpful - Rate this topic

Gets or sets the BCP-47 language tag of the app's preferred language.

Syntax


var primaryLanguageOverride = Windows.Globalization.ApplicationLanguages.primaryLanguageOverride;
Windows.Globalization.ApplicationLanguages.primaryLanguageOverride = primaryLanguageOverride;

Property value

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The value of the top-ranked language in the user's ranked list of preferred languages (ApplicationLanguages.Languages). The app can set it to override the top language of the list.

Remarks

This change may not take effect immediately. You can listen to the QualifierValues property on the ResourceManager's DefaultContext.

Note  If your app passes language tags from this class to any National Language Support functions, it must first convert the tags by calling ResolveLocaleName.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Namespace

Windows.Globalization
Windows::Globalization [C++]

Metadata

Windows.winmd

See also

ApplicationLanguages
ApplicationLanguages.Languages
BCP-47 language tags

 

 

Build date: 12/4/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.