Commit graph

209 commits

Author SHA1 Message Date
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 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 Celis
3b638f9b7e Merge pull request #108 from sebastianludwig/small_improvements
Small improvements
2015-11-27 10:59:25 -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 Celis
c0cff7d0dc Merge pull request #105 from sebastianludwig/reference_processing
Extracted reference lookups from StringsFile
2015-11-23 14:41:06 -05:00
Sebastian Ludwig
397ced200e Moved reference lookups from StringsFile to Abstract formatter. 2015-11-21 00:28:56 +01:00
Sebastian Celis
b3660260fd Merge pull request #104 from sebastianludwig/output_processor
OutputProcessor
2015-11-20 14:16:34 -06: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
6f5f666175 #94 Added missing require statement to references test. 2015-10-13 17:21:13 +02:00
Sebastian Ludwig
c28c820266 #94 cleaned up and shortened tests 2015-10-11 15:19:36 +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
Sebastian Celis
87dfc80768 Add sebastianludwig as a contributor. 2015-09-23 15:00:58 -05:00
Sebastian Celis
fcb78f3bf5 Merge remote-tracking branch 'sebastianludwig/include_untranslated' 2015-09-23 14:57:16 -05:00
Sebastian Ludwig
5a394d2c19 Changed --include-untranslated to be the default and added --exclude-untranslated instead (see #89). 2015-09-23 13:18:41 +02:00
Sebastian Celis
a45d01fe0e Merge pull request #88 from sebastianludwig/modularization
Pull common formatter code into the AbstractFormatter.
2015-09-21 11:56:23 -05: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