支持文件类型 (Strings)

.YAML - Symfony 2 (字符串)

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

文件扩展名 

.yml, .yaml

API 扩展 

yml_symfony2

导入 

导出 

复数形式支持 

描述支持 

Symfony 2 是基于 MVC 的 PHP Web 开发框架 Symfony 的更新版本。它与前身有相似之处,但也是一次完整的重写,提供了 Symfony 中不支持的功能。 

在 Symfony 2 中,.YAML 文件主要作为配置文件,但它们也是推荐的本地化文件格式。使用简单扁平的 .YAML 文件,而不是复杂层次结构的 .YAML 文件,因为 Symfony 2 解析器可能无法解析后者。

代码示例

--- 
boolean_key: true
empty_string_translation: ""
key_with_description: 快来看看!这个键有描述!(至少在某些格式中)
key_with_line-break: |-
    这些翻译包含
    换行符。
嵌套:
  深度:
    键: "哇,这个键嵌套得更深了。"
  键: 这个键嵌套在一个命名空间中。
null_translation: ~
pluralized_key:
  一个: 只找到一个复数形式。
  其他: "哇,你有 %s 个复数形式!"
  零: 你没有复数形式。
sample_collection:
  - 第一个条目
  - 第二个条目
  - 第三个条目
简单键: 这是一个简单的键,带有简单的信息。
未验证键: 这个翻译尚未验证,正在等待。(在某些格式中,我们也导出此状态)
这篇文章有帮助吗?

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.