支持文件类型 (Strings)

.XML - Episerver (Strings)

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

文件扩展名

.xml

API 扩展

episerver

导入

导出

复数形式支持

描述支持

Episerver 是一个内容管理服务商。Episerver XML 是其标准本地化文件格式,用于加载已翻译/本地化的 Strings。本地化的 XML 通常保存在 Web 根目录下的 lang 文件夹中。通过预定义的本地化服务商,从 .XML 加载的 Strings 将覆盖默认的 UI 文本。

每个 Episerver XML 在 <languages> 标签中至少嵌套一个区域,因此 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>此翻译包含
a line-break.</key_with_line-break>
    <nested>
      <deeply>
        <key>我是一个深度嵌套的键。</key>
      </deeply>
      <key>此键嵌套在命名空间内。</key>
    </nested>
    <null_translation/>
    <pluralized_key>
      <one>仅找到一个复数形式。</one>
      <other>哇,你有 %s 个复数形式!</other>
      <zero>你没有任何复数形式。</zero>
    </pluralized_key>
    <simple_key>simple key, simple message, so simple.</simple_key>
    <unverified_key>此翻译尚未未验证,正在等待验证。(在某些格式中,我们也会导出此状态)</unverified_key>
  </语言>
</语言>
这篇文章有帮助吗?

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.