From 1381b2953a7855b1050bcea8bfc453d3580faa70 Mon Sep 17 00:00:00 2001 From: Pere Orga Date: Tue, 29 Aug 2023 17:42:59 +0200 Subject: [PATCH 1/2] Stremio: new project --- cfg/projects/Stremio.json | 11 +++++++++++ src/builder/convertfiles.py | 3 +++ 2 files changed, 14 insertions(+) create mode 100644 cfg/projects/Stremio.json diff --git a/cfg/projects/Stremio.json b/cfg/projects/Stremio.json new file mode 100644 index 00000000..24361d92 --- /dev/null +++ b/cfg/projects/Stremio.json @@ -0,0 +1,11 @@ +{ + "project": "Stremio", + "license" : "GPL-3.0-only", + "projectweb": "https://github.com/Stremio/stremio-translations", + "fileset": { + "Stremio": { + "url": "https://github.com/Stremio/stremio-translations.git", + "type": "git" + } + } +} diff --git a/src/builder/convertfiles.py b/src/builder/convertfiles.py index 51419772..45f88a90 100644 --- a/src/builder/convertfiles.py +++ b/src/builder/convertfiles.py @@ -271,6 +271,9 @@ def _convert_json_files_to_po(self): for jsonfile in self.findFiles.find_recursive(self.convert_dir, "ca.i18n.json"): self._convert_json_file_to_po(jsonfile, "en.i18n.json", "ca.i18n.json") + for jsonfile in self.findFiles.find_recursive(self.convert_dir, "ca-CA.json"): + self._convert_json_file_to_po(jsonfile, "en-US.json", "ca-CA.json") + def _convert_yml_files_to_po(self): EXPECTED_SRC = "en.yml" EXPECTED_TRG = "ca.yml" From 425fd4b9c59b2eaeab211eabeafa887b7551c19b Mon Sep 17 00:00:00 2001 From: Pere Orga Date: Thu, 31 Aug 2023 22:41:52 +0200 Subject: [PATCH 2/2] style: fix format in Stremio.json --- cfg/projects/Stremio.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cfg/projects/Stremio.json b/cfg/projects/Stremio.json index 24361d92..9e4daa74 100644 --- a/cfg/projects/Stremio.json +++ b/cfg/projects/Stremio.json @@ -1,6 +1,6 @@ { "project": "Stremio", - "license" : "GPL-3.0-only", + "license": "GPL-3.0-only", "projectweb": "https://github.com/Stremio/stremio-translations", "fileset": { "Stremio": {