Sebastian Celis
7cc1b7b646
Update version to 0.3.1.
2012-07-18 09:30:06 -05:00
Sebastian Celis
4958a0bff0
Do not strip whitespace from sections and string keys.
...
Fixes Issue #14
2012-07-18 09:28:01 -05:00
Sebastian Celis
c0b49745fe
Fix comment parsing in Android XML files.
...
Ensure only comments within the resources block are parsed.
2012-07-17 10:01:53 -05:00
Sebastian Celis
1190b65695
Default to saving strings in the iOS format.
2012-07-17 09:56:01 -05:00
Robert Guo
9642e69389
make Android formatter use Regex instead of REXML, add comments support for Android, modify test files to support comments
2012-07-05 08:31:41 -05:00
Robert Guo
afee09b707
make iOS formatter compatible with twine string files that may have Android substitution formats
2012-07-05 08:30:16 -05:00
Sebastian Celis
a32e291668
Update version to 0.3.0.
2012-07-02 06:34:14 -05:00
Sebastian Celis
144e693aa7
Fix crash when default language is missing for a string.
...
Fixes issue #13
2012-07-02 06:04:01 -05:00
Sebastian Celis
cafdfb6dde
Improve rubyzip error messages.
2012-05-10 14:45:05 -05:00
Sebastian Celis
dd5d853ce5
Exit nicely if requiring json fails.
2012-05-10 14:43:29 -05:00
Sebastian Celis
345ce6d109
Fixup help text to mention all supported string file formats.
2012-05-10 14:25:41 -05:00
Sebastian Celis
af4f5654a7
Cleanup.
2012-05-10 12:33:09 -05:00
ISHITOYA Kentaro
213c9bdd00
Added formatter for jquery-localize https://github.com/coderifous/jquery-localize .
2012-05-10 12:16:45 -05:00
Sebastian Celis
c9fe34eed4
Update version to 0.2.2.
2012-04-16 13:29:58 -05:00
Sebastian Celis
369e64d65f
Add the ability to consume comments in a strings file.
2012-04-16 13:25:43 -05:00
Sebastian Celis
68b5469e46
Add consume-all-string-files command.
2012-04-16 13:16:31 -05:00
Sebastian Celis
ceeb0a2f01
Ignore dotfiles when consuming localization drops.
2012-04-16 07:28:38 -05:00
Sebastian Celis
b886d78198
Update test cases to work with recent formatter changes.
2012-03-21 11:27:14 -05:00
Sebastian Celis
7014d193b4
Add Twine version number to generated files.
2012-03-21 11:13:55 -05:00
Sebastian Celis
a3e4e42b15
Cleanup format of generated Apple strings file.
...
* Remove unnecessary linebreaks.
* Make section headers stand out.
2012-03-21 11:12:24 -05:00
Kevin Wood
9277e070fe
Edited Apple formatter to more closely match the Apple-generated syntax
2012-03-21 11:05:52 -05:00
Sebastian Celis
3789cfbabe
Merge pull request #5 from kwood/master
...
Help text fix
2012-03-20 17:09:54 -07:00
Kevin Wood
c8f8a2efbd
Fixes incorrect spelling of generate-string-file in help text
2012-03-20 16:07:05 -07:00
Scott Weber
c1f5e1b3e7
strip numbers from substitutions during consume if safe to do so
2012-03-06 11:24:11 -05:00
Scott Weber
b540ed8d6b
make sure that substitutions are numbered when necessary
...
When there is more than one substitution in a string, Android requires that the
substitutions are explicitly numbered (e.g. %1$s, %2$s, etc.). This change will
number the substitutions if they are not already numbered. It just numbers them
from left to right in the string.
2012-03-06 09:48:25 -05:00
Sebastian Celis
34d6052042
Update version to 0.2.1.
2012-03-02 09:02:03 -06:00
Sebastian Celis
b4e5b4a698
Update generate-report to explicity state if no strings have tags.
2012-03-01 09:45:20 -06:00
Sebastian Celis
78c52a6d73
Split --all into --consume-all and --include-untranslated.
...
Overloading --all was a little confusing. It is better to be explicit.
2012-03-01 09:41:47 -06:00
Sebastian Celis
7af9048cf4
Do not match untagged strings when tags are specified.
...
In addition, add a --untagged option for force-selecting all untagged
strings.
2012-03-01 09:35:10 -06:00
Sebastian Celis
6a1a7a0584
Improve formats help text by showing all supported formats.
2012-03-01 09:31:15 -06:00
ISHITOYA Kentaro
0139f8d5e5
Switched order of evaluation. Because I could not generate language file from strings.txt without 'tags' option.
2012-03-01 09:17:46 -06:00
Sebastian Celis
f5f7215d96
Update version to 0.2.0.
2012-02-27 16:07:59 -06:00
Sebastian Celis
f8586c4379
Error if the user tries --encoding in Ruby 1.8.
2012-02-27 16:06:54 -06:00
Sebastian Celis
c9f8f1c21a
Add the ability to write UTF-16 files.
...
Issue #2
2012-02-27 16:00:05 -06:00
Sebastian Celis
1840f1fb20
Fix broken testcase for generated Android files.
...
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.
2012-02-27 15:51:17 -06:00
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
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
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