<a id="dotnet"></a>

# Fitxers de recursos de .NET (RESX, RESW)

<a id="index-0"></a>

Un fitxer de recursos XML .NET utilitza un format de fitxer XML monolingüe que s’utilitza a les aplicacions de Microsoft .NET.

Pot utilitzar l’extensió `.resx` o `.resw`. Malgrat la diferència d’extensió de fitxer, el format de fitxer `.resw` és idèntic al format de fitxer `.resx`, excepte que els fitxers `.resw` només poden contenir cadenes i camins de fitxer.

#### SEE ALSO
* [.NET Resource files (.resx)](https://docs.translatehouse.org/projects/translate-toolkit/en/latest/formats/resx.html)
* [Updating target-language files](https://docs.weblate.org/ca/latest/devel/integration.md#updating-target-files)
* [Neteja els fitxers de traducció](https://docs.weblate.org/ca/latest/admin/addons.md#addon-weblate-cleanup-generic)

Fitxer d’exemple:

```xml
<?xml version="1.0" encoding="utf-8"?>
<root>
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Hello" xml:space="preserve" weblate-flags="c-format, max-length:100">
<value>Hello, world!</value>
</data>
<data name="Orangutan" xml:space="preserve">
<value>Orangutan has %d banana.</value>
</data>
<data name="Try" xml:space="preserve">
<value>Try Weblate at https://demo.weblate.org/!</value>
</data>
<data name="Thanks" xml:space="preserve">
<value>Thank you for using Weblate.</value>
</data>
</root>
```

<!-- AUTOGENERATED START: format-features resx -->
<!-- This section is automatically generated by `./manage.py list_format_features`. Do not edit manually. -->

#### Supported features

| File extensions                                                                                      | `.resx`     |
|------------------------------------------------------------------------------------------------------|-------------|
| Lingualitat [ⓘ](https://docs.weblate.org/ca/latest/formats.md#bimono)                                  | Monolingual |
| Supports plural [ⓘ](https://docs.weblate.org/ca/latest/formats.md#format-plurals)                      | `No`        |
| Supports descriptions [ⓘ](https://docs.weblate.org/ca/latest/formats.md#format-description)            | `Yes`       |
| Admet l’explicació [ⓘ](https://docs.weblate.org/ca/latest/formats.md#format-explanation)               | `No`        |
| Supports context [ⓘ](https://docs.weblate.org/ca/latest/formats.md#format-context)                     | `No`        |
| Supports location [ⓘ](https://docs.weblate.org/ca/latest/formats.md#format-location)                   | `No`        |
| Supports flags [ⓘ](https://docs.weblate.org/ca/latest/formats.md#format-flags)                         | `Yes`       |
| API identifier                                                                                       | `resx`      |
| Admet cadenes de només lectura [ⓘ](https://docs.weblate.org/ca/latest/formats.md#read-only-strings)    | `No`        |
| Supports removing obsolete strings [ⓘ](https://docs.weblate.org/ca/latest/formats.md#obsolete-strings) | `No`        |
<!-- AUTOGENERATED END: format-features resx -->

## Configuració del Weblate

|                                   | Placa web típica [Configuració dels components](https://docs.weblate.org/ca/latest/admin/projects.md#component)   |
|-----------------------------------|----------------------------------------------------------------------------------------------------------|
| Filtre de fitxers                 | `Resources/Language.*.resx`                                                                              |
| Fitxer de llengua base monolingüe | `Resources/Language.resx`                                                                                |
| Plantilla per a traduccions noves | «Buit».                                                                                                  |
| Format de fitxer                  | .NET resource file                                                                                       |
