<object key="searchOptionGroup">
<label key="label" localizationKey="server.SimpleSearch_xml.useTheseSearchOptions">
<resource>Use these search options:</resource>
<resource locale="en_US">Use these search options:</resource>
<resource locale="fr_FR">employez ces options pour faire une recherche:</resource>
</label>
...
如果標頭中的一個或多個語言環境並沒有資源組合,應用程式會再次依照瀏覽器語言環境標頭指定的順序,試圖在 XML 中尋找語言環境相符項目。如果沒有相符項目,應用程式會預設為設定在資源元素(其無指定的語言環境)中的英文字串。在上面的 XML 中,應用程式會使用 "Use these search options:" 字串。
如果找不到相符的項目,應用程式會使用 localizationKey 內容的值來擷取資源組合中的標籤。以上述 XML 為例,如果用戶端語言環境是 "es-us" (Spanish American),則應用程式會使用 "server.SimpleSearch_xml.useTheseSearchOptions" 值來查閱 Spanish American 資源組合中的標籤。
<object key="configurableLabels" version="4.0.0">
<label key="objectStore" localizationKey="server.ConfigurableLabels_xml.ObjectStore">
<resource>Object Store</resource>
<resource locale="en_US">Library</resource>
resource locale="fr_FR">Bibliothèque</resource>
</label>
<object key="configurableLabels" version="4.0.0">
<label key="objectStore" localizationKey="server.ConfigurableLabels_xml.ObjectStore">
<resource>Object Store</resource>
<resource locale="en_US">Library</resource>
<resource locale="fr_FR">Bibliothèque</resource>
</label>
<object key="configurableLabels" version="4.0.0">
<label key="objectStore" localizationKey="server.ConfigurableLabels_xml.ObjectStore">
<resource>Object Store</resource>
<resource locale="en_US">Library</resource>
</label>
<object key="configurableLabels" version="4.0.0">
<label key="objectStore" localizationKey="server.ConfigurableLabels_xml.ObjectStore">
<resource>Object Store</resource>
<resource locale="en_US">Library</resource>
</label>