支持文件类型 (Strings)

.PLIST - Objective-C/Cocoa Property List (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>这个翻译包含
a line-break.</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>(在某些格式中,我们也导出这个状态)</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.