From 3600ef1354d5b94581d281451be67fa1a4aa9eed Mon Sep 17 00:00:00 2001 From: "Michael J. Giarlo" Date: Wed, 3 Apr 2019 09:42:23 -0700 Subject: [PATCH] Add integration with Brave browser Fixes #2414 --- share/translations/keepassx_ar.ts | 6 +++++- share/translations/keepassx_bn.ts | 10 +++++++--- share/translations/keepassx_ca.ts | 6 +++++- share/translations/keepassx_cs.ts | 6 +++++- share/translations/keepassx_da.ts | 6 +++++- share/translations/keepassx_de.ts | 10 +++++++--- share/translations/keepassx_el.ts | 4 ++++ share/translations/keepassx_en.ts | 4 ++++ share/translations/keepassx_en_GB.ts | 6 +++++- share/translations/keepassx_en_US.ts | 6 +++++- share/translations/keepassx_es.ts | 8 ++++++-- share/translations/keepassx_eu.ts | 4 ++++ share/translations/keepassx_fi.ts | 6 +++++- share/translations/keepassx_fr.ts | 6 +++++- share/translations/keepassx_he.ts | 6 +++++- share/translations/keepassx_hr_HR.ts | 6 +++++- share/translations/keepassx_hu.ts | 8 ++++++-- share/translations/keepassx_id.ts | 6 +++++- share/translations/keepassx_is_IS.ts | 4 ++++ share/translations/keepassx_it.ts | 6 +++++- share/translations/keepassx_ja.ts | 6 +++++- share/translations/keepassx_kk.ts | 6 +++++- share/translations/keepassx_ko.ts | 6 +++++- share/translations/keepassx_la.ts | 6 +++++- share/translations/keepassx_lt.ts | 6 +++++- share/translations/keepassx_lv.ts | 6 +++++- share/translations/keepassx_nb.ts | 6 +++++- share/translations/keepassx_nl_NL.ts | 6 +++++- share/translations/keepassx_pl.ts | 6 +++++- share/translations/keepassx_pt.ts | 8 ++++++-- share/translations/keepassx_pt_BR.ts | 6 +++++- share/translations/keepassx_pt_PT.ts | 8 ++++++-- share/translations/keepassx_ro.ts | 6 +++++- share/translations/keepassx_ru.ts | 8 ++++++-- share/translations/keepassx_sk.ts | 6 +++++- share/translations/keepassx_sl_SI.ts | 6 +++++- share/translations/keepassx_sr.ts | 6 +++++- share/translations/keepassx_sv.ts | 6 +++++- share/translations/keepassx_th.ts | 6 +++++- share/translations/keepassx_tr.ts | 16 ++++++++++------ share/translations/keepassx_uk.ts | 6 +++++- share/translations/keepassx_zh_CN.ts | 6 +++++- share/translations/keepassx_zh_TW.ts | 4 ++++ src/browser/BrowserOptionDialog.cpp | 8 ++++++-- src/browser/BrowserOptionDialog.ui | 10 ++++++++++ src/browser/BrowserSettings.cpp | 11 +++++++++++ src/browser/BrowserSettings.h | 2 ++ src/browser/HostInstaller.cpp | 11 +++++++++-- src/browser/HostInstaller.h | 4 +++- utils/keepassxc-snap-helper.sh | 18 ++++++++++++------ 50 files changed, 277 insertions(+), 63 deletions(-) diff --git a/share/translations/keepassx_ar.ts b/share/translations/keepassx_ar.ts index ddffd7fa8f..4554118780 100644 --- a/share/translations/keepassx_ar.ts +++ b/share/translations/keepassx_ar.ts @@ -483,6 +483,10 @@ Please select the correct database for saving credentials. &Vivaldi &Vivaldi + + &Brave + &Brave + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -5447,4 +5451,4 @@ Available commands: - \ No newline at end of file + diff --git a/share/translations/keepassx_bn.ts b/share/translations/keepassx_bn.ts index 2aa9200a4e..8aea752ef1 100644 --- a/share/translations/keepassx_bn.ts +++ b/share/translations/keepassx_bn.ts @@ -551,6 +551,10 @@ Please select the correct database for saving credentials. &Vivaldi &ভিভালডি + + &Brave + + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -2320,7 +2324,7 @@ This may cause the affected plugins to malfunction. Unable to save attachments: %1 - সংযুক্তি সংরক্ষণ করা যায়নি: + সংযুক্তি সংরক্ষণ করা যায়নি: %1 @@ -2332,7 +2336,7 @@ This may cause the affected plugins to malfunction. Unable to open attachments: %1 - সংযুক্তিসমূহ খুলতে ব্যর্থ: + সংযুক্তিসমূহ খুলতে ব্যর্থ: %1 @@ -5442,4 +5446,4 @@ Available commands: - \ No newline at end of file + diff --git a/share/translations/keepassx_ca.ts b/share/translations/keepassx_ca.ts index b6041417e3..eac7f15d20 100644 --- a/share/translations/keepassx_ca.ts +++ b/share/translations/keepassx_ca.ts @@ -483,6 +483,10 @@ Please select the correct database for saving credentials. &Vivaldi &Vivaldi + + &Brave + &Brave + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -5421,4 +5425,4 @@ Available commands: - \ No newline at end of file + diff --git a/share/translations/keepassx_cs.ts b/share/translations/keepassx_cs.ts index 60ea7985a0..8dc7a3fc42 100644 --- a/share/translations/keepassx_cs.ts +++ b/share/translations/keepassx_cs.ts @@ -484,6 +484,10 @@ Vyberte databázi, do které chcete přihlašovací údaje uložit.&Vivaldi &Vivaldi + + &Brave + &Brave + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -5474,4 +5478,4 @@ Příkazy k dispozici: Není připojeno žádné Yubikey zařízení. - \ No newline at end of file + diff --git a/share/translations/keepassx_da.ts b/share/translations/keepassx_da.ts index 558cfbd6fc..d779f3a98d 100644 --- a/share/translations/keepassx_da.ts +++ b/share/translations/keepassx_da.ts @@ -483,6 +483,10 @@ Please select the correct database for saving credentials. &Vivaldi &Vivaldi + + &Brave + &Brave + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -5444,4 +5448,4 @@ Tilgængelige kommandoer: - \ No newline at end of file + diff --git a/share/translations/keepassx_de.ts b/share/translations/keepassx_de.ts index 89b9f0b6eb..e4ef4a9980 100644 --- a/share/translations/keepassx_de.ts +++ b/share/translations/keepassx_de.ts @@ -484,6 +484,10 @@ Bitte wähle die richtige Datenbank zum speichern der Anmeldedaten.&Vivaldi &Vivaldi + + &Brave + &Brave + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -4615,13 +4619,13 @@ Verfügbare Kommandos: Error while reading the database: %1 - Fehler beim Öffnen der Datenbank: + Fehler beim Öffnen der Datenbank: %1 Error while parsing the database: %1 - Fehler beim Lesen der Datenbank: + Fehler beim Lesen der Datenbank: %1 @@ -5472,4 +5476,4 @@ Verfügbare Kommandos: Kein YubiKey angeschlossen. - \ No newline at end of file + diff --git a/share/translations/keepassx_el.ts b/share/translations/keepassx_el.ts index 5c1e9d8ffd..96286d993e 100644 --- a/share/translations/keepassx_el.ts +++ b/share/translations/keepassx_el.ts @@ -552,6 +552,10 @@ Please select the correct database for saving credentials. &Vivaldi &Vivaldi + + &Brave + &Brave + Show a &notification when credentials are requested Credentials mean login data requested via browser extension diff --git a/share/translations/keepassx_en.ts b/share/translations/keepassx_en.ts index 1f6b00076d..977c6db78f 100644 --- a/share/translations/keepassx_en.ts +++ b/share/translations/keepassx_en.ts @@ -486,6 +486,10 @@ Please select the correct database for saving credentials. &Vivaldi &Vivaldi + + &Brave + &Brave + Show a &notification when credentials are requested Credentials mean login data requested via browser extension diff --git a/share/translations/keepassx_en_GB.ts b/share/translations/keepassx_en_GB.ts index 1918b28556..782955010a 100644 --- a/share/translations/keepassx_en_GB.ts +++ b/share/translations/keepassx_en_GB.ts @@ -484,6 +484,10 @@ Please select the correct database for saving credentials. &Vivaldi &Vivaldi + + &Brave + &Brave + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -5454,4 +5458,4 @@ Available commands: - \ No newline at end of file + diff --git a/share/translations/keepassx_en_US.ts b/share/translations/keepassx_en_US.ts index f443aefe67..473cecdcb8 100644 --- a/share/translations/keepassx_en_US.ts +++ b/share/translations/keepassx_en_US.ts @@ -484,6 +484,10 @@ Please select the correct database for saving credentials. &Vivaldi &Vivaldi + + &Brave + &Brave + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -5479,4 +5483,4 @@ Available commands: No YubiKey inserted. - \ No newline at end of file + diff --git a/share/translations/keepassx_es.ts b/share/translations/keepassx_es.ts index 99d394ff91..f6ac90a937 100644 --- a/share/translations/keepassx_es.ts +++ b/share/translations/keepassx_es.ts @@ -484,6 +484,10 @@ Por favor, seleccione la base de datos correcta para guardar las credenciales.&Vivaldi &Vivaldi + + &Brave + &Brave + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -633,7 +637,7 @@ Por favor, seleccione la base de datos correcta para guardar las credenciales. - ¿Quiere asociar la base de datos al navegador? + ¿Quiere asociar la base de datos al navegador? Si quiere autorizar el acceso a la base de datos de KeePassXC, proporcione un nombre único para identificar la autorización @@ -5475,4 +5479,4 @@ Comandos disponibles: No hay YubiKey insertado. - \ No newline at end of file + diff --git a/share/translations/keepassx_eu.ts b/share/translations/keepassx_eu.ts index 93fca6455c..b37ce36b02 100644 --- a/share/translations/keepassx_eu.ts +++ b/share/translations/keepassx_eu.ts @@ -550,6 +550,10 @@ Please select the correct database for saving credentials. &Vivaldi &Vivaldi + + &Brave + &Brave + Show a &notification when credentials are requested Credentials mean login data requested via browser extension diff --git a/share/translations/keepassx_fi.ts b/share/translations/keepassx_fi.ts index de8237ea59..1091937f1e 100644 --- a/share/translations/keepassx_fi.ts +++ b/share/translations/keepassx_fi.ts @@ -484,6 +484,10 @@ Valitse oikea tietokanta tietueen tallentamiseksi &Vivaldi &Vivaldi + + &Brave + &Brave + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -5473,4 +5477,4 @@ Käytettävissä olevat komennot: YubiKey ei ole kiinni laittessa. - \ No newline at end of file + diff --git a/share/translations/keepassx_fr.ts b/share/translations/keepassx_fr.ts index 8384e14622..15f37c77c3 100644 --- a/share/translations/keepassx_fr.ts +++ b/share/translations/keepassx_fr.ts @@ -484,6 +484,10 @@ Veuillez sélectionner la base de donnée souhaitée pour enregistrer les identi &Vivaldi &Vivaldi + + &Brave + &Brave + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -5469,4 +5473,4 @@ Commandes disponibles : Aucune YubiKey insérée. - \ No newline at end of file + diff --git a/share/translations/keepassx_he.ts b/share/translations/keepassx_he.ts index 309bf7626f..48a384a582 100644 --- a/share/translations/keepassx_he.ts +++ b/share/translations/keepassx_he.ts @@ -548,6 +548,10 @@ Please select the correct database for saving credentials. &Vivaldi + + &Brave + &Brave + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -5420,4 +5424,4 @@ Available commands: - \ No newline at end of file + diff --git a/share/translations/keepassx_hr_HR.ts b/share/translations/keepassx_hr_HR.ts index 4a497ba5c3..91afae0e6e 100644 --- a/share/translations/keepassx_hr_HR.ts +++ b/share/translations/keepassx_hr_HR.ts @@ -548,6 +548,10 @@ Please select the correct database for saving credentials. &Vivaldi + + &Brave + + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -5420,4 +5424,4 @@ Available commands: - \ No newline at end of file + diff --git a/share/translations/keepassx_hu.ts b/share/translations/keepassx_hu.ts index 95e035abbc..5dab024fd3 100644 --- a/share/translations/keepassx_hu.ts +++ b/share/translations/keepassx_hu.ts @@ -484,6 +484,10 @@ Válassza ki a helyes adatbázist a hitelesítő adatok mentéséhez.&Vivaldi &Vivaldi + + &Brave + &Brave + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -1514,7 +1518,7 @@ Ez határozottan hiba, jelentse a fejlesztőknek. The database file has changed and you have unsaved changes. Do you want to merge your changes? - Az adatbázisfájl módosult és vannak nem mentett változások. + Az adatbázisfájl módosult és vannak nem mentett változások. Egyesíti a módosításokat? @@ -5470,4 +5474,4 @@ Elérhető parancsok: Nincs YubiKey behelyezve. - \ No newline at end of file + diff --git a/share/translations/keepassx_id.ts b/share/translations/keepassx_id.ts index efbc39535c..ff9e9dc300 100644 --- a/share/translations/keepassx_id.ts +++ b/share/translations/keepassx_id.ts @@ -483,6 +483,10 @@ Please select the correct database for saving credentials. &Vivaldi &Vivaldi + + &Brave + &Brave + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -5449,4 +5453,4 @@ Perintah yang tersedia: - \ No newline at end of file + diff --git a/share/translations/keepassx_is_IS.ts b/share/translations/keepassx_is_IS.ts index eba0192ad8..eb17eba5ed 100644 --- a/share/translations/keepassx_is_IS.ts +++ b/share/translations/keepassx_is_IS.ts @@ -548,6 +548,10 @@ Please select the correct database for saving credentials. &Vivaldi + + &Brave + + Show a &notification when credentials are requested Credentials mean login data requested via browser extension diff --git a/share/translations/keepassx_it.ts b/share/translations/keepassx_it.ts index e5a1558cc0..3df310b65c 100644 --- a/share/translations/keepassx_it.ts +++ b/share/translations/keepassx_it.ts @@ -483,6 +483,10 @@ Please select the correct database for saving credentials. &Vivaldi &Vivaldi + + &Brave + &Brave + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -5453,4 +5457,4 @@ Comandi disponibili: Nessun YubiKey inserito. - \ No newline at end of file + diff --git a/share/translations/keepassx_ja.ts b/share/translations/keepassx_ja.ts index 025d7ef28e..662e0d5219 100644 --- a/share/translations/keepassx_ja.ts +++ b/share/translations/keepassx_ja.ts @@ -484,6 +484,10 @@ Please select the correct database for saving credentials. &Vivaldi Vivaldi(&V) + + &Brave + &Brave + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -5474,4 +5478,4 @@ Available commands: YubiKey が挿入されていません。 - \ No newline at end of file + diff --git a/share/translations/keepassx_kk.ts b/share/translations/keepassx_kk.ts index 059c683da4..270e1c027b 100644 --- a/share/translations/keepassx_kk.ts +++ b/share/translations/keepassx_kk.ts @@ -548,6 +548,10 @@ Please select the correct database for saving credentials. &Vivaldi + + &Brave + + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -5421,4 +5425,4 @@ Available commands: - \ No newline at end of file + diff --git a/share/translations/keepassx_ko.ts b/share/translations/keepassx_ko.ts index 240fbaed21..262fbc8040 100644 --- a/share/translations/keepassx_ko.ts +++ b/share/translations/keepassx_ko.ts @@ -483,6 +483,10 @@ Please select the correct database for saving credentials. &Vivaldi Vivaldi(&V) + + &Brave + &Brave + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -5444,4 +5448,4 @@ Available commands: - \ No newline at end of file + diff --git a/share/translations/keepassx_la.ts b/share/translations/keepassx_la.ts index cf9c711bb6..a933b395e4 100644 --- a/share/translations/keepassx_la.ts +++ b/share/translations/keepassx_la.ts @@ -550,6 +550,10 @@ Please select the correct database for saving credentials. &Vivaldi + + &Brave + + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -5424,4 +5428,4 @@ Available commands: - \ No newline at end of file + diff --git a/share/translations/keepassx_lt.ts b/share/translations/keepassx_lt.ts index bf5f5cf225..ba2bf7f549 100644 --- a/share/translations/keepassx_lt.ts +++ b/share/translations/keepassx_lt.ts @@ -484,6 +484,10 @@ Prisijungimo duomenų įrašymui, pasirinkite teisingą duomenų bazę.&Vivaldi &Vivaldi + + &Brave + &Brave + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -5437,4 +5441,4 @@ Prieinamos komandos: - \ No newline at end of file + diff --git a/share/translations/keepassx_lv.ts b/share/translations/keepassx_lv.ts index 8e3cdadffc..de11183538 100644 --- a/share/translations/keepassx_lv.ts +++ b/share/translations/keepassx_lv.ts @@ -548,6 +548,10 @@ Please select the correct database for saving credentials. &Vivaldi + + &Brave + + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -5420,4 +5424,4 @@ Available commands: - \ No newline at end of file + diff --git a/share/translations/keepassx_nb.ts b/share/translations/keepassx_nb.ts index 58a820a426..48e6bb4a1b 100644 --- a/share/translations/keepassx_nb.ts +++ b/share/translations/keepassx_nb.ts @@ -483,6 +483,10 @@ Please select the correct database for saving credentials. &Vivaldi &Vivaldi + + &Brave + &Brave + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -5445,4 +5449,4 @@ Tilgjengelige kommandoer: Ingen YubiKey satt inn. - \ No newline at end of file + diff --git a/share/translations/keepassx_nl_NL.ts b/share/translations/keepassx_nl_NL.ts index 6b25466e60..f46e5589e2 100644 --- a/share/translations/keepassx_nl_NL.ts +++ b/share/translations/keepassx_nl_NL.ts @@ -484,6 +484,10 @@ Selecteer de database voor het opslaan van de inloggegevens. &Vivaldi &Vivaldi + + &Brave + &Brave + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -5469,4 +5473,4 @@ Beschikbare opdrachten: Geen YubiKey ingeplugd. - \ No newline at end of file + diff --git a/share/translations/keepassx_pl.ts b/share/translations/keepassx_pl.ts index ed32eff415..5777f4d78d 100644 --- a/share/translations/keepassx_pl.ts +++ b/share/translations/keepassx_pl.ts @@ -484,6 +484,10 @@ Wybierz właściwą bazę danych do zapisania danych uwierzytelniających.&Vivaldi &Vivaldi + + &Brave + &Brave + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -5476,4 +5480,4 @@ Dostępne polecenia: Nie włożono YubiKey. - \ No newline at end of file + diff --git a/share/translations/keepassx_pt.ts b/share/translations/keepassx_pt.ts index 71df82a7b7..b912c474b5 100644 --- a/share/translations/keepassx_pt.ts +++ b/share/translations/keepassx_pt.ts @@ -484,6 +484,10 @@ Selecione a base de dados correta para guardar as credenciais. &Vivaldi &Vivaldi + + &Brave + &Brave + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -1516,7 +1520,7 @@ Existe aqui um erro que deve ser reportado aos programadores. The database file has changed and you have unsaved changes. Do you want to merge your changes? - A base de dados foi alterada e tem alterações não guardadas. + A base de dados foi alterada e tem alterações não guardadas. Deseja combinar as suas alterações? @@ -5476,4 +5480,4 @@ Comandos disponíveis: Youbikey não inserida. - \ No newline at end of file + diff --git a/share/translations/keepassx_pt_BR.ts b/share/translations/keepassx_pt_BR.ts index 3199b21e0a..14e214d509 100644 --- a/share/translations/keepassx_pt_BR.ts +++ b/share/translations/keepassx_pt_BR.ts @@ -484,6 +484,10 @@ Por favor, selecione o banco de dados correto para salvar as credenciais.&Vivaldi &Vivaldi + + &Brave + &Brave + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -5459,4 +5463,4 @@ Comandos disponíveis: Nenhuma YubiKey inserida. - \ No newline at end of file + diff --git a/share/translations/keepassx_pt_PT.ts b/share/translations/keepassx_pt_PT.ts index 5e2014fc8c..c39190a693 100644 --- a/share/translations/keepassx_pt_PT.ts +++ b/share/translations/keepassx_pt_PT.ts @@ -484,6 +484,10 @@ Selecione a base de dados correta para guardar as credenciais. &Vivaldi &Vivaldi + + &Brave + &Brave + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -1516,7 +1520,7 @@ Existe aqui um erro que deve ser reportado aos programadores. The database file has changed and you have unsaved changes. Do you want to merge your changes? - A base de dados foi alterada e tem alterações não guardadas. + A base de dados foi alterada e tem alterações não guardadas. Deseja combinar as suas alterações? @@ -5476,4 +5480,4 @@ Comandos disponíveis: Youbikey não inserida. - \ No newline at end of file + diff --git a/share/translations/keepassx_ro.ts b/share/translations/keepassx_ro.ts index c6dfda9938..22a0e853dd 100644 --- a/share/translations/keepassx_ro.ts +++ b/share/translations/keepassx_ro.ts @@ -550,6 +550,10 @@ Please select the correct database for saving credentials. &Vivaldi + + &Brave + + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -5426,4 +5430,4 @@ Comenzi disponibile: - \ No newline at end of file + diff --git a/share/translations/keepassx_ru.ts b/share/translations/keepassx_ru.ts index 10b78f00d6..e940137f74 100644 --- a/share/translations/keepassx_ru.ts +++ b/share/translations/keepassx_ru.ts @@ -484,6 +484,10 @@ Please select the correct database for saving credentials. &Vivaldi &Vivaldi + + &Brave + &Brave + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -4263,7 +4267,7 @@ Expect some bugs and minor issues, this version is not meant for production use. unsupported in the future. Please consider generating a new key file. - ВНИМАНИЕ: Вы используете ключевой файл устаревшего формата, поддержка которого + ВНИМАНИЕ: Вы используете ключевой файл устаревшего формата, поддержка которого может быть прекращена в будущем. По возможности создайте новый ключевой файл. @@ -5473,4 +5477,4 @@ Available commands: YubiKey не подключен. - \ No newline at end of file + diff --git a/share/translations/keepassx_sk.ts b/share/translations/keepassx_sk.ts index 450f50f42c..fe244d3a12 100644 --- a/share/translations/keepassx_sk.ts +++ b/share/translations/keepassx_sk.ts @@ -484,6 +484,10 @@ Prosím, vyberte správnu databázu na uloženie prihlasovacích údajov.&Vivaldi &Vivaldi + + &Brave + &Brave + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -5452,4 +5456,4 @@ Dostupné príkazy: - \ No newline at end of file + diff --git a/share/translations/keepassx_sl_SI.ts b/share/translations/keepassx_sl_SI.ts index e2ede67f90..bae9cfa9a4 100644 --- a/share/translations/keepassx_sl_SI.ts +++ b/share/translations/keepassx_sl_SI.ts @@ -548,6 +548,10 @@ Please select the correct database for saving credentials. &Vivaldi + + &Brave + + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -5421,4 +5425,4 @@ Available commands: - \ No newline at end of file + diff --git a/share/translations/keepassx_sr.ts b/share/translations/keepassx_sr.ts index 80787e01ef..c4a8538cd2 100644 --- a/share/translations/keepassx_sr.ts +++ b/share/translations/keepassx_sr.ts @@ -551,6 +551,10 @@ Please select the correct database for saving credentials. &Vivaldi + + &Brave + + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -5427,4 +5431,4 @@ Available commands: - \ No newline at end of file + diff --git a/share/translations/keepassx_sv.ts b/share/translations/keepassx_sv.ts index ffc6479037..09e2480b2d 100644 --- a/share/translations/keepassx_sv.ts +++ b/share/translations/keepassx_sv.ts @@ -483,6 +483,10 @@ Please select the correct database for saving credentials. &Vivaldi &Vivaldi + + &Brave + &Brave + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -5426,4 +5430,4 @@ Tillgängliga kommandon: - \ No newline at end of file + diff --git a/share/translations/keepassx_th.ts b/share/translations/keepassx_th.ts index a7fbc578fc..6e7c67877e 100644 --- a/share/translations/keepassx_th.ts +++ b/share/translations/keepassx_th.ts @@ -15,7 +15,7 @@ KeePassXC is distributed under the terms of the GNU General Public License (GPL) version 2 or (at your option) version 3. - KeePassXC เผยแพร่ภายใต้เงื่อนไขของสัญญาอนุญาตสาธารณะทั่วไปของกนู (GNU GPL) + KeePassXC เผยแพร่ภายใต้เงื่อนไขของสัญญาอนุญาตสาธารณะทั่วไปของกนู (GNU GPL) รุ่น 2 หรือรุ่น 3 (คุณสามารถเลือกได้) @@ -551,6 +551,10 @@ Please select the correct database for saving credentials. &Vivaldi &Vivaldi + + &Brave + &Brave + Show a &notification when credentials are requested Credentials mean login data requested via browser extension diff --git a/share/translations/keepassx_tr.ts b/share/translations/keepassx_tr.ts index 84a331e3d0..eab58612fc 100644 --- a/share/translations/keepassx_tr.ts +++ b/share/translations/keepassx_tr.ts @@ -484,6 +484,10 @@ Lütfen kimlik bilgilerini kaydetmek için doğru veritabanını seç.&Vivaldi &Vivaldi + + &Brave + &Brave + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -635,7 +639,7 @@ If you would like to allow it access to your KeePassXC database, give it a unique name to identify and accept it. Yukarıdaki anahtar için bir ilişkilendirme isteği aldınız. -Eğer KeePassXC veritabanınıza erişim izni vermek isterseniz, +Eğer KeePassXC veritabanınıza erişim izni vermek isterseniz, onu tanımlamak için benzersiz bir isim ver ve kabul et. @@ -649,7 +653,7 @@ onu tanımlamak için benzersiz bir isim ver ve kabul et. A shared encryption key with the name "%1" already exists. Do you want to overwrite it? - "%1" adıyla paylaşılan bir şifreleme anahtarı zaten var. + "%1" adıyla paylaşılan bir şifreleme anahtarı zaten var. Üzerine yazmak istiyor musun? @@ -917,8 +921,8 @@ Would you like to migrate your existing settings now? unsupported in the future. Please consider generating a new key file. - İleride desteklenmeyebilecek eski bir anahtar -dosya biçimi kullanıyorsunuz. + İleride desteklenmeyebilecek eski bir anahtar +dosya biçimi kullanıyorsunuz. Lütfen yeni bir anahtar dosyası oluşturmayı düşünün. @@ -3451,7 +3455,7 @@ Bu sürüm, üretimde kullanıma uygun değildir. WARNING: Your Qt version may cause KeePassXC to crash with an On-Screen Keyboard! We recommend you use the AppImage available on our downloads page. - Uyarı: Qt sürümünüz Keepassxc'nin ekran klavyesiyle çökmesine neden olabilir! + Uyarı: Qt sürümünüz Keepassxc'nin ekran klavyesiyle çökmesine neden olabilir! Keepassxc indirme sayfasında mevcut Appımage kullanmanızı öneririz. @@ -5477,4 +5481,4 @@ Kullanılabilir komutlar: YubiKey eklenmedi. - \ No newline at end of file + diff --git a/share/translations/keepassx_uk.ts b/share/translations/keepassx_uk.ts index fbd14999b5..28ee5e7311 100644 --- a/share/translations/keepassx_uk.ts +++ b/share/translations/keepassx_uk.ts @@ -484,6 +484,10 @@ Please select the correct database for saving credentials. &Vivaldi &Vivaldi + + &Brave + &Brave + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -5476,4 +5480,4 @@ Available commands: YubiKey не підключений. - \ No newline at end of file + diff --git a/share/translations/keepassx_zh_CN.ts b/share/translations/keepassx_zh_CN.ts index a50530b008..56ff6c360d 100644 --- a/share/translations/keepassx_zh_CN.ts +++ b/share/translations/keepassx_zh_CN.ts @@ -484,6 +484,10 @@ Please select the correct database for saving credentials. &Vivaldi &Vivaldi + + &Brave + &Brave + Show a &notification when credentials are requested Credentials mean login data requested via browser extension @@ -5471,4 +5475,4 @@ Available commands: 没有插入YubiKey。 - \ No newline at end of file + diff --git a/share/translations/keepassx_zh_TW.ts b/share/translations/keepassx_zh_TW.ts index 7c5b5deb0a..a94cc5fc8a 100644 --- a/share/translations/keepassx_zh_TW.ts +++ b/share/translations/keepassx_zh_TW.ts @@ -483,6 +483,10 @@ Please select the correct database for saving credentials. &Vivaldi &Vivaldi + + &Brave + &Brave + Show a &notification when credentials are requested Credentials mean login data requested via browser extension diff --git a/src/browser/BrowserOptionDialog.cpp b/src/browser/BrowserOptionDialog.cpp index dd91f15949..9eecc63f9a 100644 --- a/src/browser/BrowserOptionDialog.cpp +++ b/src/browser/BrowserOptionDialog.cpp @@ -47,7 +47,7 @@ BrowserOptionDialog::BrowserOptionDialog(QWidget* parent) tr("KeePassXC-Browser is needed for the browser integration to work.
Download it for %1 and %2. %3") .arg("Firefox", "" - "Google Chrome / Chromium / Vivaldi", + "Google Chrome / Chromium / Vivaldi / Brave", snapInstructions)); // clang-format on @@ -75,9 +75,11 @@ BrowserOptionDialog::BrowserOptionDialog(QWidget* parent) connect(m_ui->customProxyLocationBrowseButton, SIGNAL(clicked()), this, SLOT(showProxyLocationFileDialog())); #ifdef Q_OS_WIN + // Brave uses Chrome's registry settings + m_ui->braveSupport->setHidden(true); // Vivaldi uses Chrome's registry settings m_ui->vivaldiSupport->setHidden(true); - m_ui->chromeSupport->setText("Chrome and Vivaldi"); + m_ui->chromeSupport->setText("Chrome, Vivaldi, and Brave"); // Tor Browser uses Firefox's registry settings m_ui->torBrowserSupport->setHidden(true); m_ui->firefoxSupport->setText("Firefox and Tor Browser"); @@ -122,6 +124,7 @@ void BrowserOptionDialog::loadSettings() m_ui->chromiumSupport->setChecked(settings->chromiumSupport()); m_ui->firefoxSupport->setChecked(settings->firefoxSupport()); #ifndef Q_OS_WIN + m_ui->braveSupport->setChecked(settings->braveSupport()); m_ui->vivaldiSupport->setChecked(settings->vivaldiSupport()); m_ui->torBrowserSupport->setChecked(settings->torBrowserSupport()); #endif @@ -183,6 +186,7 @@ void BrowserOptionDialog::saveSettings() settings->setChromiumSupport(m_ui->chromiumSupport->isChecked()); settings->setFirefoxSupport(m_ui->firefoxSupport->isChecked()); #ifndef Q_OS_WIN + settings->setBraveSupport(m_ui->braveSupport->isChecked()); settings->setVivaldiSupport(m_ui->vivaldiSupport->isChecked()); settings->setTorBrowserSupport(m_ui->torBrowserSupport->isChecked()); #endif diff --git a/src/browser/BrowserOptionDialog.ui b/src/browser/BrowserOptionDialog.ui index 2b32bb9e80..50fd9d205c 100755 --- a/src/browser/BrowserOptionDialog.ui +++ b/src/browser/BrowserOptionDialog.ui @@ -150,6 +150,16 @@ + + + + &Brave + + + false + + + diff --git a/src/browser/BrowserSettings.cpp b/src/browser/BrowserSettings.cpp index 9aab68f7ed..dd74dc1cb6 100644 --- a/src/browser/BrowserSettings.cpp +++ b/src/browser/BrowserSettings.cpp @@ -238,6 +238,17 @@ void BrowserSettings::setVivaldiSupport(bool enabled) HostInstaller::SupportedBrowsers::VIVALDI, enabled, supportBrowserProxy(), customProxyLocation()); } +bool BrowserSettings::braveSupport() +{ + return m_hostInstaller.checkIfInstalled(HostInstaller::SupportedBrowsers::BRAVE); +} + +void BrowserSettings::setBraveSupport(bool enabled) +{ + m_hostInstaller.installBrowser( + HostInstaller::SupportedBrowsers::BRAVE, enabled, supportBrowserProxy(), customProxyLocation()); +} + bool BrowserSettings::torBrowserSupport() { return m_hostInstaller.checkIfInstalled(HostInstaller::SupportedBrowsers::TOR_BROWSER); diff --git a/src/browser/BrowserSettings.h b/src/browser/BrowserSettings.h index b00c75b713..ba74ff53e5 100644 --- a/src/browser/BrowserSettings.h +++ b/src/browser/BrowserSettings.h @@ -72,6 +72,8 @@ class BrowserSettings void setFirefoxSupport(bool enabled); bool vivaldiSupport(); void setVivaldiSupport(bool enabled); + bool braveSupport(); + void setBraveSupport(bool enabled); bool torBrowserSupport(); void setTorBrowserSupport(bool enabled); diff --git a/src/browser/HostInstaller.cpp b/src/browser/HostInstaller.cpp index 08782fa167..38a2d3bc67 100644 --- a/src/browser/HostInstaller.cpp +++ b/src/browser/HostInstaller.cpp @@ -38,12 +38,14 @@ HostInstaller::HostInstaller() , TARGET_DIR_CHROMIUM("/Library/Application Support/Chromium/NativeMessagingHosts") , TARGET_DIR_FIREFOX("/Library/Application Support/Mozilla/NativeMessagingHosts") , TARGET_DIR_VIVALDI("/Library/Application Support/Vivaldi/NativeMessagingHosts") + , TARGET_DIR_BRAVE("/Library/Application Support/BraveSoftware/Brave-Browser/NativeMessagingHosts") , TARGET_DIR_TOR_BROWSER("/Library/Application Support/TorBrowser-Data/Browser/Mozilla/NativeMessagingHosts") #elif defined(Q_OS_LINUX) , TARGET_DIR_CHROME("/.config/google-chrome/NativeMessagingHosts") , TARGET_DIR_CHROMIUM("/.config/chromium/NativeMessagingHosts") , TARGET_DIR_FIREFOX("/.mozilla/native-messaging-hosts") , TARGET_DIR_VIVALDI("/.config/vivaldi/NativeMessagingHosts") + , TARGET_DIR_BRAVE("/.config/BraveSoftware/Brave-Browser/NativeMessagingHosts") , TARGET_DIR_TOR_BROWSER("/.tor-browser/app/Browser/TorBrowser/Data/Browser/.mozilla/native-messaging-hosts") #elif defined(Q_OS_WIN) // clang-format off @@ -52,6 +54,7 @@ HostInstaller::HostInstaller() // clang-format on , TARGET_DIR_FIREFOX("HKEY_CURRENT_USER\\Software\\Mozilla\\NativeMessagingHosts\\org.keepassxc.keepassxc_browser") , TARGET_DIR_VIVALDI(TARGET_DIR_CHROME) + , TARGET_DIR_BRAVE(TARGET_DIR_CHROME) , TARGET_DIR_TOR_BROWSER(TARGET_DIR_FIREFOX) #endif { @@ -140,7 +143,7 @@ void HostInstaller::installBrowser(SupportedBrowsers browser, */ void HostInstaller::updateBinaryPaths(const bool& proxy, const QString& location) { - for (int i = 0; i < 4; ++i) { + for (int i = 0; i < 5; ++i) { if (checkIfInstalled(static_cast(i))) { installBrowser(static_cast(i), true, proxy, location); } @@ -164,6 +167,8 @@ QString HostInstaller::getTargetPath(SupportedBrowsers browser) const return TARGET_DIR_FIREFOX; case SupportedBrowsers::VIVALDI: return TARGET_DIR_VIVALDI; + case SupportedBrowsers::BRAVE: + return TARGET_DIR_BRAVE; case SupportedBrowsers::TOR_BROWSER: return TARGET_DIR_TOR_BROWSER; default: @@ -188,7 +193,9 @@ QString HostInstaller::getBrowserName(SupportedBrowsers browser) const case SupportedBrowsers::FIREFOX: return "firefox"; case SupportedBrowsers::VIVALDI: - return "vivaldi"; + return "vivaldi"; + case SupportedBrowsers::BRAVE: + return "brave"; case SupportedBrowsers::TOR_BROWSER: return "tor-browser"; default: diff --git a/src/browser/HostInstaller.h b/src/browser/HostInstaller.h index ea0c4bd2f7..154fe21a93 100644 --- a/src/browser/HostInstaller.h +++ b/src/browser/HostInstaller.h @@ -34,7 +34,8 @@ class HostInstaller : public QObject CHROMIUM = 1, FIREFOX = 2, VIVALDI = 3, - TOR_BROWSER = 4 + TOR_BROWSER = 4, + BRAVE = 5 }; public: @@ -66,6 +67,7 @@ class HostInstaller : public QObject const QString TARGET_DIR_FIREFOX; const QString TARGET_DIR_VIVALDI; const QString TARGET_DIR_TOR_BROWSER; + const QString TARGET_DIR_BRAVE; }; #endif // HOSTINSTALLER_H diff --git a/utils/keepassxc-snap-helper.sh b/utils/keepassxc-snap-helper.sh index 4b2ce94d63..206accaf11 100755 --- a/utils/keepassxc-snap-helper.sh +++ b/utils/keepassxc-snap-helper.sh @@ -92,6 +92,11 @@ setupVivaldi() { INSTALL_DIR="${BASE_DIR}/.config/vivaldi/NativeMessagingHosts" } +setupBrave() { + buildJson + INSTALL_DIR="${BASE_DIR}/.config/BraveSoftware/Brave-Browser/NativeMessagingHosts" +} + setupTorBrowser() { buildJson "firefox" INSTALL_DIR="${BASE_DIR}/.tor-browser/app/Browser/TorBrowser/Data/Browser/.mozilla/native-messaging-hosts" @@ -109,9 +114,10 @@ BROWSER=$(whiptail \ "2" "Chrome" \ "3" "Chromium" \ "4" "Vivaldi" \ - "5" "Tor Browser" \ + "5" "Brave" \ + "6" "Tor Browser" \ 3>&1 1>&2 2>&3) - + clear exitstatus=$? @@ -122,16 +128,17 @@ if [ $exitstatus = 0 ]; then 2) setupChrome ;; 3) setupChromium ;; 4) setupVivaldi ;; - 5) setupTorBrowser ;; + 5) setupBrave ;; + 6) setupTorBrowser ;; esac # Install the JSON file cd ~ mkdir -p "$INSTALL_DIR" echo "$JSON_OUT" > ${INSTALL_DIR}/${INSTALL_FILE} - + $DEBUG && echo "Installed to: ${INSTALL_DIR}/${INSTALL_FILE}" - + whiptail \ --title "Installation Complete" \ --msgbox "You will need to restart your browser in order to connect to KeePassXC" \ @@ -139,4 +146,3 @@ if [ $exitstatus = 0 ]; then else whiptail --title "Installation Canceled" --msgbox "No changes were made to your system" 8 50 fi -