支持文件类型 (Strings)

Play Framework 属性

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

文件扩展名 

.de, .fr, .en,...

API 扩展 

play_properties

导入 

导出 

复数形式支持 

描述支持 

格式选项 

这些选项可以在上传和/或下载文件时指定。根据上传/下载方法(API、CLI、Repo sync 等),它们可以在查询参数 上传下载Phrase.yml 配置文件中指定。

escape_single_quotes

Play Framework 是一个基于 Scala 的广泛使用的 Web 开发框架。Play Framework 支持区域化和国际化。标准的区域化文件格式是 Play Framework Properties 文件。这些文件可以使用 Phrase 进行导入和导出。 Play Framework Properties 文件与 Java Properties 文件 共享相同的文件结构(即通过 = 连接的键-值字符串对)。它们的主要区别在于文件扩展名。Java Properties 文件通常以 .properties 结尾,而 Play Framework Properties 文件通常遵循基于区域的约定(例如 messages.en/messages.de)。

格式选项

标识符 

escape_single_quotes

类型 

布尔值

上传 

下载 

默认 

true

说明 

使用另一个单引号转义单引号(例如 I'm 转为 I''m)。

代码示例

boolean_key = --- true\n
empty_string_translation = 
# 这是此键的精彩描述!
key_with_description = Check it out!This key has a description!(At least in some formats)
key_with_line-break = This translations contains\na line-break.
nested.deeply.key = Wow, this key is nested even deeper.
nested.key = This key is nested inside a namespace.
null_translation = 
pluralized_key.one = Only one pluralization found.
pluralized_key.other = Wow, you have %s pluralizations!
pluralized_key.zero = 您没有复数形式。
sample_collection = ---\n- 第一条目\n- 第二条目\n- 第三条目\n
simple_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.