i

MacOS/iOS .strings Parser Plugin

Plugin source location: <serge_root>/lib/Serge/Engine/Plugin/parse_strings.pm

This parser extracts strings from Apple MacOS/iOS string resources.

This plugin supports extracting one-line /* ... */ style comments that go immediately above the key-value line, as well as // ... style comments at the end of the key-value line. The comment above, the string key, and the extra comment at the end of the string are combined as a hint.

Also, plugin allows to specify the string context by appending ##context at the end of the key name (see the example below).

Code Examples

Localizable.strings
/* this comment is not attached to a string */ /* comment */ "some key" = "string"; /* comment */ some_key = "string"; // extra comment /* this comment is not attached to a string */ /* comment */ "some_key##context" = "string"; // extra comment /* This is a multi-line string */ "another key" = "one two three"; ...

Usage

example-project.serge