From e18401a245f7ed32893e5bd3823265ced7bf1c89 Mon Sep 17 00:00:00 2001 From: Quentin Dussieaux Date: Thu, 18 Apr 2019 13:13:15 +0200 Subject: [PATCH 1/2] Dynamic window title --- src/mainwindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index e26a622..cde8bae 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -23,6 +23,12 @@ MainWindow::MainWindow(QWidget *parent) : this, &MainWindow::toggleFullScreen); connect(app->getAction(KiwixApp::AboutAction), &QAction::triggered, mp_about, &QDialog::show); + connect(app, &KiwixApp::currentTitleChanged, this, [=](const QString& title) { + if (!title.isEmpty() && !title.startsWith("zim://")) + setWindowTitle(title + " - Kiwix"); + else + setWindowTitle(tr("Library") + " - Kiwix"); + }); #if !SYSTEMTITLEBAR setWindowFlags(Qt::Window | Qt::CustomizeWindowHint); #endif From c507f2b5c80120c8b0d9a0e2cdfdcc539810c4aa Mon Sep 17 00:00:00 2001 From: Quentin Dussieaux Date: Thu, 18 Apr 2019 13:19:27 +0200 Subject: [PATCH 2/2] New translated file generated --- resources/i18n/kiwix-desktop_fr.qm | Bin 3284 -> 3261 bytes resources/i18n/kiwix-desktop_fr.ts | 123 +++++++++++++++++++++-------- 2 files changed, 89 insertions(+), 34 deletions(-) diff --git a/resources/i18n/kiwix-desktop_fr.qm b/resources/i18n/kiwix-desktop_fr.qm index be556246d5566dc2c77afeed97b50973e4fda047..6ce289cd7d275813ba7d1dcb45b35470b03c9abe 100644 GIT binary patch delta 125 zcmca2xmR+63FD!Ort*wWCx!+XF#YT}$-uxR$Sjn8m4SinG4t)>bRgfK`Mtb20|VTXZQ@>W#>Eq_R;cn^SKJB| x5ai9g@q~ea+kp2^NF4(M`yBqd`%@SgI4)%Z1(P>tF^Y0czRT>oc`dg9BLKil9oYZ? diff --git a/resources/i18n/kiwix-desktop_fr.ts b/resources/i18n/kiwix-desktop_fr.ts index e6c738e..230fc1b 100644 --- a/resources/i18n/kiwix-desktop_fr.ts +++ b/resources/i18n/kiwix-desktop_fr.ts @@ -17,72 +17,72 @@ KiwixApp - + Open Zim Ouvrir Zim - + Local Kiwix Server Serveur local Kiwix - + Random Article Article aléatoire - + Print Imprimer - + New tab Nouvel onglet - + Close tab Fermer l'onglet - + Reopen closed tab Rouvrir l'onglet fermé - + Browse library Parcourir la bibliothèque - + Open file Ouvrir un ficher - + Open recent Fichiers récemment ouverts - + Save page as ... Enregister sous... - + Search article Chercher un article - + Search in library Chercher dans la bibliothèque - + Find in page Chercher dans la page @@ -95,78 +95,78 @@ Trouver le précédent - - + + Set fullScreen Mode plein écran - + Quit fullScreen Quitter le pein écran - + Table of content Table des matières - + Reading list Liste de lecture - + Zoom in Zoom + - + Zoom out Zoom - - + Zoom reset Réinitialisation du zoom - + Help Aide - + Feedback Retour d'information - + Repost a bug Déclarer un bogue - + Request a feature Demander une nouvelle fonctionnalité - + About Kiwix A propos de Kiwix - + Settings Paramètres - + Donate to support Kiwix Faire un don pour soutenir Kiwix - + Exit Quitter @@ -207,9 +207,13 @@ MainWindow - Find in page - Chercher dans la page + Chercher dans la page + + + + Library + Bibliothèque @@ -362,7 +366,7 @@ SearchBar - + Search Recherche @@ -374,6 +378,11 @@ Form + + + Hide + + TopWidget @@ -384,10 +393,56 @@ Précédent - + forward Suivant + + contentmanagerside + + + Form + + + + + All Files + + + + + Local Files + + + + + Browse By Language + + + + + Browse By Category + + + + + Content Type + + + + + readinglistbar + + + Form + + + + + Reading List + + +