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

.XML - Episerver (Strings)

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

ファイル拡張子

.xml

API拡張

episerver

インポート

はい

エクスポート

はい

複数形のサポート

いいえ

説明のサポート

はい

Episerverはコンテンツ管理サービスプロバイダです。Episerver XMLは、翻訳/ローカライズされたStringsを読み込むために使用される標準のファイル形式です。ローカライズされたXMLは、通常、Webルートディレクトリ下のlangフォルダに保存されます。定義済みのローカライゼーションプロバイダを使用すると、.XMLから読み込まれたStringsがデフォルトのUIテキストを上書きします。

各Episerver XMLには、<languages>タグ内に少なくとも1つのロケールがネストされているため、Episerver XMLは多言語対応が可能です。

コードサンプル

<?xml version="1.0" encoding="UTF-8"?>
<languages>
  <language name=\"English\" id=\"English\">
    <boolean_key>--- true
</boolean_key>
    <empty_string_translation/>
    <key_with_line-break>This translations contains
a line-break.</key_with_line-break>
    <nested>
      <deeply>
        <key>私は深くネストされたキーです。</key>
      </deeply>
      <key>このキーは名前空間内にネストされています。</key>
    </nested>
    <null_translation/>
    <pluralized_key>
      <one>複数形が1つだけ見つかりました。</one>
      <other>わあ、%s個の複数形がありますね!</other>
      <zero>複数形はありません。</zero>
    </pluralized_key>
    <simple_key>シンプルなキー、シンプルなメッセージ、とてもシンプル。</simple_key>
    <unverified_key>この翻訳は未検証であり、検証待ちです。(一部のファイル形式では、このステータスもエクスポートされます)</unverified_key>
  </language>
</languages>
この記事は役に立ちましたか?

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.