支持文件类型 (Strings)

.XML - Episerver (Strings)

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

文件扩展名

.xml

API 扩展

episerver

导入

导出

复数形式支持

描述支持

Episerver 是一个内容管理服务提供商。Episerver XML 是其标准本地化文件格式,用于加载翻译/本地化字符串。本地化的 XML 通常保存在 web 根目录下的 lang 文件夹中。通过预定义的本地化提供商,从 .XML 加载的字符串会覆盖默认的 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>This translations contains
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>
    <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.