支持文件类型 (Strings)

.PROPERTIES - Mozilla (Strings)

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

文件扩展名 

.properties

API 扩展 

mozilla_properties

导入 

导出 

复数形式支持 

描述支持 

格式选项

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

escape_single_quotes: true, omit_separator_space: false, crlf_line_terminators: false, escape_meta_chars: true

Mozilla本地化使用.properties文件。这些属性的语法和要求与标准Java properties文件大致相同。

在翻译之前进行合理性检查,包括删除重复的键(特别是对于较大的文件)和使用正确的换行符(文本字符串中的任何换行符应以\n开头,否则解析器将忽略它)。

代码示例

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.