Commit graph

298 commits

Author SHA1 Message Date
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
Alexander Borsuk
1a140cbdf8 Properly extract language from json files
Signed-off-by: Alexander Borsuk <me@alex.bio>
2022-12-22 12:14:46 +01:00
Alexander Borsuk
50e7eb95cc Fixed generic language fallback
Signed-off-by: Alexander Borsuk <me@alex.bio>
2022-12-22 11:59:18 +01:00
Alexander Borsuk
6917052e54 Merged with upstream twine changes
Merge branch 'main' into organicmaps
2022-12-22 11:58:53 +01:00
Sebastian Celis
55a140a44c Prepare 1.1.2 for release 2022-11-15 08:14:09 -06:00
David Martinez
6cd569fa49
Added regional dialect fallback to generic language (#3)
* Added regional dialect fallback to generic language

Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>

* Reorder generic_language to mantain fallback_mapping priority

Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>

* Update lib/twine/output_processor.rb

Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>

Co-authored-by: Alexander Borsuk <170263+biodranik@users.noreply.github.com>

Co-authored-by: Alexander Borsuk <170263+biodranik@users.noreply.github.com>
2022-03-23 13:00:10 +01:00
Alexander Borsuk
96e0e2c3cd Fixed invalid stringdicts XML
Xcode didn't parse XML files started with a comment line

Signed-off-by: Alexander Borsuk <me@alex.bio>
2022-01-12 16:10:03 +01:00
Alexander Borsuk
13f5b7b088 Fixed Hebrew language code for Android
Signed-off-by: Alexander Borsuk <me@alex.bio>
2022-01-11 22:12:48 +01:00
Alexander Borsuk
649967b71e Fixed plural escaping 2021-08-07 18:53:38 +02:00
greshilov
38f1761ac9 Add plural localizations 2021-08-07 15:03:37 +02:00
Ilya Zverev
792b2492dc Modifications for Organic Maps 2021-08-07 14:54:50 +02:00
Abel Pascual
790e3f7b3e Added fallback support for simplified chinese. 2021-07-09 09:33:58 +02:00
Abel Pascual
df60ce8e68 Fix fallback chain. 2021-07-09 09:33:09 +02:00
Sebastian Celis
b09c83229d Prepare 1.1.1 for release 2021-01-28 15:44:51 -06:00
Doug Melton
4d0f6326fb Slurp Android mulitline comments as single-line 2021-01-28 13:17:15 -08:00
Sebastian Celis
54072398dc Update version to 1.1 2020-07-09 13:58:50 -05: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
Sebastian Celis
b3b8c395d7 Update version to 1.0.6 2019-05-28 08:17:28 -05: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
408670e48d Update version to 1.0.5 2019-02-24 11:26:05 -06:00
Sebastian Celis
e1ca68f6b9 Escape quotes in the gettext formatter
Fixes #267
2019-02-21 15:56:02 -06:00
Daniel Levy
97106cdd1f Fix Warnings When Running Rake Test 2018-12-03 13:29:44 -08:00
Sebastian Ludwig
079065da31 Add hints to error messages that might help to solve the error. 2018-06-17 16:23:25 +02: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
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