ResourceDictionary 檔案¶
在 4.13 版被加入.
ResourceDictionary 是一種單語 XML 檔案格式,用於為 Windows Presentation Foundation (WPF) 應用程式打包可在地化的字串資源。
範例檔案:
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:system="clr-namespace:System;assembly=mscorlib">
<system:String x:Key="hello_world">Hello World!</system:String>
<system:String x:Key="resource_key">Translated value.</system:String>
</ResourceDictionary>
副檔名 |
|
|---|---|
語言能力 ⓘ |
單語言 |
支援複數 ⓘ |
|
支援描述 ⓘ |
|
支援解釋 ⓘ |
|
支援情境 ⓘ |
|
支援位置 ⓘ |
|
支援旗標 ⓘ |
|
API 辨識碼 |
|
支援唯讀字串 ⓘ |
|
支援移除已不再使用的字串 ⓘ |
|
檢查此格式新增的標記 ⓘ |
Weblate 設定¶
典型的 Weblate 元件設定 |
|
|---|---|
檔案遮罩 |
|
單語言基底語言檔案 |
|
新翻譯的範本 |
空白 |
檔案格式 |
ResourceDictionary 檔案 |