RESW/RESX Localization

The formats RESW & RESX are the standard for localizing your C#/.NET applications. RESW was introduced with Windows 8 to be able to create Windows Store Apps. These 2 file types have different extensions (.resw, .resx) but the content is the same. The only difference is in the usage of these file types in your application development process.

If you are working with RESJSON files please take a look at this guide.

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 translation title.

  • The “name” attribute has to be unique in a Lingohub project.

  • The content of <value> will be used as the text of the segment.

  • A XML comment will be assigned as description to the following segment.

  • Placeholder examples: “{name}”, “{0}”

  • If xml:space=”preserve” is given, Lingohub won’t strip the content of the <value> node.

  • The filename must contain the locale information as described here, otherwise you will be asked for the locale during the import process.

  • If you use our SCM integration we are able to parse the file path and try to find the locale information in the path.

Example

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: &lt;a href=&quot;{0}&quot;&gt;{1}&lt;/a&gt;.</value>
  </data>
</root>

References

Last updated