From 3da7e28acbb73faaa7dc346b9507a016dca29c07 Mon Sep 17 00:00:00 2001 From: Yuriy Puchkov Date: Fri, 7 Aug 2020 15:34:31 +0300 Subject: [PATCH] Include storage type into history file name --- src/tools/imgs3/imgs3uploader.cpp | 79 ++++++++++++++++++---- src/tools/imgs3/imgs3uploader.h | 13 +++- src/widgets/historywidget.cpp | 46 +++++++------ src/widgets/historywidget.h | 4 +- translations/Internationalization_ca.ts | 44 ++++++------ translations/Internationalization_de_DE.ts | 44 ++++++------ translations/Internationalization_es.ts | 44 ++++++------ translations/Internationalization_fr.ts | 44 ++++++------ translations/Internationalization_hu.ts | 22 +++--- translations/Internationalization_ja.ts | 44 ++++++------ translations/Internationalization_ka.ts | 44 ++++++------ translations/Internationalization_nl.ts | 44 ++++++------ translations/Internationalization_pl.ts | 44 ++++++------ translations/Internationalization_pt_br.ts | 44 ++++++------ translations/Internationalization_ru.ts | 50 +++++++++----- translations/Internationalization_sk.ts | 44 ++++++------ translations/Internationalization_sr.ts | 44 ++++++------ translations/Internationalization_tr.ts | 44 ++++++------ translations/Internationalization_uk.ts | 50 +++++++++----- translations/Internationalization_zh_CN.ts | 44 ++++++------ translations/Internationalization_zh_TW.ts | 44 ++++++------ 21 files changed, 530 insertions(+), 350 deletions(-) diff --git a/src/tools/imgs3/imgs3uploader.cpp b/src/tools/imgs3/imgs3uploader.cpp index 4cd5bd70..4231d6e9 100644 --- a/src/tools/imgs3/imgs3uploader.cpp +++ b/src/tools/imgs3/imgs3uploader.cpp @@ -56,11 +56,15 @@ ImgS3Uploader::ImgS3Uploader(const QPixmap &capture, QWidget *parent) : ImgS3Uploader::ImgS3Uploader(QWidget *parent) : QWidget(parent) { - init(tr("Delete image from S3"), tr("Deleting Image")); + init(tr("Delete image from S3"), tr("Deleting image...")); } void ImgS3Uploader::init(const QString &title, const QString &label) { m_proxy = nullptr; + + m_imageLabel = nullptr; + m_spinner = nullptr; + m_success = false; setWindowTitle(title); setWindowIcon(QIcon(":img/app/flameshot.svg")); @@ -70,6 +74,7 @@ void ImgS3Uploader::init(const QString &title, const QString &label) { m_spinner->start(); m_infoLabel = new QLabel(label); + m_infoLabel->setAlignment(Qt::AlignCenter); m_vLayout = new QVBoxLayout(); setLayout(m_vLayout); @@ -179,7 +184,8 @@ void ImgS3Uploader::initNetwork() { void ImgS3Uploader::handleReplyUpload(QNetworkReply *reply) { - m_spinner->deleteLater(); + hideSpinner(); + m_s3ImageName.clear(); if (reply->error() == QNetworkReply::NoError) { // save history QString imageName = m_imageURL.toString(); @@ -187,6 +193,7 @@ void ImgS3Uploader::handleReplyUpload(QNetworkReply *reply) { if (lastSlash >= 0) { imageName = imageName.mid(lastSlash + 1); } + m_s3ImageName = imageName; History history; imageName = history.packFileName(SCREENSHOT_STORAGE_TYPE_S3, m_deleteToken, imageName); history.save(m_pixmap, imageName); @@ -202,19 +209,30 @@ void ImgS3Uploader::handleReplyUpload(QNetworkReply *reply) { } } else { QString reason = reply->attribute( QNetworkRequest::HttpReasonPhraseAttribute ).toString(); - m_infoLabel->setText(reply->errorString()); + setInfoLabelText(reply->errorString()); } new QShortcut(Qt::Key_Escape, this, SLOT(close())); } void ImgS3Uploader::handleReplyDeleteResource(QNetworkReply *reply) { - m_spinner->deleteLater(); if (reply->error() == QNetworkReply::NoError) { m_success = true; + + // remove local file + History history; + QString packedFileName = history.packFileName(SCREENSHOT_STORAGE_TYPE_S3, m_deleteToken, m_s3ImageName); + QString fullFileName = history.path() + packedFileName; + + QFile file(fullFileName); + if (file.exists()) { + file.remove(); + } + m_deleteToken.clear(); + m_s3ImageName.clear(); close(); } else { QString reason = reply->attribute( QNetworkRequest::HttpReasonPhraseAttribute ).toString(); - m_infoLabel->setText(reply->errorString()); + setInfoLabelText(reply->errorString()); } new QShortcut(Qt::Key_Escape, this, SLOT(close())); } @@ -237,10 +255,10 @@ void ImgS3Uploader::handleReplyGetCreds(QNetworkReply *reply){ uploadToS3(response); } else { if(m_s3Settings.credsUrl().length() == 0){ - m_infoLabel->setText("S3 Creds URL is not found in your configuration file"); + setInfoLabelText(tr("S3 Creds URL is not found in your configuration file")); } else { - m_infoLabel->setText(reply->errorString()); + setInfoLabelText(reply->errorString()); } } new QShortcut(Qt::Key_Escape, this, SLOT(close())); @@ -288,6 +306,8 @@ void ImgS3Uploader::uploadToS3(QJsonDocument &response) { void ImgS3Uploader::deleteResource(const QString &fileName, const QString &deleteToken) { QNetworkRequest request; + m_s3ImageName = fileName; + m_deleteToken = deleteToken; request.setUrl(m_s3Settings.credsUrl().toUtf8() + fileName); request.setRawHeader("X-API-Key", m_s3Settings.xApiKey().toLatin1()); request.setRawHeader("Authorization", "Bearer " + deleteToken.toLatin1()); @@ -295,42 +315,50 @@ void ImgS3Uploader::deleteResource(const QString &fileName, const QString &delet } void ImgS3Uploader::upload() { + m_deleteToken.clear(); + m_s3ImageName.clear(); + // get creads QUrl creds(m_s3Settings.credsUrl()); QNetworkRequest requestCreds(creds); if(m_s3Settings.xApiKey().length() > 0) { requestCreds.setRawHeader(QByteArray("X-API-Key"), QByteArray(m_s3Settings.xApiKey().toLocal8Bit())); } - m_deleteToken.clear(); m_NetworkAMGetCreds->get(requestCreds); } void ImgS3Uploader::onUploadOk() { - m_infoLabel->deleteLater(); + hideSpinner(); m_notification = new NotificationWidget(); m_vLayout->addWidget(m_notification); - ImageLabel *imageLabel = new ImageLabel(); - imageLabel->setScreenshot(m_pixmap); - imageLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); - connect(imageLabel, &ImageLabel::dragInitiated, this, &ImgS3Uploader::startDrag); - m_vLayout->addWidget(imageLabel); + if(nullptr == m_imageLabel) { + m_imageLabel = new ImageLabel(); + m_imageLabel->setScreenshot(m_pixmap); + m_imageLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); + connect(m_imageLabel, &ImageLabel::dragInitiated, this, &ImgS3Uploader::startDrag); + m_vLayout->addWidget(m_imageLabel); + } m_hLayout = new QHBoxLayout(); m_vLayout->addLayout(m_hLayout); m_copyUrlButton = new QPushButton(tr("Copy URL")); m_openUrlButton = new QPushButton(tr("Open URL")); + m_deleteImageOnS3 = new QPushButton(tr("Delete image")); m_toClipboardButton = new QPushButton(tr("Image to Clipboard.")); m_hLayout->addWidget(m_copyUrlButton); m_hLayout->addWidget(m_openUrlButton); + m_hLayout->addWidget(m_deleteImageOnS3); m_hLayout->addWidget(m_toClipboardButton); connect(m_copyUrlButton, &QPushButton::clicked, this, &ImgS3Uploader::copyURL); connect(m_openUrlButton, &QPushButton::clicked, this, &ImgS3Uploader::openURL); + connect(m_deleteImageOnS3, &QPushButton::clicked, + this, &ImgS3Uploader::deleteImageOnS3); connect(m_toClipboardButton, &QPushButton::clicked, this, &ImgS3Uploader::copyImage); } @@ -352,6 +380,29 @@ void ImgS3Uploader::copyImage() { m_notification->showMessage(tr("Screenshot copied to clipboard.")); } +void ImgS3Uploader::deleteImageOnS3() { + if(nullptr != m_imageLabel) { + m_imageLabel->hide(); + } + m_spinner->show(); + setInfoLabelText(tr("Deleting image...")); + deleteResource(m_s3ImageName, m_deleteToken); +} + bool ImgS3Uploader::success() { return m_success; } + +void ImgS3Uploader::hideSpinner() { + if(nullptr != m_spinner) { + m_spinner->hide(); + } + if(nullptr != m_imageLabel) { + m_imageLabel->hide(); + } +} + +void ImgS3Uploader::setInfoLabelText(const QString &infoText) { + m_infoLabel->setText(infoText); + m_infoLabel->show(); +} diff --git a/src/tools/imgs3/imgs3uploader.h b/src/tools/imgs3/imgs3uploader.h index 0298c4b7..9c90e207 100644 --- a/src/tools/imgs3/imgs3uploader.h +++ b/src/tools/imgs3/imgs3uploader.h @@ -34,6 +34,7 @@ class QPushButton; class QUrl; class NotificationWidget; class ConfigEnterprise; +class ImageLabel; class ImgS3Uploader : public QWidget { Q_OBJECT @@ -53,6 +54,7 @@ private slots: void openURL(); void copyURL(); void copyImage(); + void deleteImageOnS3(); private: void init(const QString &title, const QString &label); @@ -61,12 +63,17 @@ private: void onUploadOk(); + void hideSpinner(); + void setInfoLabelText(const QString &); + + // class members private: bool m_success; ConfigEnterprise *m_configEnterprise; ImgS3Settings m_s3Settings; - QString m_deleteToken; + + ImageLabel *m_imageLabel; QString m_hostName; QPixmap m_pixmap; @@ -84,7 +91,11 @@ private: QPushButton *m_openUrlButton; QPushButton *m_copyUrlButton; QPushButton *m_toClipboardButton; + QPushButton *m_deleteImageOnS3; QUrl m_imageURL; NotificationWidget *m_notification; + // Temporary variables + QString m_deleteToken; + QString m_s3ImageName; }; diff --git a/src/widgets/historywidget.cpp b/src/widgets/historywidget.cpp index 52127e31..138069a9 100644 --- a/src/widgets/historywidget.cpp +++ b/src/widgets/historywidget.cpp @@ -24,7 +24,7 @@ HistoryWidget::HistoryWidget(QWidget *parent) : QDialog(parent) { setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); - setWindowTitle(tr("Screenshots history")); + setWindowTitle(tr("Latest Uploads")); setFixedSize(800, this->height()); m_notification = new NotificationWidget(); @@ -129,7 +129,17 @@ void HistoryWidget::addLine(const QString &path, const QString& fileName) { buttonDelete->setIcon(QIcon(":/img/material/black/delete.svg")); buttonDelete->setMinimumHeight(HISTORYPIXMAP_MAX_PREVIEW_HEIGHT); connect(buttonDelete, &QPushButton::clicked, this, [=](){ - removeItem(phbl, fullFileName, unpackFileName.file, unpackFileName.token); + if (unpackFileName.token.length() > 0) { + removeItem(phbl, unpackFileName.file, unpackFileName.token); + } + else { + // for compatibility with previous versions and to be able to remove previous screenshots + QFile file(fullFileName); + if (file.exists()) { + file.remove(); + } + removeLocalItem(phbl); + } }); // layout @@ -149,28 +159,20 @@ void HistoryWidget::addLine(const QString &path, const QString& fileName) { m_pVBox->addLayout(phbl); } -void HistoryWidget::removeItem(QLayout *pl, const QString &fullFileName, const QString& s3FileName, const QString& deleteToken) { - if (deleteToken.length() > 0) { - ImgS3Uploader *uploader = new ImgS3Uploader(); - hide(); - uploader->show(); - uploader->deleteResource(s3FileName, deleteToken); - connect(uploader, &QWidget::destroyed, this, [=](){ - if(uploader->success()) { - removeLocalItem(pl, fullFileName); - } - show(); - }); - } - else { - removeLocalItem(pl, fullFileName); - } +void HistoryWidget::removeItem(QLayout *pl, const QString& s3FileName, const QString& deleteToken) { + ImgS3Uploader *uploader = new ImgS3Uploader(); + hide(); + uploader->show(); + uploader->deleteResource(s3FileName, deleteToken); + connect(uploader, &QWidget::destroyed, this, [=](){ + if(uploader->success()) { + removeLocalItem(pl); + } + show(); + }); } -void HistoryWidget::removeLocalItem(QLayout *pl, const QString &fullFileName) { - QFile file(fullFileName); - file.remove(); - +void HistoryWidget::removeLocalItem(QLayout *pl) { // remove current row or refresh list while(pl->count() > 0) { QLayoutItem *item = pl->takeAt(0); diff --git a/src/widgets/historywidget.h b/src/widgets/historywidget.h index 064a2db4..b29cb000 100644 --- a/src/widgets/historywidget.h +++ b/src/widgets/historywidget.h @@ -25,8 +25,8 @@ signals: private: void loadHistory(); void addLine(const QString &, const QString &); - void removeItem(QLayout *, const QString &, const QString &, const QString &); - void removeLocalItem(QLayout *, const QString &); + void removeItem(QLayout *pl, const QString& s3FileName, const QString& deleteToken); + void removeLocalItem(QLayout *pl); void setEmptyMessage(); private: diff --git a/translations/Internationalization_ca.ts b/translations/Internationalization_ca.ts index 1d1d58fc..531de07d 100644 --- a/translations/Internationalization_ca.ts +++ b/translations/Internationalization_ca.ts @@ -441,26 +441,26 @@ Press Space to open the side panel. HistoryWidget - Screenshots history + Latest Uploads - + Screenshots history is empty - + Copy URL Copia l'URL - + URL copied to clipboard. L'URL s'ha copiat al porta-retalls. - + Open in browser @@ -483,37 +483,49 @@ Press Space to open the side panel. - - Deleting Image + + S3 Creds URL is not found in your configuration file - + Copy URL Copia l'URL - + Open URL Obri l'URL - + + Delete image + + + + Image to Clipboard. Imatge al porta-retalls. - + Unable to open the URL. No es pot obrir l'URL. - + + URL copied to clipboard. L'URL s'ha copiat al porta-retalls. - + + + Deleting image... + + + + Screenshot copied to clipboard. La captura s'ha copiat al porta-retalls. @@ -810,16 +822,10 @@ Press Space to open the side panel. - URL copied to clipboard. L'URL s'ha copiat al porta-retalls. - - - File is deleted from S3 - - RectangleTool diff --git a/translations/Internationalization_de_DE.ts b/translations/Internationalization_de_DE.ts index 65e831a8..362f135d 100644 --- a/translations/Internationalization_de_DE.ts +++ b/translations/Internationalization_de_DE.ts @@ -444,26 +444,26 @@ Drücke die Leertaste um das Seitenmenü zu öffnen. HistoryWidget - Screenshots history + Latest Uploads - + Screenshots history is empty - + Copy URL URL kopieren - + URL copied to clipboard. URL kopiert. - + Open in browser @@ -486,37 +486,49 @@ Drücke die Leertaste um das Seitenmenü zu öffnen. - - Deleting Image + + S3 Creds URL is not found in your configuration file - + Copy URL URL kopieren - + Open URL URL öffnen - + + Delete image + Bild löschen + + + Image to Clipboard. Bild in Zwischenablage. - + Unable to open the URL. Kann URL nicht öffnen. - + + URL copied to clipboard. URL kopiert. - + + + Deleting image... + + + + Screenshot copied to clipboard. Bildschirmaufnahme in Zwischenablage kopiert. @@ -813,16 +825,10 @@ Drücke die Leertaste um das Seitenmenü zu öffnen. Kein Schreibzugriff auf - URL copied to clipboard. URL kopiert. - - - File is deleted from S3 - - RectangleTool diff --git a/translations/Internationalization_es.ts b/translations/Internationalization_es.ts index e1765ccc..a1c72751 100644 --- a/translations/Internationalization_es.ts +++ b/translations/Internationalization_es.ts @@ -444,26 +444,26 @@ Presiona Espacio para abrir el panel lateral. HistoryWidget - Screenshots history + Latest Uploads - + Screenshots history is empty - + Copy URL Copiar URL - + URL copied to clipboard. URL copiada al portapapeles. - + Open in browser @@ -486,37 +486,49 @@ Presiona Espacio para abrir el panel lateral. - - Deleting Image + + S3 Creds URL is not found in your configuration file - + Copy URL Copiar URL - + Open URL Abrir URL - + + Delete image + Borrar imagen + + + Image to Clipboard. Imagen al Portapapeles. - + Unable to open the URL. No puede abrir la URL. - + + URL copied to clipboard. URL copiada al portapapeles. - + + + Deleting image... + + + + Screenshot copied to clipboard. Captura copiada al portapapeles. @@ -813,16 +825,10 @@ Presiona Espacio para abrir el panel lateral. Imposible escribir en - URL copied to clipboard. URL copiada al portapapeles. - - - File is deleted from S3 - - RectangleTool diff --git a/translations/Internationalization_fr.ts b/translations/Internationalization_fr.ts index 4e01c58e..5ef43c67 100644 --- a/translations/Internationalization_fr.ts +++ b/translations/Internationalization_fr.ts @@ -444,26 +444,26 @@ Appuyer sur Espace pour ouvrir le panneau latéral. HistoryWidget - Screenshots history + Latest Uploads - + Screenshots history is empty - + Copy URL Copier l'URL - + URL copied to clipboard. URL copiée dans le Presse-papier. - + Open in browser @@ -486,37 +486,49 @@ Appuyer sur Espace pour ouvrir le panneau latéral. - - Deleting Image + + S3 Creds URL is not found in your configuration file - + Copy URL Copier l'URL - + Open URL Ouvrir l'URL - + + Delete image + + + + Image to Clipboard. Image dans le Presse-papier. - + Unable to open the URL. Impossible d'ouvrir l'URL. - + + URL copied to clipboard. URL copiée dans le Presse-papier. - + + + Deleting image... + + + + Screenshot copied to clipboard. Capture d'écran copiée dans le Presse-papier. @@ -813,16 +825,10 @@ Appuyer sur Espace pour ouvrir le panneau latéral. Imposible d'écrire par dessus - URL copied to clipboard. URL copiée dans le Presse-papier. - - - File is deleted from S3 - - RectangleTool diff --git a/translations/Internationalization_hu.ts b/translations/Internationalization_hu.ts index ac4b15da..3fce8960 100644 --- a/translations/Internationalization_hu.ts +++ b/translations/Internationalization_hu.ts @@ -384,10 +384,6 @@ Press Space to open the side panel. HistoryWidget - - Screenshots history - - URL copied to clipboard. URL másolva a vágólapra. @@ -404,6 +400,10 @@ Press Space to open the side panel. Copy URL URL másolása + + Latest Uploads + + ImgS3Uploader @@ -444,7 +444,15 @@ Press Space to open the side panel. - Deleting Image + Delete image + + + + S3 Creds URL is not found in your configuration file + + + + Deleting image... @@ -686,10 +694,6 @@ Press Space to open the side panel. URL copied to clipboard. URL másolva a vágólapra. - - File is deleted from S3 - - RectangleTool diff --git a/translations/Internationalization_ja.ts b/translations/Internationalization_ja.ts index 24c09fd6..a0891358 100644 --- a/translations/Internationalization_ja.ts +++ b/translations/Internationalization_ja.ts @@ -444,26 +444,26 @@ Enter を押すと画面をキャプチャー。 HistoryWidget - Screenshots history + Latest Uploads - + Screenshots history is empty - + Copy URL URL をコピー - + URL copied to clipboard. URL をクリップボードにコピーしました。 - + Open in browser @@ -486,37 +486,49 @@ Enter を押すと画面をキャプチャー。 - - Deleting Image + + S3 Creds URL is not found in your configuration file - + Copy URL URL をコピー - + Open URL URL を開く - + + Delete image + 画像を削除 + + + Image to Clipboard. 画像をクリップボードへ。 - + Unable to open the URL. URL を開けません。 - + + URL copied to clipboard. URL をクリップボードにコピーしました。 - + + + Deleting image... + + + + Screenshot copied to clipboard. スクリーンショットをクリップボードにコピーしました。 @@ -813,16 +825,10 @@ Enter を押すと画面をキャプチャー。 書き込めません: - URL copied to clipboard. URL をクリップボードにコピーしました。 - - - File is deleted from S3 - - RectangleTool diff --git a/translations/Internationalization_ka.ts b/translations/Internationalization_ka.ts index 575840fe..7134590f 100644 --- a/translations/Internationalization_ka.ts +++ b/translations/Internationalization_ka.ts @@ -440,26 +440,26 @@ Press Space to open the side panel. HistoryWidget - Screenshots history + Latest Uploads - + Screenshots history is empty - + Copy URL URL-ის კოპირება - + URL copied to clipboard. URL დაკოპირდა გაცვლის ბუფერში. - + Open in browser @@ -482,37 +482,49 @@ Press Space to open the side panel. - - Deleting Image + + S3 Creds URL is not found in your configuration file - + Copy URL URL-ის კოპირება - + Open URL URL-ის გახსნა - + + Delete image + + + + Image to Clipboard. სურათის გაცვლის ბუფერში გაგზავნა - + Unable to open the URL. URL-ის გახსნა ვერ მოხერხდა. - + + URL copied to clipboard. URL დაკოპირდა გაცვლის ბუფერში. - + + + Deleting image... + + + + Screenshot copied to clipboard. სურათი დაკოპირდა გაცვლის ბუფერში. @@ -809,16 +821,10 @@ Press Space to open the side panel. შემდეგ მისამართზე ჩაწერა ვერ მოხერხდა: - URL copied to clipboard. URL დაკოპირდა გაცვლის ბუფერში. - - - File is deleted from S3 - - RectangleTool diff --git a/translations/Internationalization_nl.ts b/translations/Internationalization_nl.ts index 6a372b5a..87f7751d 100644 --- a/translations/Internationalization_nl.ts +++ b/translations/Internationalization_nl.ts @@ -444,26 +444,26 @@ Druk op spatie om het zijpaneel te openen. HistoryWidget - Screenshots history + Latest Uploads - + Screenshots history is empty - + Copy URL URL kopiëren - + URL copied to clipboard. URL gekopieerd naar klembord. - + Open in browser @@ -486,37 +486,49 @@ Druk op spatie om het zijpaneel te openen. - - Deleting Image + + S3 Creds URL is not found in your configuration file - + Copy URL URL kopiëren - + Open URL URL openen - + + Delete image + Afbeelding verwijderen + + + Image to Clipboard. Afbeelding naar klembord. - + Unable to open the URL. Kan URL niet openen. - + + URL copied to clipboard. URL gekopieerd naar klembord. - + + + Deleting image... + + + + Screenshot copied to clipboard. Schermafdruk gekopieerd naar klembord. @@ -813,16 +825,10 @@ Druk op spatie om het zijpaneel te openen. Kan niet wegschrijven naar - URL copied to clipboard. URL gekopieerd naar klembord. - - - File is deleted from S3 - - RectangleTool diff --git a/translations/Internationalization_pl.ts b/translations/Internationalization_pl.ts index ebf2fab8..9a8fe7aa 100644 --- a/translations/Internationalization_pl.ts +++ b/translations/Internationalization_pl.ts @@ -443,26 +443,26 @@ Spacja, aby pokazać panel boczny. HistoryWidget - Screenshots history + Latest Uploads - + Screenshots history is empty - + Copy URL Kopiuj URL - + URL copied to clipboard. URL skopiowany do schowka. - + Open in browser @@ -485,37 +485,49 @@ Spacja, aby pokazać panel boczny. - - Deleting Image + + S3 Creds URL is not found in your configuration file - + Copy URL Kopiuj URL - + Open URL Otwórz URL - + + Delete image + Usuń obrazek + + + Image to Clipboard. Obrazek do schowka. - + Unable to open the URL. Nie można otworzyć adresu URL. - + + URL copied to clipboard. URL skopiowany do schowka. - + + + Deleting image... + + + + Screenshot copied to clipboard. Zrzut ekranu skopiowany do schowka. @@ -812,16 +824,10 @@ Spacja, aby pokazać panel boczny. Nie można zapisać w - URL copied to clipboard. URL skopiowany do schowka. - - - File is deleted from S3 - - RectangleTool diff --git a/translations/Internationalization_pt_br.ts b/translations/Internationalization_pt_br.ts index 67558d79..2e409a6e 100644 --- a/translations/Internationalization_pt_br.ts +++ b/translations/Internationalization_pt_br.ts @@ -444,26 +444,26 @@ Pressione espaço abrir o painel lateral. HistoryWidget - Screenshots history + Latest Uploads - + Screenshots history is empty - + Copy URL Copiar URL - + URL copied to clipboard. URL copiada para o clipboard. - + Open in browser @@ -486,37 +486,49 @@ Pressione espaço abrir o painel lateral. - - Deleting Image + + S3 Creds URL is not found in your configuration file - + Copy URL Copiar URL - + Open URL Abrir URL - + + Delete image + Deletar imagem + + + Image to Clipboard. Imagem no Clipboard. - + Unable to open the URL. Não foi possível abrir a URL. - + + URL copied to clipboard. URL copiada para o clipboard. - + + + Deleting image... + + + + Screenshot copied to clipboard. Screenshot copiada para o clipboard. @@ -813,16 +825,10 @@ Pressione espaço abrir o painel lateral. Não foi possível escrever em - URL copied to clipboard. URL copiada para o clipboard. - - - File is deleted from S3 - - RectangleTool diff --git a/translations/Internationalization_ru.ts b/translations/Internationalization_ru.ts index 6bb1f6cc..fd13d4c0 100644 --- a/translations/Internationalization_ru.ts +++ b/translations/Internationalization_ru.ts @@ -451,31 +451,35 @@ Press Space to open the side panel. HistoryWidget - Screenshots history - История скриншотов + История скриншотов Screenshots history is epmty История скриншотов пустая - + + Latest Uploads + Последние загрузки + + + Screenshots history is empty История скриншотов пуста - + Copy URL Скопировать URL - + URL copied to clipboard. URL скопирован в буфер обмена. - + Open in browser Открыть в браузере @@ -502,41 +506,53 @@ Press Space to open the side panel. Удалить скриншот с S3 - Deleting Image - Удалить скриншот + Удалить скриншот - + + S3 Creds URL is not found in your configuration file + Параметры доступов к S3 не найдены в конфигурационном файле + + + Copy URL Скопировать URL - + Open URL Открыть URL + Delete image - Удалить изображение + Удалить изображение - + Image to Clipboard. Изображение в буфер обмена. - + Unable to open the URL. Не удалось открыть URL. - + + URL copied to clipboard. URL скопирован в буфер обмена. - + + + Deleting image... + Удаление скриншота... + + + Screenshot copied to clipboard. Снимок скопирован в буфер обмена. @@ -837,15 +853,13 @@ Press Space to open the side panel. Не удалось сохранить - URL copied to clipboard. URL скопирован в буфер обмена. - File is deleted from S3 - Файл удален с S3 + Файл удален с S3 diff --git a/translations/Internationalization_sk.ts b/translations/Internationalization_sk.ts index 4e0e83d2..292a2eb5 100644 --- a/translations/Internationalization_sk.ts +++ b/translations/Internationalization_sk.ts @@ -444,26 +444,26 @@ Stlačte medzerník pre otvorenie postranného panelu. HistoryWidget - Screenshots history + Latest Uploads - + Screenshots history is empty - + Copy URL Kopírovať URL - + URL copied to clipboard. URL skopírovaná do schránky. - + Open in browser @@ -486,37 +486,49 @@ Stlačte medzerník pre otvorenie postranného panelu. - - Deleting Image + + S3 Creds URL is not found in your configuration file - + Copy URL Kopírovať URL - + Open URL Otvoriť URL - + + Delete image + Vymazať obrázok + + + Image to Clipboard. Obrázok do schránky. - + Unable to open the URL. Nepodarilo sa otvoriť URL. - + + URL copied to clipboard. URL skopírovaná do schránky. - + + + Deleting image... + + + + Screenshot copied to clipboard. Snímka obrazovky bola skopírovaná do schránky. @@ -813,16 +825,10 @@ Stlačte medzerník pre otvorenie postranného panelu. Chyba pri ukladaní - URL copied to clipboard. URL skopírovaná do schránky. - - - File is deleted from S3 - - RectangleTool diff --git a/translations/Internationalization_sr.ts b/translations/Internationalization_sr.ts index 2d66a513..fa8a97b9 100644 --- a/translations/Internationalization_sr.ts +++ b/translations/Internationalization_sr.ts @@ -444,26 +444,26 @@ Press Space to open the side panel. HistoryWidget - Screenshots history + Latest Uploads - + Screenshots history is empty - + Copy URL Запамти интернет адресу - + URL copied to clipboard. Интернет адреса је сачувана у привременој меморији. - + Open in browser @@ -486,37 +486,49 @@ Press Space to open the side panel. - - Deleting Image + + S3 Creds URL is not found in your configuration file - + Copy URL Запамти интернет адресу - + Open URL Посети интернет адресу - + + Delete image + Избриши слику + + + Image to Clipboard. Сачувај у привремену меморију. - + Unable to open the URL. Нисам успео да посетим интернет адресу. - + + URL copied to clipboard. Интернет адреса је сачувана у привременој меморији. - + + + Deleting image... + + + + Screenshot copied to clipboard. Слика је сачувана у привременој меморији. @@ -813,16 +825,10 @@ Press Space to open the side panel. Нисам успео са сачувам - URL copied to clipboard. Интернет адреса је сачувана у привременој меморији. - - - File is deleted from S3 - - RectangleTool diff --git a/translations/Internationalization_tr.ts b/translations/Internationalization_tr.ts index a77e882a..d64c51e4 100644 --- a/translations/Internationalization_tr.ts +++ b/translations/Internationalization_tr.ts @@ -444,26 +444,26 @@ Yan paneli açmak için Boşluk tuşuna basın. HistoryWidget - Screenshots history + Latest Uploads - + Screenshots history is empty - + Copy URL URL Kopyala - + URL copied to clipboard. URL panoya kopyalandı. - + Open in browser @@ -486,37 +486,49 @@ Yan paneli açmak için Boşluk tuşuna basın. - - Deleting Image + + S3 Creds URL is not found in your configuration file - + Copy URL URL Kopyala - + Open URL URL Aç - + + Delete image + Resmi sil + + + Image to Clipboard. Resim Pano'ya. - + Unable to open the URL. URL açılamıyor. - + + URL copied to clipboard. URL panoya kopyalandı. - + + + Deleting image... + + + + Screenshot copied to clipboard. Ekran görüntüsü panoya kopyalandı. @@ -813,16 +825,10 @@ Yan paneli açmak için Boşluk tuşuna basın. Yazma mümkün değil - URL copied to clipboard. URL panoya kopyalandı. - - - File is deleted from S3 - - RectangleTool diff --git a/translations/Internationalization_uk.ts b/translations/Internationalization_uk.ts index 85ee98a7..02617ecb 100644 --- a/translations/Internationalization_uk.ts +++ b/translations/Internationalization_uk.ts @@ -451,31 +451,35 @@ Press Space to open the side panel. HistoryWidget - Screenshots history - Історія скріншотів + Історія скріншотів Screenshots history is epmty Історія скріншотів пуста - + + Latest Uploads + Останні завантаження + + + Screenshots history is empty Історія скріншотів пуста - + Copy URL Скопіювати URL - + URL copied to clipboard. URL скопійовано до буферу обміну. - + Open in browser Відкрити у браузері @@ -502,41 +506,53 @@ Press Space to open the side panel. Видалити скріншот з S3 - Deleting Image - Видалити скіншот + Видалити скіншот - + + S3 Creds URL is not found in your configuration file + Параметри доступів до S3 не знайдені у конфігураціонному файлі + + + Copy URL Скопіювати URL - + Open URL Відкрити URL + Delete image - Видалити зображення + Видалити зображення - + Image to Clipboard. Зображення до буферу обміну. - + Unable to open the URL. Не вдалось відкрити URL. - + + URL copied to clipboard. URL скопійовано до буферу обміну. - + + + Deleting image... + Видалення скріншоту... + + + Screenshot copied to clipboard. Знімок скопійовано до буферу обміну. @@ -837,15 +853,13 @@ Press Space to open the side panel. Не вдалось зберегти - URL copied to clipboard. URL скопійовано до буферу обміну. - File is deleted from S3 - Файл видален з S3 + Файл видален з S3 diff --git a/translations/Internationalization_zh_CN.ts b/translations/Internationalization_zh_CN.ts index fc3d2850..dcb772de 100644 --- a/translations/Internationalization_zh_CN.ts +++ b/translations/Internationalization_zh_CN.ts @@ -445,26 +445,26 @@ Press Space to open the side panel. HistoryWidget - Screenshots history + Latest Uploads - + Screenshots history is empty - + Copy URL 复制链接 - + URL copied to clipboard. 复制链接到剪贴板。 - + Open in browser @@ -487,37 +487,49 @@ Press Space to open the side panel. - - Deleting Image + + S3 Creds URL is not found in your configuration file - + Copy URL 复制链接 - + Open URL 打开链接 - + + Delete image + 删除图像 + + + Image to Clipboard. 保存文件到剪贴板。 - + Unable to open the URL. 无法打开此链接。 - + + URL copied to clipboard. 复制链接到剪贴板。 - + + + Deleting image... + + + + Screenshot copied to clipboard. 截图复制到剪贴板。 @@ -814,16 +826,10 @@ Press Space to open the side panel. 无法写入 - URL copied to clipboard. 复制链接到剪贴板。 - - - File is deleted from S3 - - RectangleTool diff --git a/translations/Internationalization_zh_TW.ts b/translations/Internationalization_zh_TW.ts index dd72c6cc..2d0330fd 100644 --- a/translations/Internationalization_zh_TW.ts +++ b/translations/Internationalization_zh_TW.ts @@ -440,26 +440,26 @@ Press Space to open the side panel. HistoryWidget - Screenshots history + Latest Uploads - + Screenshots history is empty - + Copy URL 複製連結 - + URL copied to clipboard. 連結已複製到剪貼簿 - + Open in browser @@ -482,37 +482,49 @@ Press Space to open the side panel. - - Deleting Image + + S3 Creds URL is not found in your configuration file - + Copy URL 複製連結 - + Open URL 打開連結 - + + Delete image + + + + Image to Clipboard. 將檔案複製到剪貼簿 - + Unable to open the URL. 無法打開此連結 - + + URL copied to clipboard. 連結已複製到剪貼簿 - + + + Deleting image... + + + + Screenshot copied to clipboard. 截圖已複製到剪貼簿 @@ -809,16 +821,10 @@ Press Space to open the side panel. 無法寫入 - URL copied to clipboard. 連結已複製到剪貼簿 - - - File is deleted from S3 - - RectangleTool