From 3272609beb740a900f15ff15a6221aa89fb62180 Mon Sep 17 00:00:00 2001 From: Francisco Vilmar Cardoso Ruviaro Date: Thu, 25 May 2023 16:38:39 +0000 Subject: [PATCH] New upstream version 1.6.2 --- CMakeLists.txt | 2 +- README.md | 5 +- appimage/AppImageBuilder.yml | 1 + po/CMakeLists.txt | 6 +- po/LINGUAS | 3 +- po/en.po | 52 +++-- po/es.po | 52 +++-- po/fr.po | 212 ++++++++++++++++++ po/it.po | 52 +++-- po/ka.po | 52 +++-- po/nl.po | 52 +++-- po/pt-br.po | 52 +++-- po/ru.po | 52 +++-- po/tr.po | 56 +++-- po/whatsapp-for-linux.pot | 47 ++-- ...thub.eneshecan.WhatsAppForLinux.desktop.in | 3 + resource/ui/ShortcutsWindow.ui | 14 ++ src/ui/MainWindow.cpp | 130 +++++++---- src/ui/MainWindow.hpp | 8 +- src/ui/WebView.cpp | 10 +- 20 files changed, 610 insertions(+), 251 deletions(-) create mode 100644 po/fr.po diff --git a/CMakeLists.txt b/CMakeLists.txt index 704cd5e..021f24b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.12) project( whatsapp-for-linux - VERSION 1.6.0 + VERSION 1.6.2 DESCRIPTION "An unofficial WhatsApp desktop application for Linux" HOMEPAGE_URL "https://github.com/eneshecan/whatsapp-for-linux" LANGUAGES C CXX diff --git a/README.md b/README.md index c1286d3..1b25bd7 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,7 @@ An unofficial WhatsApp desktop application for Linux. [![Action Status](https://github.com/eneshecan/whatsapp-for-linux/workflows/Build/badge.svg)](https://github.com/eneshecan/whatsapp-for-linux/actions/workflows/build.yml) [![Action Status](https://github.com/eneshecan/whatsapp-for-linux/workflows/Install/badge.svg)](https://github.com/eneshecan/whatsapp-for-linux/actions/workflows/install.yml) [![Action Status](https://github.com/eneshecan/whatsapp-for-linux/workflows/Release/badge.svg)](https://github.com/eneshecan/whatsapp-for-linux/actions/workflows/release.yml) +[![POEditor](https://img.shields.io/badge/Translations-POEditor-brightgreen)](https://poeditor.com/join/project/jMGkxVn3vN) ![App Window](screenshot/app.png) @@ -42,9 +43,11 @@ Check out [wiki](https://github.com/eneshecan/whatsapp-for-linux/wiki) for furth ## Features -* Features come with whatsapp web except audio and image capture +* Features come with WhatsApp Web + * WhatsApp specific keyboard shortcuts work with *Alt* key instead of *Cmd* * Zoom in/out * System tray icon +* Notification sounds * Autostart with system * Fullscreen mode * Show/Hide headerbar by pressing *Alt+H* diff --git a/appimage/AppImageBuilder.yml b/appimage/AppImageBuilder.yml index 75a1a16..d8aa5be 100644 --- a/appimage/AppImageBuilder.yml +++ b/appimage/AppImageBuilder.yml @@ -87,6 +87,7 @@ AppDir: - /lib/x86_64-linux-gnu/libcairo-gobject.so.2 - /lib/x86_64-linux-gnu/libcairo.so.2 - /lib/x86_64-linux-gnu/libcairomm-1.0.so.1 + - /lib/x86_64-linux-gnu/libcanberra.so.0 - /lib/x86_64-linux-gnu/libchromaprint.so.1 - /lib/x86_64-linux-gnu/libcodec2.so.0.9 - /lib/x86_64-linux-gnu/libcrypto.so.1.1 diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt index 616bd09..b784f60 100644 --- a/po/CMakeLists.txt +++ b/po/CMakeLists.txt @@ -2,12 +2,12 @@ file(GLOB PO_FILES *.po) add_custom_command( OUTPUT ${CMAKE_PROJECT_NAME}.pot - COMMAND intltool-update -g ${CMAKE_PROJECT_NAME} -p + COMMAND intltool-update -g ${CMAKE_PROJECT_NAME} -p && intltool-update --dist --gettext-package=whatsapp-for-linux --output-file=en.po en WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} - COMMENT "Updating default translation file" + COMMENT "Updating default translation files" ) -add_custom_target(update-translation DEPENDS ${CMAKE_PROJECT_NAME}.pot) +add_custom_target(update-translations DEPENDS ${CMAKE_PROJECT_NAME}.pot en.po) foreach (LANG ${PO_FILES}) get_filename_component(LANG ${LANG} NAME) diff --git a/po/LINGUAS b/po/LINGUAS index a305cdc..66e02c0 100644 --- a/po/LINGUAS +++ b/po/LINGUAS @@ -1,8 +1,9 @@ # Keep this file sorted alphabetically, one language code per line +es +fr it ka nl pt-br ru tr -es diff --git a/po/en.po b/po/en.po index 12bcfe1..d107ec9 100644 --- a/po/en.po +++ b/po/en.po @@ -7,16 +7,16 @@ msgstr "" "Project-Id-Version: WhatsApp for Linux\n" "Language: en\n" -#: ../src/ui/MainWindow.cpp:300 ../src/ui/TrayIcon.cpp:46 +#: ../src/ui/MainWindow.cpp:344 ../src/ui/TrayIcon.cpp:46 #: ../resource/ui/MainWindow.ui.h:4 msgid "About" msgstr "About" -#: ../src/ui/MainWindow.cpp:302 ../resource/ui/MainWindow.ui.h:6 +#: ../src/ui/MainWindow.cpp:346 ../resource/ui/MainWindow.ui.h:6 msgid "WhatsApp for Linux" msgstr "WhatsApp for Linux" -#: ../src/ui/MainWindow.cpp:303 +#: ../src/ui/MainWindow.cpp:347 msgid "An unofficial WhatsApp desktop application for Linux" msgstr "An unofficial WhatsApp desktop application for Linux" @@ -37,35 +37,27 @@ msgid "Show" msgstr "Show" #: ../src/ui/TrayIcon.cpp:47 ../resource/ui/MainWindow.ui.h:5 -#: ../resource/ui/ShortcutsWindow.ui.h:8 +#: ../resource/ui/ShortcutsWindow.ui.h:10 msgid "Quit" msgstr "Quit" -#: ../src/ui/WebView.cpp:34 -msgid "Notification Request" -msgstr "Notification Request" - -#: ../src/ui/WebView.cpp:35 -msgid "Would you like to allow notifications?" -msgstr "Would you like to allow notifications?" - -#: ../src/ui/WebView.cpp:69 +#: ../src/ui/WebView.cpp:75 msgid "Save File" msgstr "Save File" -#: ../src/ui/WebView.cpp:70 +#: ../src/ui/WebView.cpp:76 msgid "Ok" msgstr "Ok" -#: ../src/ui/WebView.cpp:71 +#: ../src/ui/WebView.cpp:77 msgid "Cancel" msgstr "Cancel" -#: ../src/ui/WebView.cpp:322 +#: ../src/ui/WebView.cpp:328 msgid "Unresponsive" msgstr "Unresponsive" -#: ../src/ui/WebView.cpp:323 +#: ../src/ui/WebView.cpp:329 msgid "The application is not responding. Would you like to reload?" msgstr "The application is not responding. Would you like to reload?" @@ -77,7 +69,7 @@ msgstr "Fullscreen" msgid "Preferences" msgstr "Preferences" -#: ../resource/ui/MainWindow.ui.h:3 ../resource/ui/ShortcutsWindow.ui.h:7 +#: ../resource/ui/MainWindow.ui.h:3 ../resource/ui/ShortcutsWindow.ui.h:9 msgid "Keyboard Shortcuts" msgstr "Keyboard Shortcuts" @@ -170,19 +162,19 @@ msgstr "Shortcuts" msgid "Refresh Page" msgstr "Refresh Page" -#: ../resource/ui/ShortcutsWindow.ui.h:4 +#: ../resource/ui/ShortcutsWindow.ui.h:6 msgid "Enter/Exit Fullscreen" msgstr "Enter/Exit Fullscreen" -#: ../resource/ui/ShortcutsWindow.ui.h:5 +#: ../resource/ui/ShortcutsWindow.ui.h:7 msgid "Show/Hide Header Bar" msgstr "Show/Hide Header Bar" -#: ../resource/ui/ShortcutsWindow.ui.h:6 +#: ../resource/ui/ShortcutsWindow.ui.h:8 msgid "Open Preferences" msgstr "Open Preferences" -#: ../src/ui/MainWindow.cpp:305 +#: ../src/ui/MainWindow.cpp:349 msgid "GitHub Repository" msgstr "GitHub Repository" @@ -202,3 +194,19 @@ msgstr "Minimum Font Size" msgid "Minimum font size used to display text, values other than 0 can potentially break page layouts" msgstr "Minimum font size used to display text, values other than 0 can potentially break page layouts" +#: ../resource/ui/ShortcutsWindow.ui.h:4 +msgid "Zoom In" +msgstr "Zoom In" + +#: ../resource/ui/ShortcutsWindow.ui.h:5 +msgid "Zoom Out" +msgstr "Zoom Out" + +#: ../src/ui/WebView.cpp:40 +msgid "Permission Request" +msgstr "Permission Request" + +#: ../src/ui/WebView.cpp:41 +msgid "Would you like to allow permissions?" +msgstr "Would you like to allow permissions?" + diff --git a/po/es.po b/po/es.po index 9363882..2cecea5 100644 --- a/po/es.po +++ b/po/es.po @@ -7,16 +7,16 @@ msgstr "" "Project-Id-Version: WhatsApp for Linux\n" "Language: es\n" -#: ../src/ui/MainWindow.cpp:300 ../src/ui/TrayIcon.cpp:46 +#: ../src/ui/MainWindow.cpp:344 ../src/ui/TrayIcon.cpp:46 #: ../resource/ui/MainWindow.ui.h:4 msgid "About" msgstr "Acerca de" -#: ../src/ui/MainWindow.cpp:302 ../resource/ui/MainWindow.ui.h:6 +#: ../src/ui/MainWindow.cpp:346 ../resource/ui/MainWindow.ui.h:6 msgid "WhatsApp for Linux" msgstr "WhatsApp para Linux" -#: ../src/ui/MainWindow.cpp:303 +#: ../src/ui/MainWindow.cpp:347 msgid "An unofficial WhatsApp desktop application for Linux" msgstr "Aplicación no oficial de WhatsApp para Linux" @@ -37,35 +37,27 @@ msgid "Show" msgstr "Mostrar" #: ../src/ui/TrayIcon.cpp:47 ../resource/ui/MainWindow.ui.h:5 -#: ../resource/ui/ShortcutsWindow.ui.h:8 +#: ../resource/ui/ShortcutsWindow.ui.h:10 msgid "Quit" msgstr "Salir" -#: ../src/ui/WebView.cpp:34 -msgid "Notification Request" -msgstr "Solicitud de notificaciones" - -#: ../src/ui/WebView.cpp:35 -msgid "Would you like to allow notifications?" -msgstr "¿Desea permitir las notificaciones?" - -#: ../src/ui/WebView.cpp:69 +#: ../src/ui/WebView.cpp:75 msgid "Save File" msgstr "Guardar archivo" -#: ../src/ui/WebView.cpp:70 +#: ../src/ui/WebView.cpp:76 msgid "Ok" msgstr "Ok" -#: ../src/ui/WebView.cpp:71 +#: ../src/ui/WebView.cpp:77 msgid "Cancel" msgstr "Cancelar" -#: ../src/ui/WebView.cpp:322 +#: ../src/ui/WebView.cpp:328 msgid "Unresponsive" msgstr "No responde" -#: ../src/ui/WebView.cpp:323 +#: ../src/ui/WebView.cpp:329 msgid "The application is not responding. Would you like to reload?" msgstr "La aplicación no responde. ¿Desea recargarla?" @@ -77,7 +69,7 @@ msgstr "Pantalla completa" msgid "Preferences" msgstr "Preferencias" -#: ../resource/ui/MainWindow.ui.h:3 ../resource/ui/ShortcutsWindow.ui.h:7 +#: ../resource/ui/MainWindow.ui.h:3 ../resource/ui/ShortcutsWindow.ui.h:9 msgid "Keyboard Shortcuts" msgstr "Atajos de teclado" @@ -170,19 +162,19 @@ msgstr "Atajos" msgid "Refresh Page" msgstr "Actualizar página" -#: ../resource/ui/ShortcutsWindow.ui.h:4 +#: ../resource/ui/ShortcutsWindow.ui.h:6 msgid "Enter/Exit Fullscreen" msgstr "Entrar/Salir de pantalla completa" -#: ../resource/ui/ShortcutsWindow.ui.h:5 +#: ../resource/ui/ShortcutsWindow.ui.h:7 msgid "Show/Hide Header Bar" msgstr "Mostrar/Ocultar barra de encabezado" -#: ../resource/ui/ShortcutsWindow.ui.h:6 +#: ../resource/ui/ShortcutsWindow.ui.h:8 msgid "Open Preferences" msgstr "Abrir Preferencias" -#: ../src/ui/MainWindow.cpp:305 +#: ../src/ui/MainWindow.cpp:349 msgid "GitHub Repository" msgstr "Repositorio GitHub" @@ -202,3 +194,19 @@ msgstr "Minimum Font Size" msgid "Minimum font size used to display text, values other than 0 can potentially break page layouts" msgstr "Minimum font size used to display text, values other than 0 can potentially break page layouts" +#: ../resource/ui/ShortcutsWindow.ui.h:4 +msgid "Zoom In" +msgstr "Zoom In" + +#: ../resource/ui/ShortcutsWindow.ui.h:5 +msgid "Zoom Out" +msgstr "Zoom Out" + +#: ../src/ui/WebView.cpp:40 +msgid "Permission Request" +msgstr "Permission Request" + +#: ../src/ui/WebView.cpp:41 +msgid "Would you like to allow permissions?" +msgstr "Would you like to allow permissions?" + diff --git a/po/fr.po b/po/fr.po new file mode 100644 index 0000000..6dd081f --- /dev/null +++ b/po/fr.po @@ -0,0 +1,212 @@ +msgid "" +msgstr "" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: POEditor.com\n" +"Project-Id-Version: WhatsApp for Linux\n" +"Language: fr\n" + +#: ../src/ui/MainWindow.cpp:344 ../src/ui/TrayIcon.cpp:46 +#: ../resource/ui/MainWindow.ui.h:4 +msgid "About" +msgstr "À propos" + +#: ../src/ui/MainWindow.cpp:346 ../resource/ui/MainWindow.ui.h:6 +msgid "WhatsApp for Linux" +msgstr "WhatsApp pour Linux" + +#: ../src/ui/MainWindow.cpp:347 +msgid "An unofficial WhatsApp desktop application for Linux" +msgstr "Une application WhatsApp de bureau non officielle pour Linux" + +#: ../src/ui/PreferencesWindow.cpp:40 +msgid "On Demand" +msgstr "Sur demande" + +#: ../src/ui/PreferencesWindow.cpp:41 +msgid "Always" +msgstr "Toujours" + +#: ../src/ui/PreferencesWindow.cpp:42 +msgid "Never" +msgstr "Jamais" + +#: ../src/ui/TrayIcon.cpp:45 +msgid "Show" +msgstr "Afficher" + +#: ../src/ui/TrayIcon.cpp:47 ../resource/ui/MainWindow.ui.h:5 +#: ../resource/ui/ShortcutsWindow.ui.h:10 +msgid "Quit" +msgstr "Quitter" + +#: ../src/ui/WebView.cpp:75 +msgid "Save File" +msgstr "Enregistrer le fichier" + +#: ../src/ui/WebView.cpp:76 +msgid "Ok" +msgstr "Ok" + +#: ../src/ui/WebView.cpp:77 +msgid "Cancel" +msgstr "Annuler" + +#: ../src/ui/WebView.cpp:328 +msgid "Unresponsive" +msgstr "Sans réponse" + +#: ../src/ui/WebView.cpp:329 +msgid "The application is not responding. Would you like to reload?" +msgstr "L'application ne répond pas. Voulez-vous la recharger ?" + +#: ../resource/ui/MainWindow.ui.h:1 +msgid "Fullscreen" +msgstr "Plein écran" + +#: ../resource/ui/MainWindow.ui.h:2 ../resource/ui/PreferencesWindow.ui.h:22 +msgid "Preferences" +msgstr "Préférences" + +#: ../resource/ui/MainWindow.ui.h:3 ../resource/ui/ShortcutsWindow.ui.h:9 +msgid "Keyboard Shortcuts" +msgstr "Raccourcis clavier" + +#: ../resource/ui/MainWindow.ui.h:7 +msgid "Refresh" +msgstr "Actualiser" + +#: ../resource/ui/MainWindow.ui.h:8 ../resource/ui/PhoneNumberDialog.ui.h:1 +msgid "Open chat by phone number" +msgstr "Ouvrir le chat par numéro de téléphone" + +#: ../resource/ui/PhoneNumberDialog.ui.h:2 +msgid "Enter phone number (only digits)" +msgstr "Entrez le numéro de téléphone (chiffres uniquement)" + +#: ../resource/ui/PreferencesWindow.ui.h:1 +msgid "Close to Tray" +msgstr "Fermer vers la barre de notification" + +#: ../resource/ui/PreferencesWindow.ui.h:2 +msgid "Start in Tray" +msgstr "Démarrer dans la barre de notification" + +#: ../resource/ui/PreferencesWindow.ui.h:3 +msgid "Start Minimized" +msgstr "Démarrer minimisé" + +#: ../resource/ui/PreferencesWindow.ui.h:4 +msgid "Autostart" +msgstr "Démarrage automatique" + +#: ../resource/ui/PreferencesWindow.ui.h:5 +msgid "Enable tray icon" +msgstr "Activer l'icône dans la barre de notification" + +#: ../resource/ui/PreferencesWindow.ui.h:6 +msgid "Start application as closed to tray" +msgstr "Démarrer l'application en la fermant dans la barre de notification" + +#: ../resource/ui/PreferencesWindow.ui.h:7 +msgid "Start application as minimized" +msgstr "Démarrer l'application minimisée" + +#: ../resource/ui/PreferencesWindow.ui.h:8 +msgid "Start application after system boots" +msgstr "Démarrer l'application après le démarrage du système" + +#: ../resource/ui/PreferencesWindow.ui.h:11 +#: ../resource/ui/ShortcutsWindow.ui.h:2 +msgid "General" +msgstr "Général" + +#: ../resource/ui/PreferencesWindow.ui.h:12 +msgid "Prefer Dark Theme" +msgstr "Préférer le thème sombre" + +#: ../resource/ui/PreferencesWindow.ui.h:13 +msgid "Prefer dark theme for the application if system theme includes a dark variant" +msgstr "Préférer le thème sombre pour l'application si le thème du système inclut une variante sombre" + +#: ../resource/ui/PreferencesWindow.ui.h:14 +msgid "Appearance" +msgstr "Apparence" + +#: ../resource/ui/PreferencesWindow.ui.h:15 +msgid "Hardware Acceleration" +msgstr "Accélération matérielle" + +#: ../resource/ui/PreferencesWindow.ui.h:16 +msgid "Allow Permissions" +msgstr "Autoriser les autorisations" + +#: ../resource/ui/PreferencesWindow.ui.h:17 +msgid "Set hardware acceleration policy used by webkit" +msgstr "Définir la politique d'accélération matérielle utilisée par WebKit" + +#: ../resource/ui/PreferencesWindow.ui.h:18 +msgid "Allow permissions on application startup" +msgstr "Autoriser les autorisations au démarrage de l'application" + +#: ../resource/ui/PreferencesWindow.ui.h:21 +msgid "Web" +msgstr "Web" + +#: ../resource/ui/ShortcutsWindow.ui.h:1 +msgid "Shortcuts" +msgstr "Raccourcis" + +#: ../resource/ui/ShortcutsWindow.ui.h:3 +msgid "Refresh Page" +msgstr "Actualiser la page" + +#: ../resource/ui/ShortcutsWindow.ui.h:6 +msgid "Enter/Exit Fullscreen" +msgstr "Entrer/Sortir du mode plein écran" + +#: ../resource/ui/ShortcutsWindow.ui.h:7 +msgid "Show/Hide Header Bar" +msgstr "Afficher/Masquer la barre d'en-tête" + +#: ../resource/ui/ShortcutsWindow.ui.h:8 +msgid "Open Preferences" +msgstr "Ouvrir les préférences" + +#: ../src/ui/MainWindow.cpp:349 +msgid "GitHub Repository" +msgstr "Dépôt GitHub" + +#: ../resource/ui/PreferencesWindow.ui.h:9 +msgid "Enable Notification Sounds" +msgstr "Activer les sons de notification" + +#: ../resource/ui/PreferencesWindow.ui.h:10 +msgid "Play sound on a notification raised by the application" +msgstr "Jouer un son lorsqu'une notification est émise par l'application" + +#: ../resource/ui/PreferencesWindow.ui.h:19 +msgid "Minimum Font Size" +msgstr "Taille de police minimale" + +#: ../resource/ui/PreferencesWindow.ui.h:20 +msgid "Minimum font size used to display text, values other than 0 can potentially break page layouts" +msgstr "Taille de police minimale utilisée pour afficher du texte, des valeurs autres que 0 peuvent potentiellement briser la mise en page des pages" + +#: ../resource/ui/ShortcutsWindow.ui.h:4 +msgid "Zoom In" +msgstr "Zoom avant" + +#: ../resource/ui/ShortcutsWindow.ui.h:5 +msgid "Zoom Out" +msgstr "Zoom arrière" + +#: ../src/ui/WebView.cpp:40 +msgid "Permission Request" +msgstr "Requête de permission" + +#: ../src/ui/WebView.cpp:41 +msgid "Would you like to allow permissions?" +msgstr "Voulez vous autoriser les permissions?" + diff --git a/po/it.po b/po/it.po index 7fc3078..dfea644 100644 --- a/po/it.po +++ b/po/it.po @@ -7,16 +7,16 @@ msgstr "" "Project-Id-Version: WhatsApp for Linux\n" "Language: it\n" -#: ../src/ui/MainWindow.cpp:300 ../src/ui/TrayIcon.cpp:46 +#: ../src/ui/MainWindow.cpp:344 ../src/ui/TrayIcon.cpp:46 #: ../resource/ui/MainWindow.ui.h:4 msgid "About" msgstr "Informazioni" -#: ../src/ui/MainWindow.cpp:302 ../resource/ui/MainWindow.ui.h:6 +#: ../src/ui/MainWindow.cpp:346 ../resource/ui/MainWindow.ui.h:6 msgid "WhatsApp for Linux" msgstr "WhatsApp per Linux" -#: ../src/ui/MainWindow.cpp:303 +#: ../src/ui/MainWindow.cpp:347 msgid "An unofficial WhatsApp desktop application for Linux" msgstr "Un'applicazione WhatsApp non ufficiale per Linux" @@ -37,35 +37,27 @@ msgid "Show" msgstr "Mostra" #: ../src/ui/TrayIcon.cpp:47 ../resource/ui/MainWindow.ui.h:5 -#: ../resource/ui/ShortcutsWindow.ui.h:8 +#: ../resource/ui/ShortcutsWindow.ui.h:10 msgid "Quit" msgstr "Esci" -#: ../src/ui/WebView.cpp:34 -msgid "Notification Request" -msgstr "Richiesta notifiche" - -#: ../src/ui/WebView.cpp:35 -msgid "Would you like to allow notifications?" -msgstr "Vuoi permettere le notifiche?" - -#: ../src/ui/WebView.cpp:69 +#: ../src/ui/WebView.cpp:75 msgid "Save File" msgstr "Salva file" -#: ../src/ui/WebView.cpp:70 +#: ../src/ui/WebView.cpp:76 msgid "Ok" msgstr "Salva" -#: ../src/ui/WebView.cpp:71 +#: ../src/ui/WebView.cpp:77 msgid "Cancel" msgstr "Annulla" -#: ../src/ui/WebView.cpp:322 +#: ../src/ui/WebView.cpp:328 msgid "Unresponsive" msgstr "Whatsapp non risponde" -#: ../src/ui/WebView.cpp:323 +#: ../src/ui/WebView.cpp:329 msgid "The application is not responding. Would you like to reload?" msgstr "L'applicazione non risponde. Ricaricare?" @@ -77,7 +69,7 @@ msgstr "Schermo intero" msgid "Preferences" msgstr "Preferenze" -#: ../resource/ui/MainWindow.ui.h:3 ../resource/ui/ShortcutsWindow.ui.h:7 +#: ../resource/ui/MainWindow.ui.h:3 ../resource/ui/ShortcutsWindow.ui.h:9 msgid "Keyboard Shortcuts" msgstr "Scorciatoie da tastiera" @@ -170,19 +162,19 @@ msgstr "Scorciatoie" msgid "Refresh Page" msgstr "Ricarica pagina" -#: ../resource/ui/ShortcutsWindow.ui.h:4 +#: ../resource/ui/ShortcutsWindow.ui.h:6 msgid "Enter/Exit Fullscreen" msgstr "Attiva/disattiva schermo intero" -#: ../resource/ui/ShortcutsWindow.ui.h:5 +#: ../resource/ui/ShortcutsWindow.ui.h:7 msgid "Show/Hide Header Bar" msgstr "Mostra/nascondi barra del titolo" -#: ../resource/ui/ShortcutsWindow.ui.h:6 +#: ../resource/ui/ShortcutsWindow.ui.h:8 msgid "Open Preferences" msgstr "Apri preferenze" -#: ../src/ui/MainWindow.cpp:305 +#: ../src/ui/MainWindow.cpp:349 msgid "GitHub Repository" msgstr "GitHub" @@ -202,3 +194,19 @@ msgstr "Minimum Font Size" msgid "Minimum font size used to display text, values other than 0 can potentially break page layouts" msgstr "Minimum font size used to display text, values other than 0 can potentially break page layouts" +#: ../resource/ui/ShortcutsWindow.ui.h:4 +msgid "Zoom In" +msgstr "Zoom In" + +#: ../resource/ui/ShortcutsWindow.ui.h:5 +msgid "Zoom Out" +msgstr "Zoom Out" + +#: ../src/ui/WebView.cpp:40 +msgid "Permission Request" +msgstr "Permission Request" + +#: ../src/ui/WebView.cpp:41 +msgid "Would you like to allow permissions?" +msgstr "Would you like to allow permissions?" + diff --git a/po/ka.po b/po/ka.po index 2c77404..1b23d71 100644 --- a/po/ka.po +++ b/po/ka.po @@ -7,16 +7,16 @@ msgstr "" "Project-Id-Version: WhatsApp for Linux\n" "Language: ka\n" -#: ../src/ui/MainWindow.cpp:300 ../src/ui/TrayIcon.cpp:46 +#: ../src/ui/MainWindow.cpp:344 ../src/ui/TrayIcon.cpp:46 #: ../resource/ui/MainWindow.ui.h:4 msgid "About" msgstr "შესახებ" -#: ../src/ui/MainWindow.cpp:302 ../resource/ui/MainWindow.ui.h:6 +#: ../src/ui/MainWindow.cpp:346 ../resource/ui/MainWindow.ui.h:6 msgid "WhatsApp for Linux" msgstr "WhatsApp-ი ლინუქსისთვის" -#: ../src/ui/MainWindow.cpp:303 +#: ../src/ui/MainWindow.cpp:347 msgid "An unofficial WhatsApp desktop application for Linux" msgstr "WhatsApp-ის არაოფიციალური აპლიკაცია ლინუქსისთვის" @@ -37,35 +37,27 @@ msgid "Show" msgstr "ჩვენება" #: ../src/ui/TrayIcon.cpp:47 ../resource/ui/MainWindow.ui.h:5 -#: ../resource/ui/ShortcutsWindow.ui.h:8 +#: ../resource/ui/ShortcutsWindow.ui.h:10 msgid "Quit" msgstr "&გასვლა" -#: ../src/ui/WebView.cpp:34 -msgid "Notification Request" -msgstr "გაფრთხილების მოთხოვნა" - -#: ../src/ui/WebView.cpp:35 -msgid "Would you like to allow notifications?" -msgstr "გნებავთ, დაუშვათ გაფრთხილებები?" - -#: ../src/ui/WebView.cpp:69 +#: ../src/ui/WebView.cpp:75 msgid "Save File" msgstr "ფაილის შენახვა" -#: ../src/ui/WebView.cpp:70 +#: ../src/ui/WebView.cpp:76 msgid "Ok" msgstr "დიახ" -#: ../src/ui/WebView.cpp:71 +#: ../src/ui/WebView.cpp:77 msgid "Cancel" msgstr "გაუქმენა" -#: ../src/ui/WebView.cpp:322 +#: ../src/ui/WebView.cpp:328 msgid "Unresponsive" msgstr "არ პასუხობს" -#: ../src/ui/WebView.cpp:323 +#: ../src/ui/WebView.cpp:329 msgid "The application is not responding. Would you like to reload?" msgstr "აპლიკაცია არ პასუხობს. გნებავთ, გადატვირთოთ?" @@ -77,7 +69,7 @@ msgstr "მთელ ეკრანზე" msgid "Preferences" msgstr "მორგება" -#: ../resource/ui/MainWindow.ui.h:3 ../resource/ui/ShortcutsWindow.ui.h:7 +#: ../resource/ui/MainWindow.ui.h:3 ../resource/ui/ShortcutsWindow.ui.h:9 msgid "Keyboard Shortcuts" msgstr "სხარტი კლავიშები" @@ -170,19 +162,19 @@ msgstr "მალსახმობები" msgid "Refresh Page" msgstr "გვერდის განახლება" -#: ../resource/ui/ShortcutsWindow.ui.h:4 +#: ../resource/ui/ShortcutsWindow.ui.h:6 msgid "Enter/Exit Fullscreen" msgstr "სრული ეკრანის ჩართ/გამორთ" -#: ../resource/ui/ShortcutsWindow.ui.h:5 +#: ../resource/ui/ShortcutsWindow.ui.h:7 msgid "Show/Hide Header Bar" msgstr "თავსართის ზოლის ჩვენება/დამალვა" -#: ../resource/ui/ShortcutsWindow.ui.h:6 +#: ../resource/ui/ShortcutsWindow.ui.h:8 msgid "Open Preferences" msgstr "მორგების ფანჯრის გახსნა" -#: ../src/ui/MainWindow.cpp:305 +#: ../src/ui/MainWindow.cpp:349 msgid "GitHub Repository" msgstr "GitHub -ის რეპოზიტორია" @@ -202,3 +194,19 @@ msgstr "Minimum Font Size" msgid "Minimum font size used to display text, values other than 0 can potentially break page layouts" msgstr "Minimum font size used to display text, values other than 0 can potentially break page layouts" +#: ../resource/ui/ShortcutsWindow.ui.h:4 +msgid "Zoom In" +msgstr "Zoom In" + +#: ../resource/ui/ShortcutsWindow.ui.h:5 +msgid "Zoom Out" +msgstr "Zoom Out" + +#: ../src/ui/WebView.cpp:40 +msgid "Permission Request" +msgstr "Permission Request" + +#: ../src/ui/WebView.cpp:41 +msgid "Would you like to allow permissions?" +msgstr "Would you like to allow permissions?" + diff --git a/po/nl.po b/po/nl.po index 6d46301..5d8123d 100644 --- a/po/nl.po +++ b/po/nl.po @@ -7,16 +7,16 @@ msgstr "" "Project-Id-Version: WhatsApp for Linux\n" "Language: nl\n" -#: ../src/ui/MainWindow.cpp:300 ../src/ui/TrayIcon.cpp:46 +#: ../src/ui/MainWindow.cpp:344 ../src/ui/TrayIcon.cpp:46 #: ../resource/ui/MainWindow.ui.h:4 msgid "About" msgstr "Over" -#: ../src/ui/MainWindow.cpp:302 ../resource/ui/MainWindow.ui.h:6 +#: ../src/ui/MainWindow.cpp:346 ../resource/ui/MainWindow.ui.h:6 msgid "WhatsApp for Linux" msgstr "WhatsApp voor Linux" -#: ../src/ui/MainWindow.cpp:303 +#: ../src/ui/MainWindow.cpp:347 msgid "An unofficial WhatsApp desktop application for Linux" msgstr "Een onofficiële WhatsApp-desktoptoepassing voor Linux" @@ -37,35 +37,27 @@ msgid "Show" msgstr "Tonen" #: ../src/ui/TrayIcon.cpp:47 ../resource/ui/MainWindow.ui.h:5 -#: ../resource/ui/ShortcutsWindow.ui.h:8 +#: ../resource/ui/ShortcutsWindow.ui.h:10 msgid "Quit" msgstr "Afsluiten" -#: ../src/ui/WebView.cpp:34 -msgid "Notification Request" -msgstr "Meldingsverzoek" - -#: ../src/ui/WebView.cpp:35 -msgid "Would you like to allow notifications?" -msgstr "Wil je meldingen ontvangen?" - -#: ../src/ui/WebView.cpp:69 +#: ../src/ui/WebView.cpp:75 msgid "Save File" msgstr "Bestand opslaan" -#: ../src/ui/WebView.cpp:70 +#: ../src/ui/WebView.cpp:76 msgid "Ok" msgstr "Oké" -#: ../src/ui/WebView.cpp:71 +#: ../src/ui/WebView.cpp:77 msgid "Cancel" msgstr "Annuleren" -#: ../src/ui/WebView.cpp:322 +#: ../src/ui/WebView.cpp:328 msgid "Unresponsive" msgstr "Niet bereikbaar" -#: ../src/ui/WebView.cpp:323 +#: ../src/ui/WebView.cpp:329 msgid "The application is not responding. Would you like to reload?" msgstr "Het programma reageert niet. Wil je het opnieuw starten?" @@ -77,7 +69,7 @@ msgstr "Schermvullende weergave" msgid "Preferences" msgstr "Instellingen" -#: ../resource/ui/MainWindow.ui.h:3 ../resource/ui/ShortcutsWindow.ui.h:7 +#: ../resource/ui/MainWindow.ui.h:3 ../resource/ui/ShortcutsWindow.ui.h:9 msgid "Keyboard Shortcuts" msgstr "Sneltoetsen" @@ -170,19 +162,19 @@ msgstr "Sneltoetsen" msgid "Refresh Page" msgstr "Pagina vernieuwen" -#: ../resource/ui/ShortcutsWindow.ui.h:4 +#: ../resource/ui/ShortcutsWindow.ui.h:6 msgid "Enter/Exit Fullscreen" msgstr "Schermvullende weergave aan/uit" -#: ../resource/ui/ShortcutsWindow.ui.h:5 +#: ../resource/ui/ShortcutsWindow.ui.h:7 msgid "Show/Hide Header Bar" msgstr "Kopbalk tonen/verbergen" -#: ../resource/ui/ShortcutsWindow.ui.h:6 +#: ../resource/ui/ShortcutsWindow.ui.h:8 msgid "Open Preferences" msgstr "Instellingen openen" -#: ../src/ui/MainWindow.cpp:305 +#: ../src/ui/MainWindow.cpp:349 msgid "GitHub Repository" msgstr "GitHub" @@ -202,3 +194,19 @@ msgstr "Minimale tekstgrootte" msgid "Minimum font size used to display text, values other than 0 can potentially break page layouts" msgstr "De minimale tekstgrootte van berichten en het invoerveld. Let op: waarden hoger dan 0 kunnen de indeling verstoren." +#: ../resource/ui/ShortcutsWindow.ui.h:4 +msgid "Zoom In" +msgstr "Inzoomen" + +#: ../resource/ui/ShortcutsWindow.ui.h:5 +msgid "Zoom Out" +msgstr "Uitzoomen" + +#: ../src/ui/WebView.cpp:40 +msgid "Permission Request" +msgstr "Toestemmingsverzoek" + +#: ../src/ui/WebView.cpp:41 +msgid "Would you like to allow permissions?" +msgstr "Wil je de benodigde rechten verlenen?" + diff --git a/po/pt-br.po b/po/pt-br.po index 9986761..b66f162 100644 --- a/po/pt-br.po +++ b/po/pt-br.po @@ -7,16 +7,16 @@ msgstr "" "Project-Id-Version: WhatsApp for Linux\n" "Language: pt-br\n" -#: ../src/ui/MainWindow.cpp:300 ../src/ui/TrayIcon.cpp:46 +#: ../src/ui/MainWindow.cpp:344 ../src/ui/TrayIcon.cpp:46 #: ../resource/ui/MainWindow.ui.h:4 msgid "About" msgstr "Sobre" -#: ../src/ui/MainWindow.cpp:302 ../resource/ui/MainWindow.ui.h:6 +#: ../src/ui/MainWindow.cpp:346 ../resource/ui/MainWindow.ui.h:6 msgid "WhatsApp for Linux" msgstr "WhatsApp para Linux" -#: ../src/ui/MainWindow.cpp:303 +#: ../src/ui/MainWindow.cpp:347 msgid "An unofficial WhatsApp desktop application for Linux" msgstr "Aplicação não oficial de WhatsApp para Linux" @@ -37,35 +37,27 @@ msgid "Show" msgstr "Mostrar" #: ../src/ui/TrayIcon.cpp:47 ../resource/ui/MainWindow.ui.h:5 -#: ../resource/ui/ShortcutsWindow.ui.h:8 +#: ../resource/ui/ShortcutsWindow.ui.h:10 msgid "Quit" msgstr "Sair" -#: ../src/ui/WebView.cpp:34 -msgid "Notification Request" -msgstr "Requisição de Notificação" - -#: ../src/ui/WebView.cpp:35 -msgid "Would you like to allow notifications?" -msgstr "Deseja permitir as notificações?" - -#: ../src/ui/WebView.cpp:69 +#: ../src/ui/WebView.cpp:75 msgid "Save File" msgstr "Salvar arquivo" -#: ../src/ui/WebView.cpp:70 +#: ../src/ui/WebView.cpp:76 msgid "Ok" msgstr "Ok" -#: ../src/ui/WebView.cpp:71 +#: ../src/ui/WebView.cpp:77 msgid "Cancel" msgstr "Cancelar" -#: ../src/ui/WebView.cpp:322 +#: ../src/ui/WebView.cpp:328 msgid "Unresponsive" msgstr "No responde" -#: ../src/ui/WebView.cpp:323 +#: ../src/ui/WebView.cpp:329 msgid "The application is not responding. Would you like to reload?" msgstr "A aplicação não responde. Deseja recarregá-la?" @@ -77,7 +69,7 @@ msgstr "Tela cheia" msgid "Preferences" msgstr "Preferências" -#: ../resource/ui/MainWindow.ui.h:3 ../resource/ui/ShortcutsWindow.ui.h:7 +#: ../resource/ui/MainWindow.ui.h:3 ../resource/ui/ShortcutsWindow.ui.h:9 msgid "Keyboard Shortcuts" msgstr "Atalhos de teclado" @@ -170,19 +162,19 @@ msgstr "Atalhos" msgid "Refresh Page" msgstr "Atualizar página" -#: ../resource/ui/ShortcutsWindow.ui.h:4 +#: ../resource/ui/ShortcutsWindow.ui.h:6 msgid "Enter/Exit Fullscreen" msgstr "Entrar/Sair da tela cheia" -#: ../resource/ui/ShortcutsWindow.ui.h:5 +#: ../resource/ui/ShortcutsWindow.ui.h:7 msgid "Show/Hide Header Bar" msgstr "Mostrar/Ocultar barra de cabeçalho" -#: ../resource/ui/ShortcutsWindow.ui.h:6 +#: ../resource/ui/ShortcutsWindow.ui.h:8 msgid "Open Preferences" msgstr "Abrir Preferências" -#: ../src/ui/MainWindow.cpp:305 +#: ../src/ui/MainWindow.cpp:349 msgid "GitHub Repository" msgstr "Repositório GitHub" @@ -202,3 +194,19 @@ msgstr "Minimum Font Size" msgid "Minimum font size used to display text, values other than 0 can potentially break page layouts" msgstr "Minimum font size used to display text, values other than 0 can potentially break page layouts" +#: ../resource/ui/ShortcutsWindow.ui.h:4 +msgid "Zoom In" +msgstr "Zoom In" + +#: ../resource/ui/ShortcutsWindow.ui.h:5 +msgid "Zoom Out" +msgstr "Zoom Out" + +#: ../src/ui/WebView.cpp:40 +msgid "Permission Request" +msgstr "Permission Request" + +#: ../src/ui/WebView.cpp:41 +msgid "Would you like to allow permissions?" +msgstr "Would you like to allow permissions?" + diff --git a/po/ru.po b/po/ru.po index 575688d..6157db8 100644 --- a/po/ru.po +++ b/po/ru.po @@ -7,16 +7,16 @@ msgstr "" "Project-Id-Version: WhatsApp for Linux\n" "Language: ru\n" -#: ../src/ui/MainWindow.cpp:300 ../src/ui/TrayIcon.cpp:46 +#: ../src/ui/MainWindow.cpp:344 ../src/ui/TrayIcon.cpp:46 #: ../resource/ui/MainWindow.ui.h:4 msgid "About" msgstr "О программе" -#: ../src/ui/MainWindow.cpp:302 ../resource/ui/MainWindow.ui.h:6 +#: ../src/ui/MainWindow.cpp:346 ../resource/ui/MainWindow.ui.h:6 msgid "WhatsApp for Linux" msgstr "WhatsApp для Linux" -#: ../src/ui/MainWindow.cpp:303 +#: ../src/ui/MainWindow.cpp:347 msgid "An unofficial WhatsApp desktop application for Linux" msgstr "Неофициальное приложение WhatsApp для Linux" @@ -37,35 +37,27 @@ msgid "Show" msgstr "Показывать" #: ../src/ui/TrayIcon.cpp:47 ../resource/ui/MainWindow.ui.h:5 -#: ../resource/ui/ShortcutsWindow.ui.h:8 +#: ../resource/ui/ShortcutsWindow.ui.h:10 msgid "Quit" msgstr "Выход" -#: ../src/ui/WebView.cpp:34 -msgid "Notification Request" -msgstr "Запрос уведомлений" - -#: ../src/ui/WebView.cpp:35 -msgid "Would you like to allow notifications?" -msgstr "Разрешить уведомления?" - -#: ../src/ui/WebView.cpp:69 +#: ../src/ui/WebView.cpp:75 msgid "Save File" msgstr "Сохранить файл" -#: ../src/ui/WebView.cpp:70 +#: ../src/ui/WebView.cpp:76 msgid "Ok" msgstr "ОК" -#: ../src/ui/WebView.cpp:71 +#: ../src/ui/WebView.cpp:77 msgid "Cancel" msgstr "Отмена" -#: ../src/ui/WebView.cpp:322 +#: ../src/ui/WebView.cpp:328 msgid "Unresponsive" msgstr "Не отвечает" -#: ../src/ui/WebView.cpp:323 +#: ../src/ui/WebView.cpp:329 msgid "The application is not responding. Would you like to reload?" msgstr "Приложение не отвечает. Перезагрузить его?" @@ -77,7 +69,7 @@ msgstr "На весь экран" msgid "Preferences" msgstr "Параметры" -#: ../resource/ui/MainWindow.ui.h:3 ../resource/ui/ShortcutsWindow.ui.h:7 +#: ../resource/ui/MainWindow.ui.h:3 ../resource/ui/ShortcutsWindow.ui.h:9 msgid "Keyboard Shortcuts" msgstr "Комбинации клавиш" @@ -170,19 +162,19 @@ msgstr "Комбинации клавиш" msgid "Refresh Page" msgstr "Обновить страницу" -#: ../resource/ui/ShortcutsWindow.ui.h:4 +#: ../resource/ui/ShortcutsWindow.ui.h:6 msgid "Enter/Exit Fullscreen" msgstr "Включить или отключить полноэкранный режим" -#: ../resource/ui/ShortcutsWindow.ui.h:5 +#: ../resource/ui/ShortcutsWindow.ui.h:7 msgid "Show/Hide Header Bar" msgstr "Показать или скрыть строку заголовка" -#: ../resource/ui/ShortcutsWindow.ui.h:6 +#: ../resource/ui/ShortcutsWindow.ui.h:8 msgid "Open Preferences" msgstr "Открыть параметры" -#: ../src/ui/MainWindow.cpp:305 +#: ../src/ui/MainWindow.cpp:349 msgid "GitHub Repository" msgstr "Репозиторий на GitHub" @@ -202,3 +194,19 @@ msgstr "Minimum Font Size" msgid "Minimum font size used to display text, values other than 0 can potentially break page layouts" msgstr "Minimum font size used to display text, values other than 0 can potentially break page layouts" +#: ../resource/ui/ShortcutsWindow.ui.h:4 +msgid "Zoom In" +msgstr "Zoom In" + +#: ../resource/ui/ShortcutsWindow.ui.h:5 +msgid "Zoom Out" +msgstr "Zoom Out" + +#: ../src/ui/WebView.cpp:40 +msgid "Permission Request" +msgstr "Permission Request" + +#: ../src/ui/WebView.cpp:41 +msgid "Would you like to allow permissions?" +msgstr "Would you like to allow permissions?" + diff --git a/po/tr.po b/po/tr.po index 1306f69..b6cfa16 100644 --- a/po/tr.po +++ b/po/tr.po @@ -7,16 +7,16 @@ msgstr "" "Project-Id-Version: WhatsApp for Linux\n" "Language: tr\n" -#: ../src/ui/MainWindow.cpp:300 ../src/ui/TrayIcon.cpp:46 +#: ../src/ui/MainWindow.cpp:344 ../src/ui/TrayIcon.cpp:46 #: ../resource/ui/MainWindow.ui.h:4 msgid "About" msgstr "Hakkında" -#: ../src/ui/MainWindow.cpp:302 ../resource/ui/MainWindow.ui.h:6 +#: ../src/ui/MainWindow.cpp:346 ../resource/ui/MainWindow.ui.h:6 msgid "WhatsApp for Linux" msgstr "Linux için WhatsApp" -#: ../src/ui/MainWindow.cpp:303 +#: ../src/ui/MainWindow.cpp:347 msgid "An unofficial WhatsApp desktop application for Linux" msgstr "Linux için resmi olmayan bir WhatsApp masaüstü uygulaması" @@ -37,35 +37,27 @@ msgid "Show" msgstr "Göster" #: ../src/ui/TrayIcon.cpp:47 ../resource/ui/MainWindow.ui.h:5 -#: ../resource/ui/ShortcutsWindow.ui.h:8 +#: ../resource/ui/ShortcutsWindow.ui.h:10 msgid "Quit" msgstr "Çıkış" -#: ../src/ui/WebView.cpp:34 -msgid "Notification Request" -msgstr "Bildirim Talebi" - -#: ../src/ui/WebView.cpp:35 -msgid "Would you like to allow notifications?" -msgstr "Bildirimlere izin vermek istiyor musunuz?" - -#: ../src/ui/WebView.cpp:69 +#: ../src/ui/WebView.cpp:75 msgid "Save File" msgstr "Dosyayı Kaydet" -#: ../src/ui/WebView.cpp:70 +#: ../src/ui/WebView.cpp:76 msgid "Ok" msgstr "Tamam" -#: ../src/ui/WebView.cpp:71 +#: ../src/ui/WebView.cpp:77 msgid "Cancel" msgstr "İptal" -#: ../src/ui/WebView.cpp:322 +#: ../src/ui/WebView.cpp:328 msgid "Unresponsive" msgstr "Cevap vermiyor" -#: ../src/ui/WebView.cpp:323 +#: ../src/ui/WebView.cpp:329 msgid "The application is not responding. Would you like to reload?" msgstr "Uygulama cevap vermiyor. Yeniden yüklemek ister misiniz?" @@ -77,7 +69,7 @@ msgstr "Tam Ekran" msgid "Preferences" msgstr "Tercihler" -#: ../resource/ui/MainWindow.ui.h:3 ../resource/ui/ShortcutsWindow.ui.h:7 +#: ../resource/ui/MainWindow.ui.h:3 ../resource/ui/ShortcutsWindow.ui.h:9 msgid "Keyboard Shortcuts" msgstr "Klavye kısayolları" @@ -170,19 +162,19 @@ msgstr "Kısayollar" msgid "Refresh Page" msgstr "Sayfayı Yenile" -#: ../resource/ui/ShortcutsWindow.ui.h:4 +#: ../resource/ui/ShortcutsWindow.ui.h:6 msgid "Enter/Exit Fullscreen" msgstr "Tam Ekrana Gir/Çık" -#: ../resource/ui/ShortcutsWindow.ui.h:5 +#: ../resource/ui/ShortcutsWindow.ui.h:7 msgid "Show/Hide Header Bar" msgstr "Başlık Çubuğunu Göster/Gizle" -#: ../resource/ui/ShortcutsWindow.ui.h:6 +#: ../resource/ui/ShortcutsWindow.ui.h:8 msgid "Open Preferences" msgstr "Tercihleri Aç" -#: ../src/ui/MainWindow.cpp:305 +#: ../src/ui/MainWindow.cpp:349 msgid "GitHub Repository" msgstr "GitHub" @@ -196,9 +188,25 @@ msgstr "Uygulama tarafından oluşturulan bir bildirimde ses çal" #: ../resource/ui/PreferencesWindow.ui.h:19 msgid "Minimum Font Size" -msgstr "Minimum Font Size" +msgstr "Minimum Yazı Tipi Boyutu" #: ../resource/ui/PreferencesWindow.ui.h:20 msgid "Minimum font size used to display text, values other than 0 can potentially break page layouts" -msgstr "Minimum font size used to display text, values other than 0 can potentially break page layouts" +msgstr "Metni görüntülemek için kullanılan minimum yazı tipi boyutu, 0 dışındaki değerler potansiyel olarak sayfa düzenlerini bozabilir" + +#: ../resource/ui/ShortcutsWindow.ui.h:4 +msgid "Zoom In" +msgstr "Yakınlaştır" + +#: ../resource/ui/ShortcutsWindow.ui.h:5 +msgid "Zoom Out" +msgstr "Uzaklaştır" + +#: ../src/ui/WebView.cpp:40 +msgid "Permission Request" +msgstr "İzin İsteği" + +#: ../src/ui/WebView.cpp:41 +msgid "Would you like to allow permissions?" +msgstr "İzinlere izin vermek ister misiniz?" diff --git a/po/whatsapp-for-linux.pot b/po/whatsapp-for-linux.pot index 5d0d8e9..9e0827b 100644 --- a/po/whatsapp-for-linux.pot +++ b/po/whatsapp-for-linux.pot @@ -9,7 +9,7 @@ msgstr "" "Project-Id-Version: whatsapp-for-linux\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2022-12-10 22:56+0100\n" -"PO-Revision-Date: 2023-02-02 16:32+0100\n" +"PO-Revision-Date: 2023-03-22 15:17+0100\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" @@ -17,20 +17,20 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: ../src/ui/MainWindow.cpp:300 ../src/ui/TrayIcon.cpp:46 +#: ../src/ui/MainWindow.cpp:344 ../src/ui/TrayIcon.cpp:46 #: ../resource/ui/MainWindow.ui.h:4 msgid "About" msgstr "" -#: ../src/ui/MainWindow.cpp:302 ../resource/ui/MainWindow.ui.h:6 +#: ../src/ui/MainWindow.cpp:346 ../resource/ui/MainWindow.ui.h:6 msgid "WhatsApp for Linux" msgstr "" -#: ../src/ui/MainWindow.cpp:303 +#: ../src/ui/MainWindow.cpp:347 msgid "An unofficial WhatsApp desktop application for Linux" msgstr "" -#: ../src/ui/MainWindow.cpp:305 +#: ../src/ui/MainWindow.cpp:349 msgid "GitHub Repository" msgstr "" @@ -51,35 +51,35 @@ msgid "Show" msgstr "" #: ../src/ui/TrayIcon.cpp:47 ../resource/ui/MainWindow.ui.h:5 -#: ../resource/ui/ShortcutsWindow.ui.h:8 +#: ../resource/ui/ShortcutsWindow.ui.h:10 msgid "Quit" msgstr "" -#: ../src/ui/WebView.cpp:34 -msgid "Notification Request" +#: ../src/ui/WebView.cpp:40 +msgid "Permission Request" msgstr "" -#: ../src/ui/WebView.cpp:35 -msgid "Would you like to allow notifications?" +#: ../src/ui/WebView.cpp:41 +msgid "Would you like to allow permissions?" msgstr "" -#: ../src/ui/WebView.cpp:69 +#: ../src/ui/WebView.cpp:75 msgid "Save File" msgstr "" -#: ../src/ui/WebView.cpp:70 +#: ../src/ui/WebView.cpp:76 msgid "Ok" msgstr "" -#: ../src/ui/WebView.cpp:71 +#: ../src/ui/WebView.cpp:77 msgid "Cancel" msgstr "" -#: ../src/ui/WebView.cpp:322 +#: ../src/ui/WebView.cpp:328 msgid "Unresponsive" msgstr "" -#: ../src/ui/WebView.cpp:323 +#: ../src/ui/WebView.cpp:329 msgid "The application is not responding. Would you like to reload?" msgstr "" @@ -91,7 +91,7 @@ msgstr "" msgid "Preferences" msgstr "" -#: ../resource/ui/MainWindow.ui.h:3 ../resource/ui/ShortcutsWindow.ui.h:7 +#: ../resource/ui/MainWindow.ui.h:3 ../resource/ui/ShortcutsWindow.ui.h:9 msgid "Keyboard Shortcuts" msgstr "" @@ -157,7 +157,8 @@ msgid "Prefer Dark Theme" msgstr "" #: ../resource/ui/PreferencesWindow.ui.h:13 -msgid "Prefer dark theme for the application if system theme includes a dark variant" +msgid "" +"Prefer dark theme for the application if system theme includes a dark variant" msgstr "" #: ../resource/ui/PreferencesWindow.ui.h:14 @@ -201,13 +202,21 @@ msgid "Refresh Page" msgstr "" #: ../resource/ui/ShortcutsWindow.ui.h:4 -msgid "Enter/Exit Fullscreen" +msgid "Zoom In" msgstr "" #: ../resource/ui/ShortcutsWindow.ui.h:5 -msgid "Show/Hide Header Bar" +msgid "Zoom Out" msgstr "" #: ../resource/ui/ShortcutsWindow.ui.h:6 +msgid "Enter/Exit Fullscreen" +msgstr "" + +#: ../resource/ui/ShortcutsWindow.ui.h:7 +msgid "Show/Hide Header Bar" +msgstr "" + +#: ../resource/ui/ShortcutsWindow.ui.h:8 msgid "Open Preferences" msgstr "" diff --git a/resource/desktop/com.github.eneshecan.WhatsAppForLinux.desktop.in b/resource/desktop/com.github.eneshecan.WhatsAppForLinux.desktop.in index e81e230..2eb02be 100644 --- a/resource/desktop/com.github.eneshecan.WhatsAppForLinux.desktop.in +++ b/resource/desktop/com.github.eneshecan.WhatsAppForLinux.desktop.in @@ -9,6 +9,7 @@ Name[nl]=WhatsApp voor Linux Name[pt-br]=WhatsApp para Linux Name[ru]=WhatsApp для Linux Name[tr]=Linux için WhatsApp +Name[fr]=Whatsapp pour Linux GenericName=Unofficial WhatsApp client GenericName[es]=Cliente no oficial de WhatsApp GenericName[it]=Client WhatsApp non ufficiale @@ -17,6 +18,7 @@ GenericName[nl]=Niet-officiële WhatsApp-client GenericName[pt-br]=Cliente não oficial de WhatsApp GenericName[ru]=Неофициальный клиент WhatsApp GenericName[tr]=Resmi olmayan WhatsApp istemcisi +GenericName[fr]=Client non officiel de WhatsApp Comment=${WFL_DESCRIPTION} Comment[es]=Una aplicación no oficial de WhatsApp para Linux Comment[it]=Un'applicazione WhatsApp non ufficiale per Linux @@ -25,6 +27,7 @@ Comment[nl]=Een onofficiële WhatsApp-desktoptoepassing voor Linux Comment[pt-br]=Uma aplicação não oficial de WhatsApp para Linux Comment[ru]=Неофициальное приложение WhatsApp для Linux Comment[tr]=Linux için resmi olmayan bir WhatsApp masaüstü uygulaması +Comment[fr]=Une application non officielle de Whatsapp pour Linux Exec=${WFL_NAME} %u Icon=${WFL_ICON} MimeType=x-scheme-handler/whatsapp diff --git a/resource/ui/ShortcutsWindow.ui b/resource/ui/ShortcutsWindow.ui index 63f0de3..cb4fecb 100644 --- a/resource/ui/ShortcutsWindow.ui +++ b/resource/ui/ShortcutsWindow.ui @@ -20,6 +20,20 @@ Refresh Page + + + 1 + <ctrl>plus + Zoom In + + + + + 1 + <ctrl>minus + Zoom Out + + 1 diff --git a/src/ui/MainWindow.cpp b/src/ui/MainWindow.cpp index 0f20e6c..6479077 100644 --- a/src/ui/MainWindow.cpp +++ b/src/ui/MainWindow.cpp @@ -21,6 +21,7 @@ namespace wfl::ui , m_phoneNumberDialog{nullptr} , m_headerBar{nullptr} , m_shortcutsWindow{nullptr} + , m_buttonZoomLevel{nullptr} , m_fullscreen{false} { auto const appIcon16x16 = Gdk::Pixbuf::create_from_resource("/main/image/icons/hicolor/16x16/apps/" WFL_ICON ".png"); @@ -48,18 +49,17 @@ namespace wfl::ui refBuilder->get_widget("button_fullscreen", buttonFullscreen); buttonFullscreen->signal_clicked().connect(sigc::mem_fun(*this, &MainWindow::onFullscreen)); - Gtk::Button* buttonZoomLevel = nullptr; - refBuilder->get_widget("button_zoom_level", buttonZoomLevel); - buttonZoomLevel->set_label(m_webView.getZoomLevelString()); - buttonZoomLevel->signal_clicked().connect(sigc::bind(sigc::mem_fun(*this, &MainWindow::onResetZoom), buttonZoomLevel)); + refBuilder->get_widget("button_zoom_level", m_buttonZoomLevel); + m_buttonZoomLevel->set_label(m_webView.getZoomLevelString()); + m_buttonZoomLevel->signal_clicked().connect(sigc::mem_fun(*this, &MainWindow::onResetZoom)); Gtk::Button* buttonZoomIn = nullptr; refBuilder->get_widget("button_zoom_in", buttonZoomIn); - buttonZoomIn->signal_clicked().connect(sigc::bind(sigc::mem_fun(*this, &MainWindow::onZoomIn), buttonZoomLevel)); + buttonZoomIn->signal_clicked().connect(sigc::mem_fun(*this, &MainWindow::onZoomIn)); Gtk::Button* buttonZoomOut = nullptr; refBuilder->get_widget("button_zoom_out", buttonZoomOut); - buttonZoomOut->signal_clicked().connect(sigc::bind(sigc::mem_fun(*this, &MainWindow::onZoomOut), buttonZoomLevel)); + buttonZoomOut->signal_clicked().connect(sigc::mem_fun(*this, &MainWindow::onZoomOut)); Gtk::ModelButton* buttonPreferences = nullptr; refBuilder->get_widget("button_preferences", buttonPreferences); @@ -104,54 +104,98 @@ namespace wfl::ui bool MainWindow::on_key_press_event(GdkEventKey* keyEvent) { - switch (keyEvent->keyval) + if (keyEvent->state & GDK_CONTROL_MASK) { - case GDK_KEY_F11: - onFullscreen(); - return true; + switch (keyEvent->keyval) + { + case GDK_KEY_P: + case GDK_KEY_p: + onOpenPreferences(); + return true; + + case GDK_KEY_Q: + case GDK_KEY_q: + onQuit(); + return true; + + case GDK_KEY_question: + onShortcuts(); + return true; + + case GDK_KEY_plus: + onZoomIn(); + return true; - case GDK_KEY_H: - case GDK_KEY_h: - if (keyEvent->state & GDK_MOD1_MASK) + case GDK_KEY_minus: + onZoomOut(); + return true; + + default: + break; + } + } + else if (keyEvent->state & GDK_MOD1_MASK) + { + switch (keyEvent->keyval) + { + case GDK_KEY_H: + case GDK_KEY_h: { auto const visible = !m_headerBar->is_visible(); m_headerBar->set_visible(visible); util::Settings::getInstance().setValue("general", "header-bar", visible); return true; } - break; - case GDK_KEY_P: - case GDK_KEY_p: - if (keyEvent->state & GDK_CONTROL_MASK) - { - onOpenPreferences(); + default: + break; + } + } + else + { + switch (keyEvent->keyval) + { + case GDK_KEY_F11: + onFullscreen(); return true; - } - break; - case GDK_KEY_Q: - case GDK_KEY_q: - if (keyEvent->state & GDK_CONTROL_MASK) - { - onQuit(); + default: + break; + } + } + + // This is required for keyboard shortcuts on WhatsApp Web to work. Since it is running + // on WebKit, WhatsApp Web listens for Mac's [CMD] key instead of the standard [ALT] key. + if (keyEvent->state & GDK_MOD1_MASK) + { + keyEvent->state |= GDK_META_MASK; + } + + return Gtk::ApplicationWindow::on_key_press_event(keyEvent); + } + + bool MainWindow::on_scroll_event(GdkEventScroll* scrollEvent) + { + if (scrollEvent->state & GDK_CONTROL_MASK) + { + switch (scrollEvent->direction) + { + case GDK_SCROLL_UP: + case GDK_SCROLL_RIGHT: + onZoomIn(); return true; - } - break; - case GDK_KEY_question: - if (keyEvent->state & GDK_CONTROL_MASK) - { - onShortcuts(); + case GDK_SCROLL_DOWN: + case GDK_SCROLL_LEFT: + onZoomOut(); return true; - } - break; - default: - break; + default: + break; + } } - return Gtk::ApplicationWindow::on_key_press_event(keyEvent); + return Gtk::ApplicationWindow::on_scroll_event(scrollEvent); } bool MainWindow::on_window_state_event(GdkEventWindowState* windowStateEvent) @@ -263,22 +307,22 @@ namespace wfl::ui m_fullscreen ? unfullscreen() : fullscreen(); } - void MainWindow::onZoomIn(Gtk::Button* buttonZoomLevel) + void MainWindow::onZoomIn() { m_webView.zoomIn(); - buttonZoomLevel->set_label(m_webView.getZoomLevelString()); + m_buttonZoomLevel->set_label(m_webView.getZoomLevelString()); } - void MainWindow::onZoomOut(Gtk::Button* buttonZoomLevel) + void MainWindow::onZoomOut() { m_webView.zoomOut(); - buttonZoomLevel->set_label(m_webView.getZoomLevelString()); + m_buttonZoomLevel->set_label(m_webView.getZoomLevelString()); } - void MainWindow::onResetZoom(Gtk::Button* buttonZoomLevel) + void MainWindow::onResetZoom() { m_webView.resetZoom(); - buttonZoomLevel->set_label(m_webView.getZoomLevelString()); + m_buttonZoomLevel->set_label(m_webView.getZoomLevelString()); } void MainWindow::onShortcuts() diff --git a/src/ui/MainWindow.hpp b/src/ui/MainWindow.hpp index 0a03465..abf4055 100644 --- a/src/ui/MainWindow.hpp +++ b/src/ui/MainWindow.hpp @@ -23,6 +23,7 @@ namespace wfl::ui protected: bool on_key_press_event(GdkEventKey* keyEvent) override; + bool on_scroll_event(GdkEventScroll* scrollEvent) override; bool on_window_state_event(GdkEventWindowState* windowStateEvent) override; bool on_delete_event(GdkEventAny*) override; @@ -36,9 +37,9 @@ namespace wfl::ui void onShow(); void onQuit(); void onFullscreen(); - void onZoomIn(Gtk::Button* buttonZoomLevel); - void onZoomOut(Gtk::Button* buttonZoomLevel); - void onResetZoom(Gtk::Button* buttonZoomLevel); + void onZoomIn(); + void onZoomOut(); + void onResetZoom(); void onShortcuts(); void onAbout(); @@ -51,6 +52,7 @@ namespace wfl::ui PhoneNumberDialog* m_phoneNumberDialog; Gtk::HeaderBar* m_headerBar; Gtk::ShortcutsWindow* m_shortcutsWindow; + Gtk::Button* m_buttonZoomLevel; bool m_fullscreen; }; } diff --git a/src/ui/WebView.cpp b/src/ui/WebView.cpp index f008e4f..0d0e6ce 100644 --- a/src/ui/WebView.cpp +++ b/src/ui/WebView.cpp @@ -31,8 +31,14 @@ namespace wfl::ui gboolean permissionRequest(WebKitWebView*, WebKitPermissionRequest* request, GtkWindow*) { - auto dialog = Gtk::MessageDialog{_("Notification Request"), false, Gtk::MESSAGE_QUESTION, Gtk::BUTTONS_YES_NO}; - dialog.set_secondary_text(_("Would you like to allow notifications?")); + if (util::Settings::getInstance().getValue("web", "allow-permissions")) + { + webkit_permission_request_allow(request); + return TRUE; + } + + auto dialog = Gtk::MessageDialog{_("Permission Request"), false, Gtk::MESSAGE_QUESTION, Gtk::BUTTONS_YES_NO}; + dialog.set_secondary_text(_("Would you like to allow permissions?")); auto const allow = (dialog.run() == Gtk::RESPONSE_YES); allow ? webkit_permission_request_allow(request) : webkit_permission_request_deny(request);