Sebastian Celis
27828519f4
Fix references to CLI options.
2012-02-27 15:49:33 -06:00
Sebastian Celis
c3b5932202
Properly read and parse UTF-16 .strings files.
...
Issue #2
2012-02-27 14:52:35 -06:00
Sebastian Celis
82235cadeb
Fix call to write_file for generate-loc-drop.
2012-02-24 16:58:16 -06:00
Scott Weber
34f7ff8c9c
don't force default into strings.xml; let Android OS handle fallback
2012-02-22 10:44:56 -05:00
Scott Weber
828aac3b37
for android, put default language in values folder
2012-02-21 16:38:14 -05:00
Scott Weber
ce96dcd425
android-specific improvements
...
- 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 &
2012-02-20 14:43:33 -05:00
Sebastian Celis
125eb59036
Support empty translations.
...
This seems strange, but I can imagine weird scenarios where a key should
translate to nothing in certain languages. So, let's support this for
now.
2012-02-15 11:16:36 -06:00
Sebastian Celis
6f286dc159
Properly unescape double quotes in android files.
2012-02-15 11:13:54 -06:00
Sebastian Celis
949314fb16
Fix gemspec test file.
2012-02-11 10:04:10 -06:00
Sebastian Celis
ef57e0be97
Add test files to the gemspec.
2012-02-11 10:01:08 -06:00
Sebastian Celis
f2c0df7dae
Update version number to 0.1.2.
2012-02-11 09:56:22 -06:00
Sebastian Celis
c9b7ed14a9
Fix reference to old method variables.
2012-02-10 19:08:57 -06:00
Sebastian Celis
3984de6fdd
Replace --tag with --tags.
2012-02-10 18:58:00 -06:00
Sebastian Celis
1152447929
Add unit tests.
2012-02-10 18:53:38 -06:00
Sebastian Celis
2daebb750e
Do not print a string that has no tag.
...
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.
2012-02-10 18:50:31 -06:00
Sebastian Celis
b5ab3249a9
Fix error handling and option parsing.
2012-02-10 18:49:52 -06:00
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