Commit graph

169 commits

Author SHA1 Message Date
Sebastian Ludwig
0f9bd0dcba Closed #84 by checking for invalid characters in keys in validate-strings-file. 2015-12-18 13:47:10 +01:00
Sebastian Ludwig
1ecb483dbd Added unit test for validate-strings-file command. 2015-12-18 13:47:10 +01:00
Sebastian Celis
c9aa835621 Merge pull request #122 from sebastianludwig/consume_comments
Consume comments
2015-12-17 09:10:13 -06:00
Sebastian Celis
a82c2c99f6 Merge pull request #124 from sebastianludwig/translation_newlines
Newline escaping
2015-12-17 09:05:04 -06:00
Sebastian Ludwig
1470494525 Moved newline escaping from JQuery formatter to Abstract. 2015-12-05 01:46:17 +01:00
Sebastian Ludwig
be18757ce7 Moved consume_comments evaluation from concrete formatters to Abstract. Closes #97. 2015-12-05 01:28:26 +01:00
Sebastian Ludwig
00d2dc953e Tested and fixed comment consumption for all formatters. 2015-12-05 01:23:50 +01:00
Sebastian Ludwig
a5a970f12d Added variables for STDOUT and STDERR to be able to redirect the output in unit tests. 2015-12-04 23:22:10 +01:00
Sebastian Celis
e3259b7bc7 Merge pull request #119 from sebastianludwig/cleanup
Cleaned up Runner and Abstract by shortening some expressions.
2015-11-29 12:06:33 -06:00
Sebastian Ludwig
cdfb30b351 Cleaned up Runner and Abstract by shortening some expressions. 2015-11-29 18:52:46 +01:00
Sebastian Celis
b8291de63c Merge pull request #112 from sebastianludwig/formatter_modularization_v2
Formatter modularization v2
2015-11-29 11:49:04 -06:00
Sebastian Celis
92e869b065 Merge pull request #114 from sebastianludwig/cli_refactoring
CLI refactoring
2015-11-29 11:34:02 -06:00
Sebastian Ludwig
b651763986 Refactored CLI 2015-11-29 17:11:02 +01:00
Sebastian Ludwig
b803deec9f Untangled CLI and Runner. 2015-11-29 17:10:46 +01:00
Sebastian Ludwig
8815c095d8 Fixed #76 by updating to Rubyzip 1.1.7. 2015-11-29 17:04:36 +01:00
Sebastian Celis
c5286a4979 Merge pull request #111 from sebastianludwig/command_test_case_cleanup
Cleaned up CommandTestCase.
2015-11-29 10:59:02 -05:00
Sebastian Ludwig
25264bcf12 Further modularized Abstract formatter so it's easier to meed special requirements like in the Django and Gettext formatters. 2015-11-28 15:52:17 +01:00
Sebastian Ludwig
d690adb322 Centralized escape_quotes helper method in Abstract formatter. 2015-11-28 15:07:32 +01:00
Sebastian Ludwig
7691068e05 Changed header formatting to be optional for formatters. 2015-11-28 15:02:26 +01:00
Sebastian Ludwig
1d99549849 Adapted Tizen formatter to the modular style. 2015-11-28 14:59:51 +01:00
Sebastian Ludwig
f8d1df554d Adapted JQuery formatter to the modular style. 2015-11-28 14:52:15 +01:00
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 #109 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 #107 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 #91. 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 #39. 2015-10-22 18:53:03 +02:00
Sebastian Ludwig
4f6f65fdf8 #94 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 #94 ensured that consuming a strings file preserves referenced comments. 2015-10-10 14:21:57 +02:00
Sebastian Ludwig
86571f68ae #94 Removed TODO comment 2015-10-10 14:15:51 +02:00
Sebastian Ludwig
327c37c358 #94 Removed option to wrap referenced keys in square brackets. 2015-10-10 14:15:30 +02:00
Sebastian Ludwig
239676802b #94 keeping references when updating a twine strings file. 2015-10-09 11:49:49 +02:00
Sebastian Ludwig
c51ab1a784 #94 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 #82. 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 #92 merged --only-untranslated and --exclude-untranslated options into --include option. 2015-09-25 09:54:07 +02:00
Sebastian Ludwig
d761eaa6c5 Implemented #24 by adding option --only-untranslated to all formatters (that adopt the modular style). 2015-09-24 12:02:32 +02:00