Alexander Borsuk
36ceac404a
Do not print Twine version in generated files
...
It creates a lot of unnecessary noise after upgrading Twine
Signed-off-by: Alexander Borsuk <me@alex.bio>
2022-12-23 15:05:01 +01:00
Doug Melton
4d0f6326fb
Slurp Android mulitline comments as single-line
2021-01-28 13:17:15 -08:00
Sebastian Ludwig
b216a2db01
Add validation warning if a translation contains Python only placeholders ( fixes #287 )
2019-10-03 17:33:17 +02:00
Sebastian Ludwig
42895063e1
Ignore commented out lines in Django .PO files ( fixes #286 )
2019-09-23 17:01:54 +02:00
Sebastian Ludwig
8566a0b70e
Remove wrong indentation from Django header
...
to be closer to the specification
2019-09-23 16:59:44 +02:00
Sebastian Ludwig
59c2f23064
Add --escape-all-tags flag to force the Android formatter to always escape styling tags.
...
Closes #281
2019-07-01 20:19:57 +02:00
Kaloian Doganov
5e7a9c9be3
Support more Android styling tags
2019-05-23 23:28:30 +03:00
Jonas Rottmann
2e19dccd74
Make android formatter respect developer language
...
The output path of the android formatter will be `values` (no language
selector) of the language matches the developer language.
2019-04-18 23:46:58 +02:00
Sebastian Celis
e1ca68f6b9
Escape quotes in the gettext formatter
...
Fixes #267
2019-02-21 15:56:02 -06:00
Daniel Levy
2cb9639047
Fix Deprecation Warnings
2018-11-27 15:02:42 -08:00
Sebastian Ludwig
68b59b9e0f
Fixes #255 . While fixing #250 094ba47
introduced a regression that the language was no longer deducted from the given filename.
2018-06-17 16:17:22 +02:00
Aliaksei Piatrouski
a0a12ad1c1
Fixxing issue 252: Generating and Consuming Loc Drop Converts Double Quotes to Single Quotes
2018-06-06 12:58:11 -07:00
Sebastian Ludwig
cd0735b39d
Remove unnecessary '\n' from the generated gettext localization files.
2018-06-04 21:22:09 +02:00
Sebastian Ludwig
094ba47ac8
Only recognize two letter language codes (with optional two letter region codes) as languages when deducting the language from filenames.
...
Also add the logic to recognize a language code folder name in the Abstract formatter to mirror its output_path_for_language implementation.
Fixes 250.
2018-06-04 21:22:09 +02:00
Sebastian Celis
a5edde0511
Merge pull request #247 from sebastianludwig/244-consume-tags
...
Consume child HTML tags in Android formatter
2018-05-22 08:56:54 -05:00
Sebastian Celis
890d461eb9
Merge pull request #246 from sebastianludwig/243-consume-all-errors
...
Let consume-localization-archive fail
2018-05-22 08:56:07 -05:00
Sebastian Ludwig
5b2ddf3135
Fixes a regression introduced in ea58bd1
: child HTML tags in strings like <b> were ignored when consuming strings. Closes #244 .
2018-05-21 14:26:30 +02:00
Sebastian Ludwig
d0dc544023
Let consume-localization-archive fail if one file could not be consumed. Fixes #243 .
2018-05-21 13:43:57 +02:00
Sebastian Ludwig
937c713b71
Add --quiet option. Closes #236 .
2018-05-21 13:11:27 +02:00
Sebastian Ludwig
8eccb7fa57
Use stderr strictly for errors and stdout for all other output ( #236 )
2018-05-21 12:34:44 +02:00
Sebastian Celis
c6b3c9c875
Fix an error caused by combining %@ with other placeholders
...
Fixes #234
2018-01-24 08:56:04 -06:00
Sebastian Celis
7a7ca59c2d
Merge pull request #228 from sebastianludwig/212-improvement
...
Improved Android HTML escaping
2017-12-30 15:36:40 -06:00
Sebastian Ludwig
e838dcc8fd
Add unit tests for regression fixed in #222 . Closes #223 .
2017-12-12 17:27:08 +01:00
Sebastian Ludwig
b5cd295e3a
Escape angle brackets in Android formatter, if the string contains a placeholder to enable users to use the official way to retrieve these strings. Improves #212 .
2017-12-12 15:26:38 +01:00
Philippe Auriach
86cf20478b
developer_language options only for one unit test
2017-10-13 23:29:49 +02:00
Philippe Auriach
f5af8cf670
Added test for base folder resolved to developer_language option value
2017-10-13 11:49:56 +02:00
Sebastian Ludwig
f7092c7605
Close #212 : Change Android escaping to preserve basic styling tags and anything inside CDATA.
2017-09-18 12:26:07 +02:00
Sebastian Ludwig
f106e2e272
Fix #213 : Add --version again which got lost in c619dd6
.
2017-09-13 19:38:49 +02:00
Sebastian Ludwig
545c106b44
Fail twine commands if there’s more than one formatter candidate. Fixes #201 .
2017-08-23 19:32:26 -04:00
Sebastian Ludwig
81f8f15f1d
Remove double space.
2017-08-08 20:03:37 +02:00
Sebastian Celis
9d75f104df
Add unit test
2017-08-04 08:12:08 -05:00
Sebastian Celis
1270ef2767
Fix language detection for .po formatters
...
The old regular expressions were only supporting two character language
identifiers. This commit allows languages to scale to things like
"en-GB".
Fixes #199
2017-07-31 10:17:16 -05:00
Sebastian Ludwig
7b599e5f92
Fix #191 by using the parsed boolean value for CLI options, not always true
.
2017-05-22 14:40:45 +02:00
Sebastian Ludwig
2f81399a7c
Fixed #182 : Renamed command generate-loc-drop to generate-localization-archive and consume-loc-drop to consume-localization-archive.
2017-01-16 23:32:02 +01:00
Sebastian Ludwig
c619dd61e4
Improved CLI and only showing applicable options per command.
2016-12-20 00:47:14 +01:00
Sebastian Celis
b33d8425f8
Merge pull request #177 from sebastianludwig/fix-169-153
...
Implements #169 and resolves #153
2016-12-19 12:34:03 -06:00
Sebastian Ludwig
e2c400ea6d
Fixed #179 by converting placeholders before escaping @ signs.
2016-12-14 23:13:05 +01:00
Sebastian Ludwig
f9720a67d7
Implemented determine_language_given_path for Flash formatter.
2016-12-08 10:19:47 +01:00
Sebastian Ludwig
280914bdc5
Fixed #169 by adding proper placeholder handling to Flash formatter.
2016-12-08 10:18:15 +01:00
Sebastian Celis
74d7cb1d85
Merge pull request #174 from sebastianludwig/fix-164-printf-space
...
Fixed #165 by disallowing single spaces as valid printf flags.
2016-11-21 15:16:46 -06:00
Sebastian Ludwig
43b83cc8e6
Fixed #165 by disallowing single spaces as valid printf flags.
2016-11-21 22:05:25 +01:00
Sebastian Ludwig
37f1d11859
Fixed #172 by removing language mappings.
2016-11-21 21:44:56 +01:00
Sebastian Ludwig
7c84dbb418
Added AND and NOT logic for tags.
2016-06-21 15:28:04 +02:00
Sebastian Celis
762196050e
Merge pull request #161 from sebastianludwig/fix_117_xliff_tags
...
Fix 117 xliff tags
2016-05-16 11:19:58 -05:00
Sebastian Ludwig
d8387e55f4
Added unit test to verify empty sections don't contribute to jQuery formatter output.
2016-05-03 23:25:44 +02:00
Sebastian Ludwig
a53384c5d7
Added test to verify the android formatter unescapes values properly.
2016-05-03 22:59:22 +02:00
Sebastian Ludwig
60b0eb2adf
Allowing xliff tags in android values and escaping special characters as recommended by Android docs.
2016-05-03 22:59:22 +02:00
Sebastian Ludwig
2e283d7057
Got rid of the Case in test class names.
2016-05-03 22:44:22 +02:00
Paul Wagener
111840ed70
Add UTF-8 Content-Type to the Django formatter
2016-05-03 21:53:12 +02:00
Sebastian Ludwig
ea58bd10ca
Properly parsing multiline strings in Android formatter by using REXML instead of regexps. Fixes #81 .
2016-04-27 08:35:52 +02:00