Introduction
A .strings file holds the translatable text of an Apple application as
pairs of keys and values, with optional comments. A property list form also exists, with
a dictionary of strings at the top.
Structure
A key and a value, each in double quotation marks, are joined by an equals sign and
ended by a semicolon. Comments between /* and */ conventionally
come before the entry they describe. Quotes, backslashes and control characters are
escaped with a backslash. Apple advises saving the files as UTF-8; Xcode converts them to
UTF-16 when it copies them into the product.
/* Insert Element menu item */
"Insert Element" = "Insert Element";
Not described
This page is a first outline.
Known, not yet covered
- Reference: the full syntax, the compiled property list form and plural rules.
- Viewer: the site has no viewer for this format.
Links
Software
- Xcode – Apple’s development environment, which processes these files (macOS)
- genstrings – Apple’s tool that produces strings files from source code (macOS)
Reference
- String Resources – Apple’s archived programming guide