Now that Android files by default do not fallback to English text, we
need a way to still generate files the old way for translation drops.
So, use the --all flag to generate Android files that include strings
that have not yet been translated.
- cross-reference between iOS/Android language/region codes
- support for default languages other than English
- proper escaping of ' and "
- translation between %@ and %s, including numbered parameters (e.g. %1$@)
- proper XML-escaping of < and &
This matches the README description. We really want to encourage users
to use tags. Otherwise it becomes easy to accidentally have a string go
to too many destination files.
We need an easier way to import new strings from a .strings or .xml
file. However, in the normal usecase, we do not want to import
unidentified strings since the strings data file is considered the
master data file and we assume that if it doesn't contain a string that
is found in an input file then that string was recently deleted from the
database.
So, we add a -a option to import all strings we find. We also print
clearer warnings if an unidentified string is found.
Also, clean up some of the code that makes more sense as methods of
StringsFile or StringsRow instead of the abstract formatter class.