ResourceDictionary-fájlok

Added in version 4.13.

A ResourceDictionary egy egynyelvű XML-fájlformátum, amelyet Windows Presentation Foundation (WPF) alkalmazások lokalizálható szövegeinek csomagolására használnak.

Példafájl:

<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>
Támogatott funkciók

File extensions

.xaml

Linguality

Monolingual

Supports plural

No

Supports descriptions

No

Supports explanation

No

Supports context

No

Supports location

No

Supports flags

Yes

API identifier

resourcedictionary

Supports read-only strings

No

Check flags added by this format

C# formátum

Weblate beállítás

Tipikus Weblate Összetevőkonfiguráció

Fájlmaszk

Languages/*.xaml

Egynyelvű alap nyelvi fájl

Language/en.xaml

Sablon az új fordításokhoz

Üres

Fájlformátum

ResourceDictionary-fájl