• Documentation
  • File formats
  • Apple stringsdict

Apple stringsdict

  • Associated file extensions: .stringsdict
  • i18n type: STRINGSDICT
  • Encoding: UTF-8

Sample data

English localization file:

<plist version="1.0">
    <dict>
        <key>period_years_%d</key>
        <dict>
            <key>NSStringLocalizedFormatKey</key>
            <string>%#@years@</string>
            <key>years</key>
            <dict>
                <key>NSStringFormatSpecTypeKey</key>
                <string>NSStringPluralRuleType</string>
                <key>NSStringFormatValueTypeKey</key>
                <string>d</string>
                <key>one</key>
                <string>%d year</string>
                <key>other</key>
                <string>%d years</string>
            </dict>
        </dict>
    </dict>
</plist>

Russian localization file:

<plist version="1.0">
    <dict>
        <key>period_years_%d</key>
        <dict>
            <key>NSStringLocalizedFormatKey</key>
            <string>%#@years@</string>
            <key>years</key>
            <dict>
                <key>NSStringFormatSpecTypeKey</key>
                <string>NSStringPluralRuleType</string>
                <key>NSStringFormatValueTypeKey</key>
                <string>d</string>
                <key>one</key>
                <string>%d year</string>
                <key>few</key>
                <string>%d лет</string>
                <key>many</key>
                <string>%d лет</string>
                <key>other</key>
                <string>%d лет</string>
            </dict>
        </dict>
    </dict>
</plist>