支持文件类型 (Strings)

.PLIST - Objective-C/Cocoa 属性列表 (Strings)

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

文件扩展名

.plist

API 扩展

plist

导入

导出

复数形式支持

描述支持

代码示例

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">
<plist version="1.0">
  <dict>
    <key>boolean_key</key>
    <string>--- true
</string>
  </dict>
  <dict>
    <key>empty_string_translation</key>
    <string/>
  </dict>
  <dict>
    <key>key_with_description</key>
    <string>此键有描述!(至少在某些格式中)</string>
  </dict>
  <dict>
    <key>key_with_line-break</key>
    <string>此翻译包含
换行符。</string>
  </dict>
  <dict>
    <key>nested.deeply.key</key>
    <string>我是一个深度嵌套的键。</string>
  </dict>
  <dict>
    <key>nested.key</key>
    <string>此键嵌套在命名空间内。</string>
  </dict>
  <dict>
    <key>null_translation</key>
    <string/>
  </dict>
  <dict>
    <key>pluralized_key.one</key>
    <string>只找到一只小猫。</string>
  </dict>
  <dict>
    <key>pluralized_key.other</key>
    <string>嘿,你有 %s 只小猫!</string>
  </dict>
  <dict>
    <key>pluralized_key.zero</key>
    <string>你没有小猫。</string>
  </dict>
  <dict>
    <key>sample_collection</key>
    <string>---
- first item
- second item
- third item
</string>
  </dict>
  <dict>
    <key>simple_key</key>
    <string>只是一个带有简单消息的简单键。</string>
  </dict>
  <dict>
    <key>unverified_key</key>
    <string>此翻译尚未已验证,正在等待验证。(在某些格式中,我们也会导出此状态)</string>
  </dict>
</plist>
这篇文章有帮助吗?

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.