diff --git a/cfg/projects/Bitwarden.json b/cfg/projects/Bitwarden.json new file mode 100644 index 00000000..97ab6139 --- /dev/null +++ b/cfg/projects/Bitwarden.json @@ -0,0 +1,16 @@ +{ + "project": "Bitwarden", + "license": "GPL-3.0-only", + "projectweb": "https://contributing.bitwarden.com/contributing/#localization-l10n", + "fileset": { + "Bitwarden-clients": { + "url": "https://github.com/bitwarden/clients", + "type": "git" + }, + "Bitwarden-mobile": { + "url": "https://raw.githubusercontent.com/pereorga/software-translations/master/bitwarden-mobile/AppResources.po", + "target": "bitwarden-mobile-ca.po", + "type": "file" + } + } +} diff --git a/src/builder/convertfiles.py b/src/builder/convertfiles.py index 67bcb678..9f593fea 100644 --- a/src/builder/convertfiles.py +++ b/src/builder/convertfiles.py @@ -259,17 +259,22 @@ def _convert_json_file_to_po(self, jsonfile, source, target): os.system(cmd) def _convert_json_files_to_po(self): - # Used for Privacy Badger for jsonfile in self.findFiles.find_recursive( self.convert_dir, "messages.json" ): if "/ca/" not in jsonfile: continue + # Used for Privacy Badger self._convert_json_file_to_po( jsonfile, "../en_US/messages.json", "../ca/messages.json" ) + # Used for Bitwarden + self._convert_json_file_to_po( + jsonfile, "../en/messages.json", "../ca/messages.json" + ) + files = [ ("ca.json", "en.json", "ca.json"), ("ca_ES.json", "en.json", "ca_ES.json"),