支持文件类型 (Strings)

.RESX - Windows 8 Resource (Strings)

文本由 Phrase Language AI 从英语机器翻译而得。

文件扩展名

.resx、.resw

API 扩展

windows8_resource

导入

导出

复数形式支持

描述支持

主要供 Windows 应用程序使用的基于=%XML 的""%1""格式。与 .XLIFF 和 .TS 等其他文件格式相比,它不是专为本地化或翻译设计的,通常不是双语或多语言的。当用于本地化时,待翻译的字符串存储在嵌套在 <data> 下的 <value> 元素中。其他 tags 下的 <value> 元素不应被更改或筛选用于翻译。

代码示例

<?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: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="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: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: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, 版本=4.0.0.0, Culture=建议, PublicKeyToken=b77a5c561934e089</value>
  </resheader>
  <resheader name="writer">
    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, 版本=4.0.0.0, Culture=建议, PublicKeyToken=b77a5c561934e089</value>
  </resheader>
  <data name="boolean_key">
    <value>--- true
</value>
  </data>
  <data name="empty_string_translation">
    <value/>
  </data>
  <data name="key_with_description">
    <value>此键有一个描述!(至少在某些格式中)</value>
    备注>我是键的重要描述!备注>
  </data>
  <data name="key_with_line-break">
    <value>此翻译包含
换行符。</value>
  </data>
  <data name="nested.deeply.key">
    <value>我是一个深度嵌套的键。</value>
  </data>
  <data name="nested.key">
    <value>此键嵌套在命名空间内。</value>
  </data>
  <data name="null_translation">
    <value/>
  </data>
  <data name="pluralized_key">
    <value>您没有复数。</value>
  </data>
  <data name="sample_collection">
    <value>---
- 第一项
- 第二项
- 第三项
</value>
  </data>
  <data name="simple_key">
    <value>简单的键,简单的信息。</value>
  </data>
  <data name="unverified_key">
    <value>尚未已验证的翻译等待它。(在某些格式中,我们也导出此状态)</value>
  </data>
</root>
这篇文章有帮助吗?

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.