Commit graph

298 commits

Author SHA1 Message Date
Sebastian Ludwig
a7ac82aab7 Adapted Gettext formatter to the modular style. 2015-11-28 14:37:30 +01:00
Sebastian Ludwig
a35107ea99 Adapted Flash formatter to the modular style. 2015-11-28 14:37:30 +01:00
Sebastian Ludwig
84cf07d353 Adapted Django formatter to the modular style. 2015-11-28 14:37:30 +01:00
Sebastian Ludwig
bcb6dd928e Added unit tests for Django and Flash formatters. 2015-11-28 13:31:39 +01:00
Sebastian Ludwig
559360977c Cleaned up CommandTestCase. The strings file used by Runner is now injectable which eliminates the need to mock StringsFile.new (which could lead to an infinite loop). 2015-11-27 19:29:50 +01:00
Sebastian Celis
00000ba9c9 Merge pull request from sebastianludwig/use_set_translation_in_formatters
Use set_translation in formatters
2015-11-27 13:27:22 -05:00
Sebastian Celis
0689b812fa Merge pull request from sebastianludwig/new_tests
New unit tests
2015-11-27 11:03:13 -05:00
Sebastian Ludwig
e76e63909c Shortened check for wrapping accents in StringsFile.read. 2015-11-27 15:55:59 +01:00
Sebastian Ludwig
77acb33773 Corrected indentation in Abstract.set_translation_for_key. 2015-11-27 15:55:59 +01:00
Sebastian Ludwig
36a1321b9b Shortened expression to check if a StringsRow matches a given set of tags. 2015-11-27 15:55:59 +01:00
Sebastian Ludwig
1153d8c247 Using set_translation_for_key in JQuery formatter to transform the value instead of read_file. 2015-11-27 15:45:45 +01:00
Sebastian Ludwig
a4b9865d33 Using set_translation_for_key in Android formatter to transform the value instead of read_file. 2015-11-27 15:41:08 +01:00
Sebastian Ludwig
e09b366a53 Removed setter methods for Abstract formatter attributes. 2015-11-27 15:14:52 +01:00
Sebastian Ludwig
31b4dc3862 Removed unncessary check. 2015-11-27 15:13:23 +01:00
Sebastian Ludwig
d3128cdbd9 Replaced unit tests with more targeted tests aimed to test the functionality thoroghly. Closes . 2015-11-27 15:04:45 +01:00
Sebastian Ludwig
397ced200e Moved reference lookups from StringsFile to Abstract formatter. 2015-11-21 00:28:56 +01:00
Sebastian Ludwig
fc57ce0019 Extracted processing of StringsFile from formatters into OutputProcessor. 2015-11-20 20:04:43 +01:00
Sebastian Ludwig
e8312d0f95 Added unit tests for --create-folders option. 2015-10-22 19:53:59 +02:00
Sebastian Ludwig
1eba535b38 Implemented --create-folders option. Closes . 2015-10-22 18:53:03 +02:00
Sebastian Ludwig
4f6f65fdf8 got rid of unnecessary second copy of existing twine strings file when writing a strings file 2015-10-10 23:02:58 +02:00
Sebastian Ludwig
d1258985fc ensured that consuming a strings file preserves referenced comments. 2015-10-10 14:21:57 +02:00
Sebastian Ludwig
86571f68ae Removed TODO comment 2015-10-10 14:15:51 +02:00
Sebastian Ludwig
327c37c358 Removed option to wrap referenced keys in square brackets. 2015-10-10 14:15:30 +02:00
Sebastian Ludwig
239676802b keeping references when updating a twine strings file. 2015-10-09 11:49:49 +02:00
Sebastian Ludwig
c51ab1a784 Changed default for references values to only the referenced key (without square brackets). 2015-10-07 18:42:09 +02:00
Sebastian Ludwig
f597bf863c Implemented references for keys. Closes . 2015-10-01 17:29:48 +02:00
Sebastian Celis
d7e3145417 Replace STDERR calls with raised errors. 2015-10-01 08:26:26 -05:00
Sebastian Ludwig
e7703507cb merged --only-untranslated and --exclude-untranslated options into --include option. 2015-09-25 09:54:07 +02:00
Sebastian Ludwig
d761eaa6c5 Implemented by adding option --only-untranslated to all formatters (that adopt the modular style). 2015-09-24 12:02:32 +02:00
Sebastian Ludwig
5a394d2c19 Changed --include-untranslated to be the default and added --exclude-untranslated instead (see ). 2015-09-23 13:18:41 +02:00
Sebastian Ludwig
ef1e684824 Fixed --include-untranslated handling. Before even untranslated keys were included if a formatter didn't return nil als fallback language (which would have caused a crash). 2015-08-24 09:07:22 +02:00
Sebastian Ludwig
13a28890cf Corrected documentation. Encoding option is now available for all formatters. 2015-08-24 09:07:15 +02:00
Sebastian Ludwig
a5dff1d711 Made androids concept of a fallback language available to all formatters. 2015-08-24 09:06:56 +02:00
Sebastian Ludwig
4a40e5d09e Modified documentation since options apply to all formats (once converted) now. 2015-08-24 09:05:49 +02:00
Sebastian Ludwig
3ebd9f35fd Completely migrated android formatter to modularized approach. 2015-08-24 09:05:33 +02:00
Sebastian Ludwig
b06b4f6f6b Half way there of moving android formatter the the modularized version 2015-08-24 09:05:26 +02:00
Sebastian Ludwig
eab588735f Moved formatting sceleton code to Abstract. 2015-08-24 09:05:18 +02:00
Sebastian Ludwig
46d71accbc Finished modularizing apple formatter. 2015-08-24 09:05:10 +02:00
Sebastian Ludwig
d7150521f8 First refactoring towards modularized formatters. 2015-08-24 09:04:50 +02:00
Sebastian Celis
cf166bd901 Update version to 0.7.0. 2015-08-08 07:23:05 -05:00
Sebastian Celis
47c8619afe Remove generate-report command in favor of validate-strings-file. 2015-08-08 07:22:26 -05:00
Sebastian Celis
8f96ef3231 Ignore Base.lproj directory for strings files. 2015-08-08 07:12:17 -05:00
Sebastian Celis
03ae4602e3 Add extra arg checking to validate-strings-file. 2015-03-26 16:03:16 -05:00
Ben Cochran
2bdf42f399 Report all errors, not just the first 2015-03-17 02:26:42 -07:00
Ben Cochran
ee2e679c4a Remove validity checks from generate-report 2015-03-17 02:26:30 -07:00
Ben Cochran
3c07e90c1f Add validate-strings-file command 2015-03-16 10:48:44 -07:00
Sebastian Celis
feee83c283 Update version to 0.6.0 2014-09-20 14:40:04 -05:00
Sebastian Celis
a3a0f6d38a Remove Bundler code. 2014-09-20 14:32:45 -05:00
bootstraponline
fae3c97efd Add plugin support 2014-09-05 12:56:57 -04:00
Greg Combs
e78795b0a9 Allow consume-all-string-files to apply --tags to newly added translations. Addresses issue . 2014-07-02 11:23:30 -05:00