サポートするファイル形式(Strings)

.RESX - Microsoft .NET (Strings)

本コンテンツはPhrase Language AIの機械翻訳により、英語から翻訳されています。

ファイル拡張子

.resx, .resw

API拡張

resx

インポート

はい

エクスポート

はい

複数形のサポート

いいえ

説明のサポート

いいえ

.NETは、主にMicrosoft Windows用のオープンソースソフトウェア開発フレームワークです。.NET フレーム仕事を使用して開発されたアプリのローカリゼーションは、主にリソース ファイル(.resx)で機能します。

.resxファイルはXMLベースで、ルート要素は<root>です。Localizable Strings は通常、<data> の下にネストされた <value> 要素に埋め込まれます。<value> 要素は <resheader> にもありますが、これらは通常、翻訳を目的としないメタデータです。

コードサンプル

<?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、バージョン=4.0.0.0、カルチャー=ニュートラル、PublicKeyToken=b77a5c561934e089</value>
  </resheader>
  <resheader name="writer">
    <value>System.Resources.ResXResourceWriter、System.Windows.Forms、バージョン=4.0.0.0、カルチャー=ニュートラル、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>この翻訳に含まれるもの
a line-break.</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>---
- 最初の項目
- second item
- 三つ目の項目
</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.