Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bitwarden: new project #391

Merged
merged 3 commits into from
Sep 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions cfg/projects/Bitwarden.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
7 changes: 6 additions & 1 deletion src/builder/convertfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

pereorga marked this conversation as resolved.
Show resolved Hide resolved
# Used for Bitwarden
self._convert_json_file_to_po(
pereorga marked this conversation as resolved.
Show resolved Hide resolved
jsonfile, "../en/messages.json", "../ca/messages.json"
)

files = [
("ca.json", "en.json", "ca.json"),
("ca.json", "en-US.json", "ca.json"),
Expand Down
Loading