Commit graph

504 commits

Author SHA1 Message Date
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
c9bcdcd00b
Merge pull request #5 from organicmaps/fixes
Fixed jquery json language extraction and updated to the latest Twine
2022-12-22 12:59:49 +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
Sebastian Celis
a3418dea9c Update required Ruby version to 2.6 2022-11-15 08:11:36 -06:00
Sebastian Celis
7a6d18559b Remove old Circle CI configuration. 2022-11-15 08:05:41 -06:00
Sebastian Celis
39aafe4784
Merge pull request #312 from scelis/ruby3
Add Ruby 3 support
2022-11-15 08:03:02 -06:00
Sebastian Celis
ca95b9ed02 Add rexml as a runtime dependency 2022-11-15 07:55:19 -06:00
Sebastian Celis
b10fe933f5 Add ruby 3.0 and 3.1 to the test matrix 2022-11-15 07:50:54 -06:00
Sebastian Celis
26c0562936
Merge pull request #310 from scelis/github-actions
Add Test workflow for GitHub Actions
2022-08-25 16:22:54 -05:00
Sebastian Celis
2a872b8b71 Drop support for Ruby 2.4 and 2.5 2022-08-25 16:21:03 -05:00
Sebastian Celis
6bf9a2ddde Remove CircleCI badge 2022-08-25 16:18:44 -05:00
Sebastian Celis
f331423475
Add Test workflow for GitHub Actions 2022-08-25 16:16:16 -05:00
Sebastian Celis
d2ec00d57b
Update formatters.md
Add sample plugins section.
2022-08-25 15:29:18 -05:00
David Martinez
ccf5f38d6f Add rexml dependency
Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
2022-04-14 13:43:15 +02: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
Sebastian Celis
304b3ec63f
Merge pull request #304 from apascual/main
Fixed fallback language support and included simplified Chinese
2021-07-12 09:38:00 -05: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
7a77a55776
Merge pull request #303 from striezel-stash/fix-typos
chore: fix some typos
2021-07-06 08:42:22 -05:00
Dirk Stolle
fd326d0029 chore: fix some typos 2021-07-03 15:12:25 +02:00
Sebastian Celis
67a856d10a
Merge pull request #302 from bfreiband/patch-1
chore: fix typo in formatters.md
2021-06-17 17:11:09 -05:00
Ben Freiband
ad9b8d504b
chore: fix typo in formatters.md
s/bundeled/bundled in formatters.md
2021-06-15 16:50:52 -04:00
Sebastian Celis
b09c83229d Prepare 1.1.1 for release 2021-01-28 15:44:51 -06:00
Sebastian Celis
7be9e4549d
Merge pull request #300 from dgmltn/android-mulitline-comments
Slurp Android mulitline comments as single-line
2021-01-28 15:28:29 -06:00
Doug Melton
4d0f6326fb Slurp Android mulitline comments as single-line 2021-01-28 13:17:15 -08:00
Sebastian Celis
1662f131a9
Update version in the README to 1.1 2020-12-16 11:16:57 -06:00
Sebastian Celis
e220f9cc9e Words matter 2020-07-20 12:49:47 -05:00
Sebastian Celis
54072398dc Update version to 1.1 2020-07-09 13:58:50 -05:00
Sebastian Celis
4dffd16ec8
Merge pull request #297 from scelis/update-rubyzip-2-0
Update rubyzip to latest version
2020-07-09 13:25:43 -05:00
Sebastian Celis
6e70c05235 Update minimum ruby version to 2.4
Also add CircleCI tests for Ruby 2.6 and 2.7
2020-07-09 13:01:31 -05:00
Sebastian Celis
1eb18d8726 Update rubyzip to ~> 2.0 2020-07-09 12:55:36 -05:00
Sebastian Celis
edee7bbd11
Merge pull request #294 from scelis/update-rake-gemspec
Update rake to 13.0 or higher
2020-03-17 10:27:33 -05:00
Sebastian Celis
dc124b6b0e Update rake to 13.0 or higher
12.3.2 and lower have a security vulnerability.

https://github.com/advisories/GHSA-jppv-gw3r-w3q8
2020-03-17 10:25:54 -05:00
Sebastian Celis
aa99d02fc0
Merge pull request #289 from sebastianludwig/286-287-django
Django formatter improvements
2019-10-15 08:53:49 -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 Celis
9c70cb5638
Merge pull request #282 from sebastianludwig/281-escape-all-tags
Add --escape-all-tags flag
2019-07-01 13:29:00 -05:00