共用方式為


Culture 簡單型別

更新:2007 年 11 月

定義用於指定 .sdm 檔案之語言的值。

<xs:simpleType name="Culture">
    <xs:restriction
        base="string"
    >
        <xs:pattern
                        value="[a-z]{2}((-[A-Z]{2})?|(-[A-Z]{3})?)"
                  />
    </xs:restriction>
</xs:simpleType>

模式

下列模式是由 Culture 簡單型別所定義:

[a-z]{2}((-[A-Z]{2})?|(-[A-Z]{3})?)

字串,由兩個或三個小寫字母組成以定義語言,後面接著兩個、三個或四個大寫字母和小寫字母以定義地區。例如,en (表示英文)、en-US (表示英文美國) 和 zh-CHS (表示簡體中文)。