Apple .stringsdict files¶
Added in version 3.14.
Apple .stringsdict files are used for plural handling in iOS/macOS applications. The format stores plural rules using CLDR plural categories (zero, one, two, few, many, other) in a plist (property list) format.
The Translate Toolkit supports .stringsdict files via
translate.storage.stringsdict.
Entries whose localized format is a direct reference to a single plural
variable are exposed as one plural unit. The variable name is included in the
unit identifier, for example items:count. Entries containing literal text
in the localized format or multiple plural variables are exposed as separate
format and plural units.
Each plural variable exposes its explicit categories through plural_forms.
A named edit to many preserves a distinct other translation. Imported
incomplete entries and explicit empty strings survive serialization.
Apple requires an other category at runtime. For newly constructed
positional translations in languages such as Russian, the writer still uses
the final many value as a fallback when the positional view lacks other.
See also
- Mac OSX strings
Mac OSX .strings format used alongside .stringsdict files.
- Apple XLIFF
Apple’s XLIFF variant that encodes the same plural information in XLIFF format and is supported via
translate.storage.applestrings_xliff.