Commit graph

321 commits

Author SHA1 Message Date
Dwayne Bailey
698c63139c Use space indentation for Twine file 2024-09-18 19:33:02 +01:00
Dwayne Bailey
aa853e5506 Ensure plurals are output even if they don't appear magically in normal
transliatont
2024-09-18 09:52:10 +01:00
Dwayne Bailey
22071efd3c Don't force the creation of 'other' form 2024-09-18 09:52:10 +01:00
Dwayne Bailey
5ea7bdb5d0 Don't force newlines before sections 2024-09-18 09:52:10 +01:00
Dwayne Bailey
3131556bb5 Add blank before a comment in Apple files 2024-09-18 09:52:10 +01:00
Dwayne Bailey
20a57301f7 Add footer for newlines in Apple 2024-09-18 09:52:10 +01:00
Dwayne Bailey
b79bbc37a6 event extra newlines after setion header 2024-09-18 09:52:10 +01:00
Dwayne Bailey
9c226e0d30 Ensure two blank lines before section header 2024-09-18 09:52:10 +01:00
Dwayne Bailey
28dc23db64 Remove blank lines between Apple strings 2024-09-18 09:52:10 +01:00
Dwayne Bailey
df14ff81a9 Don't format abstrat to break between headers 2024-09-18 09:52:10 +01:00
Dwayne Bailey
44e94015df Don't split sections with space 2024-09-18 09:52:10 +01:00
Dwayne Bailey
22313c25aa Remove section coments from iPhone stringdict 2024-09-18 09:52:10 +01:00
Dwayne Bailey
92b1d9ebf7 Add EOF newline for iPhone plurals 2024-09-18 09:52:10 +01:00
Dwayne Bailey
89dd0a6b35 Add magic Android newlines 2024-09-17 22:30:20 +01:00
Dwayne Bailey
ebe50c3adc Use tab indents in iPhone plural stringdict files
2*sp -> \t

Remove the confusingly named tab() that indents with spaces and use \t
directly
2024-08-15 18:49:45 +01:00
Dwayne Bailey
e7215ccba2 Break serialising strings on \n for readabilty 2024-08-15 18:49:45 +01:00
Dwayne Bailey
1aeee66812 Consistent space indents for Android strings
Indent with 4 spaces and fix the broken plural \t\s*2 indentation
2024-08-15 18:49:45 +01:00
Dwayne Bailey
4cfda06f87 Remove Apple Twine headers 2024-08-15 11:02:45 +03:00
Dwayne Bailey
9c6143efe5 Remove Android Twine header 2024-08-15 11:02:45 +03:00
Dwayne Bailey
860c79f3a6 Sort plurals forms in CLDR order
Instead of alphabetical, sort these in the expect CLDR order
zero...other

Only sort when retreiving the values for formatter consumption, this
should leave Twine files in their default order.

Signed-off-by: Dwayne Bailey <dwayne@translatehouse.co.uk>
2024-08-14 21:38:52 +02:00
Alexander Borsuk
a9a97d19c5 Use custom om suffix for twine version 2024-03-05 00:41:26 +02:00
Alexander Borsuk
f724a8fe7a Remove twine version from apple plurals file 2024-03-05 00:41:07 +02:00
Alexander Borsuk
b5d723caf5 Replace Android %s with iOS %@ in generated strings
Signed-off-by: Alexander Borsuk <me@alex.bio>
2023-05-19 22:58:32 +02:00
Alexander Borsuk
457c5bbda5 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-31 19:18:33 +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