RESW/RESX
The formats RESW and RESX are the standard for localizing your C#/.NET applications. RESW was introduced with Windows 8 to create Windows Store Apps. These two file types have different extensions (.resw
, .resx
), but the content is the same. The only difference is how you use these file types in your application development process.
Format
- This format is based on XML; therefore, XML rules concerning encoding, escaping, and quoting apply.
- If the XSD schema is in the file, Lingohub will ignore it.
- The
name
attribute of the<data>
element will become the segment key. - The
name
attribute has to be unique in a Lingohub project. - The content of
<value>
will be used as the segment's text. - An XML comment will be assigned to describe the following segment.
- Placeholder examples:
{name}
,{0}
- If
xml:space=”preserve”
is given, Lingohub won’t strip the content of the<value>
node.
Examples
Additional example files can be accessed here (RESX) and here (RESW).
<?xml version="1.0" encoding="utf-8"?>
<root>
<data name="Common_AuthenicationFailed" xml:space="preserve">
<value>Authentifikation fehlgeschlagen</value>
<comment>comment will be assigned as description to translation "Common_AuthenicationFailed"</comment>
</data>
<data name="Common_Billable" xml:space="preserve">
<value>Verrechenbar</value>
<comment>lh-check { min: 10, max: 15 }</comment>
</data>
<data name="Common_BreakTime" xml:space="preserve">
<value>Pausen</value>
</data>
<data name="Title">
<value>Titel </value>
</data>
<data name="Salutation" xml:space="preserve">
<value>Hallo {0}</value>
</data>
<data name="invitation" xml:space="preserve">
<value>You have been invited to this project: <a href="{0}">{1}</a>.</value>
</data>
</root>
References
Updated 24 days ago