This commit is contained in:
Daniel Tartavel 2023-02-03 01:04:48 +01:00
parent 7770813647
commit 9229d3523e
6 changed files with 142 additions and 40 deletions

5
README_FR.md Normal file
View File

@ -0,0 +1,5 @@
# RsyncUI
client Rsync - QT5 - KDE
#Compilation:

View File

@ -44,8 +44,18 @@ else: unix:!android: target.path = /usr/bin/
lang.path = /languages/fr_FR/ lang.path = /languages/fr_FR/
lang.files = languages/fr_FR/* lang.files = languages/fr_FR/*
INSTALLS += lang INSTALLS += lang
INSTALLS += documentation
INSTALLS += desktopfile
INSTALLS += icon
RESOURCES += RESOURCES +=
DISTFILES += \ DISTFILES += \
RsyncUI.desktop RsyncUI.desktop
documentation.path = /usr/share/doc/RsyncUI
documentation.files = README*
desktopfile.path = /usr/share/applications
desktopfile.files = RsyncUI.desktop
icon.path = /usr/share/icons/
icon.files = RsyncUI.png

72
RsyncUI.spec Normal file
View File

@ -0,0 +1,72 @@
%define oname RsyncUI
Name: rsyncui
Summary: Client for rsync server
Version: 1.8.5
Release: %mkrel 1
License: GPLv3
Group: Networking/Remote access
Source0: %{oname}-%{version}.tar.gz
Packager: dtux@free.fr
Distribution: Mageia
Url: https://www.librepc.fr
Vendor: DTux
BuildRequires: qmake
BuildRequires: make
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Concurrent)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Xml)
BuildRequires: pkgconfig(libmagic)
BuildRequires: cmake(KF5Completion)
BuildRequires: cmake(KF5CoreAddons)
BuildRequires: cmake(KF5I18n)
BuildRequires: cmake(KF5DBusAddons)
BuildRequires: cmake(KF5Config)
BuildRequires: cmake(KF5ItemViews)
BuildRequires: pstreams-devel
BuildRequires: boost-devel
#Requires: kitemviews
#Requires: kcompletion
#Requires: kcoreaddons
#Requires: kdbusaddons
Requires: rsync
Requires: bind-utils
%global debug_package %{nil}
%description
RsyncUI can connect to an rsync server, get the list of services,
and download files.
%prep
%setup -q -n %{oname}
%build
%make_build
%install
#INSTALL_ROOT=%{BUILDROOT} make install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/applications/
mkdir -p %{buildroot}%{_datadir}/icons/
install -p -m 755 %{oname} %{buildroot}%{_bindir}/%{oname}
install -p -m 644 %{oname}.desktop %{buildroot}%{_datadir}/applications/
install -p -m 644 %{oname}.png %{buildroot}%{_datadir}/icons/
pushd languages
for locale in *;
do
mkdir -p %{buildroot}%{_datadir}/locale/$locale/LC_MESSAGES
install -m 644 $locale/*.qm "%{buildroot}%{_datadir}/locale/$locale/LC_MESSAGES/"
done
popd
%find_lang %{oname} --with-qt
%files -f %{oname}.lang
%{_bindir}/%{oname}
%{_datadir}/applications/%{oname}.desktop
%{_datadir}/icons/%{oname}.png

Binary file not shown.

View File

@ -127,64 +127,69 @@
<translation>Barre d&apos;outils</translation> <translation>Barre d&apos;outils</translation>
</message> </message>
<message> <message>
<location filename="../../mainwindow.ui" line="401"/> <location filename="../../mainwindow.ui" line="440"/>
<source>Menu</source> <source>Download</source>
<translation>Menu</translation> <translation>Télécharger</translation>
</message> </message>
<message> <message>
<location filename="../../mainwindow.ui" line="409"/> <location filename="../../mainwindow.ui" line="443"/>
<location filename="../../mainwindow.ui" line="412"/> <source>Click on menu button to download the entire folder</source>
<translation>Cliquer sur le bouton droit de la souris pour télécharger le dossier entier</translation>
</message>
<message>
<location filename="../../mainwindow.ui" line="405"/>
<location filename="../../mainwindow.ui" line="408"/>
<source>Change save folder</source> <source>Change save folder</source>
<translation>Changer le dossier de destination</translation> <translation>Changer le dossier de destination</translation>
</message> </message>
<message> <message>
<location filename="../../mainwindow.ui" line="420"/> <location filename="../../mainwindow.ui" line="417"/>
<source>About</source> <source>About</source>
<translation>À propos</translation> <translation>À propos</translation>
</message> </message>
<message> <message>
<location filename="../../mainwindow.ui" line="428"/> <location filename="../../mainwindow.ui" line="426"/>
<source>About Qt</source> <source>About Qt</source>
<translation>À propos de Qt</translation> <translation>À propos de Qt</translation>
</message> </message>
<message> <message>
<location filename="../../mainwindow.ui" line="436"/> <location filename="../../mainwindow.ui" line="435"/>
<source>Settings</source> <source>Settings</source>
<translation>Paramètres</translation> <translation>Paramètres</translation>
</message> </message>
<message> <message>
<location filename="../../mainwindow.cpp" line="23"/> <location filename="../../mainwindow.cpp" line="28"/>
<source>Byte</source> <source>Byte</source>
<translation>Octet</translation> <translation>Octet</translation>
</message> </message>
<message> <message>
<location filename="../../mainwindow.cpp" line="23"/> <location filename="../../mainwindow.cpp" line="28"/>
<source>KB</source> <source>KB</source>
<translation>Ko</translation> <translation>Ko</translation>
</message> </message>
<message> <message>
<location filename="../../mainwindow.cpp" line="23"/> <location filename="../../mainwindow.cpp" line="28"/>
<source>MB</source> <source>MB</source>
<translation>Mo</translation> <translation>Mo</translation>
</message> </message>
<message> <message>
<location filename="../../mainwindow.cpp" line="23"/> <location filename="../../mainwindow.cpp" line="28"/>
<source>GB</source> <source>GB</source>
<translation>Go</translation> <translation>Go</translation>
</message> </message>
<message> <message>
<location filename="../../mainwindow.cpp" line="23"/> <location filename="../../mainwindow.cpp" line="28"/>
<source>TB</source> <source>TB</source>
<translation>To</translation> <translation>To</translation>
</message> </message>
<message> <message>
<location filename="../../mainwindow.cpp" line="23"/> <location filename="../../mainwindow.cpp" line="28"/>
<location filename="../../mainwindow.cpp" line="634"/> <location filename="../../mainwindow.cpp" line="698"/>
<source>PB</source> <source>PB</source>
<translation>Po</translation> <translation>Po</translation>
</message> </message>
<message> <message>
<location filename="../../mainwindow.cpp" line="26"/> <location filename="../../mainwindow.cpp" line="31"/>
<source>Client for rsync server <source>Client for rsync server
You click on file to enqueue it, and RyncUI Download one file a time</source> You click on file to enqueue it, and RyncUI Download one file a time</source>
@ -193,81 +198,91 @@ You click on file to enqueue it, and RyncUI Download one file a time</source>
Cliquez sur un fichier pour l&apos;ajouter dans la file de téléchargement</translation> Cliquez sur un fichier pour l&apos;ajouter dans la file de téléchargement</translation>
</message> </message>
<message> <message>
<location filename="../../mainwindow.cpp" line="37"/> <location filename="../../mainwindow.cpp" line="42"/>
<source>Path</source> <source>Path</source>
<translation>Chemin</translation> <translation>Chemin</translation>
</message> </message>
<message> <message>
<location filename="../../mainwindow.cpp" line="37"/> <location filename="../../mainwindow.cpp" line="42"/>
<source>Size</source> <source>Size</source>
<translation>Taille</translation> <translation>Taille</translation>
</message> </message>
<message> <message>
<location filename="../../mainwindow.cpp" line="37"/> <location filename="../../mainwindow.cpp" line="42"/>
<source>Type</source> <source>Type</source>
<translation>Type</translation> <translation>Type</translation>
</message> </message>
<message> <message>
<location filename="../../mainwindow.cpp" line="79"/> <location filename="../../mainwindow.cpp" line="361"/>
<source>Exiting will stop downloading, and will clear the download queue.
Do you want to exit ?</source>
<translation>Cela stoppera le téléchargement et effacera la file des téléchargements.
Voulez-vous vraiment arrêter le programme ?</translation>
</message>
<message>
<location filename="../../mainwindow.cpp" line="329"/>
<source>server does not exists</source> <source>server does not exists</source>
<translation>Le serveur n&apos;existe pas</translation> <translation>Le serveur n&apos;existe pas</translation>
</message> </message>
<message> <message>
<location filename="../../mainwindow.cpp" line="356"/> <location filename="../../mainwindow.cpp" line="388"/>
<location filename="../../mainwindow.cpp" line="376"/> <location filename="../../mainwindow.cpp" line="408"/>
<source>Dir</source> <source>Dir</source>
<translation>Dir</translation> <translation>Dir</translation>
</message> </message>
<message> <message>
<location filename="../../mainwindow.cpp" line="359"/> <location filename="../../mainwindow.cpp" line="391"/>
<location filename="../../mainwindow.cpp" line="424"/> <location filename="../../mainwindow.cpp" line="456"/>
<source>File</source> <source>File</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../mainwindow.cpp" line="582"/> <location filename="../../mainwindow.cpp" line="634"/>
<source>Version</source> <source>Version</source>
<translation>Version</translation> <translation>Version</translation>
</message> </message>
<message> <message>
<location filename="../../mainwindow.cpp" line="583"/> <location filename="../../mainwindow.cpp" line="635"/>
<source>Licence</source> <source>Licence</source>
<translation>License</translation> <translation>License</translation>
</message> </message>
<message> <message>
<location filename="../../mainwindow.cpp" line="584"/> <location filename="../../mainwindow.cpp" line="636"/>
<source>Author</source> <source>Author</source>
<translation>Auteur</translation> <translation>Auteur</translation>
</message> </message>
<message> <message>
<location filename="../../mainwindow.cpp" line="585"/> <location filename="../../mainwindow.cpp" line="637"/>
<source>EMail</source> <source>EMail</source>
<translation>Courriel</translation> <translation>Courriel</translation>
</message> </message>
<message> <message>
<location filename="../../mainwindow.cpp" line="586"/> <location filename="../../mainwindow.cpp" line="638"/>
<source>Source code</source> <source>Source code</source>
<translation>Code source</translation> <translation>Code source</translation>
</message> </message>
<message> <message>
<location filename="../../mainwindow.cpp" line="603"/> <location filename="../../mainwindow.cpp" line="663"/>
<source>Choose directory to save file</source> <source>Choose directory to save file</source>
<translation>Choisissez le dossier enregistrer</translation> <translation>Choisissez le dossier enregistrer</translation>
</message> </message>
<message> <message>
<location filename="../../mainwindow.cpp" line="512"/> <location filename="../../mainwindow.cpp" line="563"/>
<source>Do you want to stop downloading and delete this file from download queue ?</source> <source>Do you want to stop downloading and delete this file from download queue ?</source>
<translation>Voulez-vous arrêter le téléchargement et enlever ce fichier de la file de téléchargement ?</translation> <translation>Voulez-vous arrêter le téléchargement et enlever ce fichier de la file de téléchargement ?</translation>
</message> </message>
<message> <message>
<location filename="../../mainwindow.cpp" line="524"/> <location filename="../../mainwindow.cpp" line="66"/>
<source>A list of interrupted downloads exists, do you want to continue downloading ? or you can delete the list</source>
<translation>Voulez-vous reprendre les téléchargements interrompus la fois précédente? ou vous pouvez supprimer la liste</translation>
</message>
<message>
<location filename="../../mainwindow.cpp" line="68"/>
<source>Remove</source>
<translation>Supprimer</translation>
</message>
<message>
<location filename="../../mainwindow.cpp" line="107"/>
<source>Exiting will stop downloading, and will clear the download queue.
You can save the list of downloads
Do you want to exit ?</source>
<translation>Si vous sortez, les téléchargements seront arrêter, mais vous pouvez enregistrer la liste pour la prochaine fois</translation>
</message>
<message>
<location filename="../../mainwindow.cpp" line="575"/>
<source>Do you want to delete this file from download queue ?</source> <source>Do you want to delete this file from download queue ?</source>
<translation>Voulez-vous enlever ce fichier de la file de téléchargement ?</translation> <translation>Voulez-vous enlever ce fichier de la file de téléchargement ?</translation>
</message> </message>

View File

@ -19,9 +19,9 @@ MainWindow::MainWindow(QWidget *parent)
QCoreApplication::setOrganizationName("RsyncUI"); QCoreApplication::setOrganizationName("RsyncUI");
QCoreApplication::setApplicationName("RsyncUI"); QCoreApplication::setApplicationName("RsyncUI");
// context menu for treewidget
ui->treeWidget->addAction(ui->actionDownload); ui->treeWidget->addAction(ui->actionDownload);
// init shortcut // init shortcut
loadSettings(); loadSettings();
config.setupUi(&Configuration); config.setupUi(&Configuration);