Commit graph

39 commits

Author SHA1 Message Date
Sebastian Ludwig
9e7e51e4c6 Moved heavily redundant file opening logic (necessary to read string files) from formatters to Runner and unified the encoding handling. 2016-03-01 12:56:42 -06:00
Sebastian Ludwig
cd055e7021 Changed fixtures to be independent of the gem version. 2016-01-17 20:56:37 -05: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 Ludwig
ba4b69baf2 Added unit tests for loc drop generation and consumption. 2015-11-29 17:04:44 +01:00
Sebastian Ludwig
7691068e05 Changed header formatting to be optional for formatters. 2015-11-28 15:02:26 +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
17d206f7ce Changed TestCrateFolders to be a CommandTestCase and renamed it to TestGenerateAllStringFiles. 2015-11-28 01:18:39 +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
e8312d0f95 Added unit tests for --create-folders option. 2015-10-22 19:53:59 +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 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 Ludwig
5a394d2c19 Changed --include-untranslated to be the default and added --exclude-untranslated instead (see #89). 2015-09-23 13:18:41 +02:00
Paul Wagener
574708dae9 Fixed hardcoded version number in unit test file 2014-10-24 13:35:29 +02:00
Sebastian Celis
2c27941059 Merge remote-tracking branch 'SergeyPisarchik/tizen' 2014-06-10 10:25:41 -05:00
Sebastian Celis
f015bd2084 Fix issue importing JSON strings containing line breaks.
Fixes #59
2014-06-10 10:22:30 -05:00
Sergey Pisarchik
0dd57c04fc Tizen unit test fix 2014-05-16 15:56:29 +03:00
Sergey Pisarchik
70d04143fe Output "text id" instead of "string name" 2014-05-16 15:56:29 +03:00
Sergey Pisarchik
9ca167a447 Output <string_table> instead of <resources>. 2014-05-16 15:56:29 +03:00
Sergey Pisarchik
5953d020b7 Add Tizen test (test-output-12.txt). 2014-05-16 15:56:28 +03:00
Sebastian Celis
0b52d8a346 Fix leading and trailing spaces in android xml files. 2014-03-26 14:06:56 -05:00
Sebastian Celis
a0a8496664 Fix unit tests. 2014-03-17 08:39:50 -05:00
Joseph Earl
c23e1c2cae Fixed gettext test 2013-07-05 22:03:19 +01:00
Kevin Everets
51161194ed Add test for multiline strings in .po files 2013-06-16 21:45:24 -05:00
Kevin Everets
2a90a4ce5c Update test-output-7.txt to be compliant with the actual comment specification
The proper comment structure for gettext is not ".#" but "#." as seend in:

https://www.gnu.org/software/gettext/manual/gettext.html#PO-Files

The code was updated, but the test case was not.  This commit addresses that
oversight.
2013-03-21 16:40:24 -05:00
Sebastian Celis
d87e00307a Add unit test for parameterized strings. 2013-03-06 15:18:00 -06:00
Kevin Everets
8c56b59474 Add tests for gettext conversion 2013-01-15 14:46:43 -05:00
Sebastian Celis
0b2bba9a31 Fix broken test due to section comment changes. 2012-09-13 10:17:02 -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
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
ISHITOYA Kentaro
213c9bdd00 Added formatter for jquery-localize https://github.com/coderifous/jquery-localize. 2012-05-10 12:16:45 -05:00
Sebastian Celis
b886d78198 Update test cases to work with recent formatter changes. 2012-03-21 11:27:14 -05: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
1152447929 Add unit tests. 2012-02-10 18:53:38 -06:00