Tipos de arquivos aceitos (Strings)

.RESX - Microsoft .NET (Strings)

O conteúdo de toda a Central de Ajuda é traduzido automaticamente de inglês pelo Phrase Language AI.

Extensões de arquivo

.resx, .resw

Extensão de API

resx

Importar

Sim

Exportar

Sim

Suporte para formas plurais

Não

Suporte para descrição

Não

.NET é um framework de desenvolvimento de software de código aberto principalmente para Microsoft Windows. A localização para aplicativos desenvolvidos usando o framework .NET trabalha principalmente com arquivos de recursos (.resx).

.resx arquivos são baseados em XML com o elemento raiz sendo <root>. Strings localizáveis são tipicamente incorporadas em <value> elementos aninhados sob <data>. Elementos <value> também podem ser encontrados em <resheader>, mas estes geralmente são metadados não destinados à tradução.

Amostra de código

<?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>--- verdadeiro
</value>
  </data>
  <data name="empty_string_translation">
    <value/>
  </data>
  <data name="key_with_description">
    <value>Agora isso é uma descrição!</value> (Pelo menos para alguns formatos)</value>
    <comment>Esta é a descrição superb para esta chave!</comment>
  </data>
  <data name="key_with_line-break">
    <value>Esta tradução contém
uma quebra de linha.</value>
  </data>
  <data name="nested.deeply.key">
    <value>Eu sou uma chave profundamente aninhada.</value>
  </data>
  <data name="nested.key">
    <value>Esta chave está aninhada dentro de um namespace.</value>
  </data>
  <data name="null_translation">
    <value/>
  </data>
  <data name="pluralized_key">
    <value>Isso poderia ser pluralizado.</value>
  </data>
  <data name="sample_collection">
    <value>---
- first item
- second item
- third item
</value>
  </data>
  <data name="simple_key">
    <value>chave simples, mensagem simples, tudo tão simples.</value>
  </data>
  <data name="unverified_key">
    <value>Esta tradução ainda não está verificada e está aguardando por isso.</value> (Em alguns formatos, exportamos este estado também)</value>
  </data>
</root>
Esse artigo foi útil?

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.