Transifex

  • Documentation
  • File formats
  • Apple stringsdict

Apple stringsdict

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

The .stringsdict file is a .plist file that consists of key-value pairs.

It allows you to define language plural rules since it stores all plural forms of a string.

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>

Please note that positional parameters are not currently supported for the Apple stringsdict file format.

Note

Do you want to find out more about plurals in Transifex? Please check here.

Parser Behaviour When Pulling Translations via the API/CLI or Exporting Translations via the UI

  • The following table outlines what occurs to untranslated, unreviewed and un-proofread strings when using the API, CLI or UI to manipulate translation files:

stringsdict.jpg#asset:7309


* Proofeading needs to be enabled as an option for this logic to take effect. To learn how to enable proofreading click here.