diff --git a/README_FR.md b/README_FR.md new file mode 100644 index 0000000..6b8bc0d --- /dev/null +++ b/README_FR.md @@ -0,0 +1,5 @@ +# RsyncUI + +client Rsync - QT5 - KDE + +#Compilation: diff --git a/RsyncUI.pro b/RsyncUI.pro index 186ba3b..f05b0a0 100644 --- a/RsyncUI.pro +++ b/RsyncUI.pro @@ -44,8 +44,18 @@ else: unix:!android: target.path = /usr/bin/ lang.path = /languages/fr_FR/ lang.files = languages/fr_FR/* INSTALLS += lang +INSTALLS += documentation +INSTALLS += desktopfile +INSTALLS += icon RESOURCES += DISTFILES += \ 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 diff --git a/RsyncUI.spec b/RsyncUI.spec new file mode 100644 index 0000000..ad17c2d --- /dev/null +++ b/RsyncUI.spec @@ -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 diff --git a/languages/fr_FR/RsyncUI_fr_FR.qm b/languages/fr_FR/RsyncUI_fr_FR.qm index 9a35396..25b9eef 100644 Binary files a/languages/fr_FR/RsyncUI_fr_FR.qm and b/languages/fr_FR/RsyncUI_fr_FR.qm differ diff --git a/languages/fr_FR/RsyncUI_fr_FR.ts b/languages/fr_FR/RsyncUI_fr_FR.ts index 977f0d9..c533d12 100644 --- a/languages/fr_FR/RsyncUI_fr_FR.ts +++ b/languages/fr_FR/RsyncUI_fr_FR.ts @@ -127,64 +127,69 @@ Barre d'outils - - Menu - Menu + + Download + Télécharger - - + + Click on menu button to download the entire folder + Cliquer sur le bouton droit de la souris pour télécharger le dossier entier + + + + Change save folder Changer le dossier de destination - + About À propos - + About Qt À propos de Qt - + Settings Paramètres - + Byte Octet - + KB Ko - + MB Mo - + GB Go - + TB To - - + + PB Po - + Client for rsync server You click on file to enqueue it, and RyncUI Download one file a time @@ -193,81 +198,91 @@ You click on file to enqueue it, and RyncUI Download one file a time Cliquez sur un fichier pour l'ajouter dans la file de téléchargement - + Path Chemin - + Size Taille - + Type Type - - Exiting will stop downloading, and will clear the download queue. - Do you want to exit ? - Cela stoppera le téléchargement et effacera la file des téléchargements. -Voulez-vous vraiment arrêter le programme ? - - - + server does not exists Le serveur n'existe pas - - + + Dir Dir - - + + File - + Version Version - + Licence License - + Author Auteur - + EMail Courriel - + Source code Code source - + Choose directory to save file Choisissez le dossier où enregistrer - + Do you want to stop downloading and delete this file from download queue ? Voulez-vous arrêter le téléchargement et enlever ce fichier de la file de téléchargement ? - + + A list of interrupted downloads exists, do you want to continue downloading ? or you can delete the list + Voulez-vous reprendre les téléchargements interrompus la fois précédente? ou vous pouvez supprimer la liste + + + + Remove + Supprimer + + + + Exiting will stop downloading, and will clear the download queue. +You can save the list of downloads +Do you want to exit ? + Si vous sortez, les téléchargements seront arrêter, mais vous pouvez enregistrer la liste pour la prochaine fois + + + Do you want to delete this file from download queue ? Voulez-vous enlever ce fichier de la file de téléchargement ? diff --git a/mainwindow.cpp b/mainwindow.cpp index 8cf01b7..d5ce810 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -19,9 +19,9 @@ MainWindow::MainWindow(QWidget *parent) QCoreApplication::setOrganizationName("RsyncUI"); QCoreApplication::setApplicationName("RsyncUI"); + // context menu for treewidget ui->treeWidget->addAction(ui->actionDownload); - // init shortcut loadSettings(); config.setupUi(&Configuration);