|
Estensioni dei file |
.resx, .resw |
|
Estensione API |
resx |
|
Importa |
Sì |
|
Esporta |
Sì |
|
Supporto forme plurali |
No |
|
Supporto descrizione |
No |
.NET è un framework di sviluppo software open-source principalmente per Microsoft Windows. La localizzazione per le app sviluppate utilizzando il framework .NET lavoro principalmente con file di risorse (.resx).
I file .resx sono basati su XML con l'elemento radice che è <root>. Le Strings localizzabili sono solitamente incorporate negli elementi <value> annidati sotto <data>. Gli elementi <value> possono anche essere trovati in <resheader> ma questi sono solitamente metadati non destinati alla traduzione.
Campione di codice
<?xml version="1.0" encoding="UTF-8"?>
<root>
<xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" ID="root">
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="2"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string"/>
<xsd:attribute name="type" type="xsd:string"/>
<xsd:attribute name="mimetype" type="xsd:string"/>
</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=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="boolean_key">
<value>--- true
</value>
</data>
<data name="empty_string_translation">
<Valore/>
</data>
<data name="key_with_description">
<Valore>Ora questa è una descrizione!</Valore> (Almeno per alcuni formati)</Valore>
<commentare>Questa è la descrizione superba per questa chiave!</commentare>
</data>
<data name="key_with_line-break">
<Valore>Questa traduzione contiene
un'interruzione di riga.</Valore>
</data>
<data name="nested.deeply.key">
<Valore>Sono una chiave profondamente annidata.</Valore>
</data>
<data name="nested.key">
<Valore>This key is nested inside a namespace.</Valore>
</data>
<data name="null_translation">
<Valore/>
</data>
<data name="pluralized_key">
<Valore>Questo potrebbe essere pluralizzato.</Valore>
</data>
<data name="sample_collection">
<value>---
- first item
- second item
- third item
</value>
</data>
<data name="simple_key">
<Valore>chiave semplice, messaggio semplice, tutto così semplice.</Valore>
</data>
<data name="unverified_key">
<Valore>Questa traduzione non è ancora verificato ed è in attesa di esserlo.</Valore> (In alcuni formati esportare anche questo stato)</Valore>
</data>
</root>