Sebastian Ludwig
|
0f2535223e
|
Removed Abstract::write_file, since formatters should focus on formatting. format_file is used directly instead.
|
2016-02-27 19:49:01 -06:00 |
|
Sebastian Ludwig
|
e2dc6dce01
|
Fixed Android language determination. Closes #134.
|
2016-02-22 15:45:11 -06:00 |
|
Sebastian Celis
|
8700257f95
|
Update version to 0.8.1.
|
2016-02-22 09:32:52 -06:00 |
|
Sebastian Ludwig
|
689ad2cd72
|
Added validate option to validate a strings file before generating any output.
|
2016-02-22 09:11:04 -06:00 |
|
Sebastian Ludwig
|
1d4e0aeb9b
|
Added pendantic option to validate-strings-file command and hid errors for keys without tags behind it.
|
2016-02-16 12:54:45 -06:00 |
|
Sebastian Ludwig
|
b6b443cef4
|
Split up reat_write_string_file.
|
2016-01-25 16:41:27 -05:00 |
|
Sebastian Ludwig
|
4223e3b9e8
|
Cleaned up Runner.
|
2016-01-25 16:41:27 -05:00 |
|
Sebastian Ludwig
|
b53ecb2be6
|
Removed initializer parameters from Abstract formatter because they were only used in unit tests.
|
2016-01-19 13:22:29 -05:00 |
|
Sebastian Ludwig
|
1e363f9c65
|
Added legacy method for registering formatters back (was removed in 0403b17 ) to ensure backwards compability.
|
2016-01-19 13:21:15 -05:00 |
|
Sebastian Ludwig
|
e4a121ea7d
|
Using instance methods instead of class constants to convey formatter capabilities.
|
2016-01-17 20:51:40 -05:00 |
|
Sebastian Ludwig
|
0403b17c2e
|
Letting the formatters register themselves.
|
2016-01-17 20:47:44 -05:00 |
|
Sebastian Ludwig
|
c55c7685b9
|
Storing formatter instances in Twine::Formatters.formatters to make it easier to inject mocks.
|
2016-01-17 20:47:44 -05:00 |
|
Sebastian Ludwig
|
5f37416f49
|
Deleted unnecessary methods.
|
2016-01-17 20:46:08 -05:00 |
|
Sebastian Ludwig
|
17efb76019
|
Refactored formattes to get rid of dynamic method dispatching.
|
2016-01-17 20:46:07 -05:00 |
|
Sebastian Celis
|
9b7d55f1c3
|
Update twine to 0.8.0.
|
2016-01-12 06:20:56 -06:00 |
|
Sebastian Celis
|
faedb5ee78
|
Merge pull request #125 from sebastianludwig/placeholders
Improved placeholder handling
|
2016-01-12 06:19:54 -06:00 |
|
Sebastian Celis
|
c9a0fd4bc5
|
Merge pull request #123 from sebastianludwig/no_skip
Post modularization cleanup
|
2016-01-12 06:19:22 -06:00 |
|
Sebastian Celis
|
9c0fc9b296
|
Remove period from the list of valid characters.
Period is not allowed in Android strings.
|
2016-01-12 06:18:11 -06:00 |
|
Sebastian Ludwig
|
7bcab89373
|
Cleanup of validate_strings_file.
|
2015-12-18 13:47:10 +01:00 |
|
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 Ludwig
|
527d3aa60c
|
Got rid of unnecessary if in return statement.
|
2015-12-18 13:44:25 +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
|
2e0557741b
|
Using Placeholers like a proper module by including it into the Formatters where it's needed.
|
2015-12-06 15:41:51 +01:00 |
|
Sebastian Ludwig
|
fae6a371d6
|
Shortened expression in OutputProcessor.
|
2015-12-05 18:02:58 +01:00 |
|
Sebastian Ludwig
|
923e327efa
|
Removed now unneeded iosify_substitutions.
|
2015-12-05 17:24:33 +01:00 |
|
Sebastian Ludwig
|
0fdceca20d
|
Using Android placeholder conversions in Tizen (as it did before) and removed now unused androidify_substitutions.
|
2015-12-05 17:23:41 +01:00 |
|
Sebastian Ludwig
|
d21f07e735
|
Re-added @ sign escaping to Android formatter.
|
2015-12-05 17:12:45 +01:00 |
|
Sebastian Ludwig
|
1a49852a6e
|
Added Placeholders module and added methods to convert from twine format to android and vice versa.
|
2015-12-05 15:38:33 +01:00 |
|
Sebastian Ludwig
|
dff238a847
|
Simplified StringsRow.translated_string_for_lang
|
2015-12-05 02:27:07 +01: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 |
|