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
394fd019f6
Update version to 1.0.4
2018-05-30 11:15:31 -05: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
b52de34ce9
Update version to 1.0.3
2018-01-26 11:41:22 -06:00
Sebastian Celis
15006424ed
Merge pull request #235 from scelis/fix/234_complex_placeholders
...
Fix an error caused by combining %@ with other placeholders
2018-01-26 11:39:42 -06:00
Tomer Shemesh
e72f661b75
Fix safe yaml crash
...
Fix Safe Yaml crash
In some cases safe yaml will be loaded and cause it to crash when ever it is run before date class has been loaded. This can be seen in a few cases and makes it crash when ever twine is called.
https://github.com/dtao/safe_yaml/issues/80
https://github.com/test-kitchen/test-kitchen/issues/1327
https://github.com/jekyll/jekyll/issues/3201
This commit fixes that issue
2018-01-26 08:57:52 -05: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
72098611ba
Update version to 1.0.2
2018-01-20 10:38:24 -06: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
Sebastian Celis
30ac0d566d
Update version to 1.0.1
2017-10-18 08:32:48 -05:00
Sebastian Celis
bd37ebf582
Always prefer the formatter passed in
...
This fixes #221
2017-10-18 08:22:21 -05:00
Sebastian Celis
4fa59d6205
Update version to 1.0
2017-10-16 15:22:27 -05:00
Philippe Auriach
8781528429
more readable if
2017-10-13 11:13:01 +02:00
Philippe Auriach
3043a48131
use developer-language option for apple Base folder
2017-10-10 16:16:32 +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
Juan Pablo Orsay
e1984e06c0
Fix indentation
2017-08-03 17:20:49 -03:00
Juan Pablo Orsay
c6a9424f5a
Android folder should have the region code preceded by lowercase "r"
2017-08-03 17:19:07 -03:00
Sebastian Celis
cd28717f92
Merge pull request #200 from scelis/fix-po-language-detection
...
Fix language detection for .po formatters
2017-07-31 10:19:24 -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
f7e74392fa
Fix typos.
2017-07-31 12:55:37 +02:00
Ilya Zverev
8a92e73971
Add 'q' placeholder modifier for android strings
2017-06-20 11:59:13 +03: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 Celis
fe7e1a7d92
Update version to 0.10.1
2017-01-19 08:54:07 -06:00
Sebastian Ludwig
ae190eb8bd
Fixed #184 by checking if IO.console is defined.
2017-01-19 14:56:53 +01:00
Sebastian Celis
ff17d05e14
Update version to 0.10.0
2017-01-17 09:07:25 -06: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 Celis
fdda09ca3c
Merge pull request #178 from sebastianludwig/can-handle-directory-default-and-formatting
...
Minor improvements and a little cleanup
2016-12-14 17:13:25 -06:00
Sebastian Ludwig
e2c400ea6d
Fixed #179 by converting placeholders before escaping @ signs.
2016-12-14 23:13:05 +01:00
Sebastian Ludwig
47e95e6db7
Added can_handle_directory? default implementation to Abstract.
2016-12-08 10:21:37 +01:00
Sebastian Ludwig
9dcc909335
Corrected source code formatting.
2016-12-08 10:21:37 +01:00
Sebastian Ludwig
ecefba0511
Fixed #153 by removing command deprecation warning.
2016-12-08 10:20:01 +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 Ludwig
9034da11e2
Removed unnecessary return statements.
2016-12-08 09:50:37 +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