Table of content
Welcome to a new entry in our blog series covering localization (i18n) resource file formats, this time looking at an extremely popular resource file type.
.strings files are used in the Apple world (e.g. iPhone, iPad, …).

When handling files (for your iOS projects for example), LingoHub expects that:
key-value pairs are delimited with the equal character (=), and terminated by a semicolon (;).
keys and values are surrounded by double quotes (")
place-holders look can be: %.2f, %d, %1$s (regular expression for placeholders: /%[\d|\.]*\$*\d*[dsf]{1}\b+/)
comments start at the beginning of the line and span the whole line or multiple lines
single-line comments start with double slashes (//)
multi-line comments are enclosed in /* */
a comment is assigned to the next key-value pair unless there are any blank lines in between
on export, single-line comments are exported using single-line syntax, and multi-line comments using multi-line syntax
UTF-16LE encoding is expected by default, but users can set different encoding
.strings file example:
// this comment is ignored because it is not directly followed by a key-value pair
/* comments in .strings files
can be multi line,
single line */
// or combination of the two
"hello_user" = "Hello %1$s";
// keys and values can be spread to multiple lines
"welcome_message" = "Welcome back,
we have missed you";
// multi line comments belong to the next key value pair
// as long as they are not interrupted by a white line
"visit_count" = "this is your %1$d visit to our site";
References:
Related articles

Gettext i18n system
What is gettext, what are its features, and what resource file types use? We highlighted all these questions in our blog. Find more inside.

i18n and l10n for AngularJS apps from development to deployment
Incorporating multiple languages into your app requires careful planning for adequate multilingual support. Read about i18n and l10n for AngularJS apps in our blog
i18n resource file formats: ini files
Applications on different platforms commonly use .ini files, but no standard exists. We have overviewed the .ini files usage in i18n. Click and learn more details in our blog