Commit graph

15 commits

Author SHA1 Message Date
Sebastian Celis
ee629a0aaf Add the ability to write to a separate strings DB. 2012-02-10 18:47:59 -06:00
Sebastian Celis
9d905e449f Improve ability to import new strings.
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.
2012-02-10 16:59:40 -06:00
Sebastian Celis
4399266aeb Move another method into the StringsRow class. 2012-02-09 09:48:08 -06:00
Sebastian Celis
6612d01e48 Move the row_matches_tag method to stringsfile.rb. 2012-02-09 09:45:25 -06:00
Kevin Everets
0918b65308 When reading in a file, if language_code doesn't already exist then add it to the list 2012-02-09 06:59:44 -05:00
Kevin Everets
1e73ac7d85 Make multiline android translations into single line 2012-02-09 06:59:40 -05:00
Kevin Everets
d260346c17 If there's not a default (developer language) translation, warn but still insert it 2012-02-09 06:59:37 -05:00
Kevin Everets
0fa9c72dad If a key doesn't exist when loading an android file, create it and put it in the "Uncategorized" section 2012-02-09 06:59:33 -05:00
Sebastian Celis
659028d492 Update version number to 0.1.1. 2012-02-08 10:00:13 -06:00
Sebastian Celis
1bd2850d03 Cleanup code block. 2012-02-07 15:54:53 -06:00
Sebastian Celis
a4a68a74b6 Add a section about running Twine from Xcode. 2012-02-07 14:20:56 -06:00
Sebastian Celis
8c1a53e8ce Cleanup shell commands in the README. 2012-02-06 15:44:56 -06:00
Sebastian Celis
681dc84bec Cleanup section headers in generated string files. 2012-02-06 14:38:50 -06:00
Sebastian Celis
8188d16b86 Use UTF-8 for .strings files.
Apple supports this, now, and smaller files is nicer.
2012-02-06 14:27:02 -06:00
Sebastian Celis
72a39d875f Initial commit. 2012-02-06 13:06:51 -06:00