支持文件类型 (Strings)

Play Framework Properties

文本由 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

说明 

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

代码示例

boolean_key = --- true\n
empty_string_translation = 
# 这是这个键的惊人描述!
key_with_description = 检查一下!This key has a 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.