支持文件类型 (Strings)

Play Framework 属性

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

文件扩展名 

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

API 扩展 

play_properties

导入 

导出 

复数形式支持 

描述支持 

格式选项 

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

escape_single_quotes

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

格式选项

标识符 

escape_single_quotes

类型 

布尔值

上传 

下载 

默认 

true

说明 

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

代码示例

boolean_key = --- true\n
empty_string_translation = 
# 这是这个键的精彩描述!
key_with_description = 看一下!这个键有一个描述!(至少在某些格式中)
key_with_line-break = 这个翻译包含\n一个换行符。
nested.deeply.key = 哇,这个键嵌套得更深。
nested.key = 这个键嵌套在一个命名空间中。
null_translation = 
pluralized_key.one = 只找到一个复数形式。
pluralized_key.other = 哇,你有 %s 个复数形式!
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.