ResourceDictionary ファイル#

バージョン 4.13 で追加.

ResourceDictionary は、Windows Presentation Foundation(WPF)アプリケーション用に現地語化可能な文字列リソースをパッケージ化するために使用されるモノリンガルの XML ファイル形式です。

ファイルの設定例:

<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>

Weblate の設定#

典型的な Weblate コンポーネント構成

ファイル マスク

Languages/*.xaml

モノリンガル用の、基礎となる言語ファイル

Language/en.xaml

新しい翻訳のテンプレート

Empty(空)

ファイル形式

ResourceDictionary ファイル