Stringsdict 格式

在 4.8 版被加入.

XML based format used by Apple which is able to store plural forms of a string.

範例檔案:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
    <dict>
        <key>hello</key>
        <dict>
            <key>NSStringLocalizedFormatKey</key>
            <string>Hello, world!
</string>
        </dict>
    </dict>
</plist>
支持的功能

檔案擴充

.stringsdict

Linguality

單語和雙語

Supports plural

Yes

支援描述

No

支援解釋

No

Supports context

No

Supports location

No

Supports flags

No

API 識別碼

stringsdict

Supports read-only strings

No

Weblate 配置

典型的 Weblate 組件配置

檔案遮罩

Resources/*.lproj/Localizable.stringsdict

單語的基底語言檔

Resources/en.lproj/Localizable.stringsdictResources/Base.lproj/Localizable.stringsdict

新翻譯的範本

檔案格式

Stringsdict 檔案