Tipi di file supportati (Strings)

.RESX - Microsoft .NET (Strings)

Contenuti tradotti automaticamente dall'inglese con Phrase Language AI.

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 lavora 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 in elementi <value> annidati sotto <data>. Elementi <value> possono essere trovati anche in <resheader>, ma si tratta solitamente di 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>--- vero
</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>Questa chiave è annidata all'interno di un 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)</value>
  </data>
</root>
Questo articolo ti è stato utile?
★ ★ ★ ★ ★

Sorry about that! In what way was it not helpful?

The article didn’t address my problem.
I couldn’t understand the article.
The feature doesn’t do what I need.
Other reason.

Note that feedback is provided anonymously so we aren't able to reply to questions.
If you'd like to ask a question, submit a request to our Support team.
Thank you for your feedback.