次の方法で共有


Locale

MBAE の非推奨に関する警告

Important

Windows 10 バージョン 1803 以降では、MBAE アプリ エクスペリエンスは MO UWP アプリに置き換えられました。 MO UWP アプリの詳細については、「UWP モバイル ブロードバンド アプリの」を参照してください。

Locale 要素は、サービス メタデータ パッケージのロケールを指定します。 サービス メタデータ パッケージでは、1 つまたは複数のロケールを指定できます。 To use multiple locales, you must set the MultipleLocale element to true.

Usage

<Locale
  default = "xs:boolean">
  text
</Locale>

Attributes

Attribute タイプ Required Description

default

xs:boolean

Yes

true (1) または false (0) である必要があります。 既定の属性が true に設定されている場合、オペレーティング システムはこのデバイス メタデータ パッケージをコンピューターの現在のロケールの既定値として使用します。

Child elements

子要素はありません。

Parent elements

Element Description

MetadataKey

The MetadataKey element specifies the attributes of the device metadata package. これには以下が含まれます。

  • デバイスでサポートされている各ハードウェア機能の識別子。

  • パッケージ内のテキスト文字列の言語固有のロケール。

XSD

<xs:element name="Locale" type="tns:LocaleType" />

<xs:complexType name="LocaleType">
  <xs:simpleContent>
    <xs:extension base="xs:string">
      <xs:attribute name="default" type="xs:boolean" use="required" />
    </xs:extension>
  </xs:simpleContent>
</xs:complexType>

Remarks

  • Locale 要素には、Language>-<Region> (EN-USなど) または <Language> (EN など) を<できます。 <Language>が設定されている場合、パッケージはすべての<Language>ロケールに適用されます。 たとえば、EN は EN-US と EN-BR に適用されます。

  • To specify the metadata package as the default for the current locale of the computer, set the default attribute to true (1).

    Note

    Only one metadata package for a service should set the default attribute to true (1). それ以外の場合、オペレーティング システムはサービスのメタデータ パッケージをランダムに選択します。

  • オペレーティング システムが表示するサービス メタデータ パッケージを選択すると、次のように Locale 要素が使用されます。

    1. オペレーティング システムは、システム優先言語とリージョンを取得します。 これは通常、Windows セットアップ中に構成されます。

    2. If the Locale element of a service metadata package matches the system preferred language and region, the operating system selects the package for the service and uses the icon and ServiceProvider value (from ServiceInfo.xml) that matches that language and region.

    3. If the services metadata package does not have a Locale element that matches the system preferred language, the operating system will apply the language neutral icon and ServiceProvider value (from ServiceInfo.xml) that is stored in the root of the service metadata package.

Locale 要素が必要です。