l10n: Replace apostrophe with double quotation
authorValdnet <47037905+Valdnet@users.noreply.github.com>
Wed, 28 Jul 2021 19:35:13 +0000 (21:35 +0200)
committerallexzander (Rebase PR Action) <allexzander@users.noreply.github.com>
Fri, 30 Jul 2021 06:21:05 +0000 (06:21 +0000)
Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
18 files changed:
src/common/filesystembase.cpp
src/gui/authenticationdialog.cpp
src/gui/cloudproviders/cloudproviderwrapper.cpp
src/gui/creds/flow2auth.cpp
src/gui/creds/httpcredentialsgui.cpp
src/gui/folder.cpp
src/gui/folderman.cpp
src/gui/folderstatusmodel.cpp
src/gui/folderwizard.cpp
src/gui/ignorelisteditor.cpp
src/gui/ignorelisttablewidget.cpp
src/gui/owncloudgui.cpp
src/gui/owncloudsetupwizard.cpp
src/gui/shareusergroupwidget.cpp
src/gui/wizard/owncloudadvancedsetuppage.cpp
src/libsync/discovery.cpp
src/libsync/filesystem.cpp
src/libsync/logger.cpp

index 78c94fe77c9f3d54d6369849fb036fd164373326..8dda0a9d4b14ac190aff71f16b739023e64f3644 100644 (file)
@@ -395,13 +395,13 @@ bool FileSystem::moveToTrash(const QString &fileName, QString *errorString)
             suffix_number++;
         }
         if (!file.rename(f.absoluteFilePath(), path + QString::number(suffix_number))) { // rename(file old path, file trash path)
-            *errorString = QCoreApplication::translate("FileSystem", "Could not move '%1' to '%2'")
+            *errorString = QCoreApplication::translate("FileSystem", "Could not move \"%1\" to \"%1\"")
                                .arg(f.absoluteFilePath(), path + QString::number(suffix_number));
             return false;
         }
     } else {
         if (!file.rename(f.absoluteFilePath(), trashFilePath + f.fileName())) { // rename(file old path, file trash path)
-            *errorString = QCoreApplication::translate("FileSystem", "Could not move '%1' to '%2'")
+            *errorString = QCoreApplication::translate("FileSystem", "Could not move \"%1\" to \"%1\"")
                                .arg(f.absoluteFilePath(), trashFilePath + f.fileName());
             return false;
         }
index c04176e1582d10948604af29700b66fe50a2328f..1cc8e95ee4285771dedfb493556785bf71cbc3dd 100644 (file)
@@ -29,7 +29,7 @@ AuthenticationDialog::AuthenticationDialog(const QString &realm, const QString &
 {
     setWindowTitle(tr("Authentication Required"));
     auto *lay = new QVBoxLayout(this);
-    auto *label = new QLabel(tr("Enter username and password for '%1' at %2.").arg(realm, domain));
+    auto *label = new QLabel(tr("Enter username and password for \"%1\" at %2.").arg(realm, domain));
     label->setTextFormat(Qt::PlainText);
     lay->addWidget(label);
 
index bdfce741d0ad44cca198585190f31f6018e21291..04ae01c85af04283139ea931d849da5525e60f45 100644 (file)
@@ -119,7 +119,7 @@ void CloudProviderWrapper::slotUpdateProgress(const QString &folder, const Progr
     // Build status details text
     QString msg;
     if (!progress._currentDiscoveredRemoteFolder.isEmpty()) {
-        msg =  tr("Checking for changes in '%1'").arg(progress._currentDiscoveredRemoteFolder);
+        msg =  tr("Checking for changes in \"%1\"").arg(progress._currentDiscoveredRemoteFolder);
     } else if (progress.totalSize() == 0) {
         qint64 currentFile = progress.currentFile();
         qint64 totalFileCount = qMax(progress.totalFiles(), currentFile);
index 4eb626d3c7fc62bf04854dcc685b7c171885dba0..b94de0afd858f07806e9abfebcfe5ca86103ec18 100644 (file)
@@ -115,7 +115,7 @@ void Flow2Auth::fetchNewToken(const TokenAction action)
                 errorReason = tr("Error returned from the server: <em>%1</em>")
                                   .arg(errorFromJson.toHtmlEscaped());
             } else if (reply->error() != QNetworkReply::NoError) {
-                errorReason = tr("There was an error accessing the 'token' endpoint: <br><em>%1</em>")
+                errorReason = tr("There was an error accessing the \"token\" endpoint: <br><em>%1</em>")
                                   .arg(reply->errorString().toHtmlEscaped());
             } else if (jsonParseError.error != QJsonParseError::NoError) {
                 errorReason = tr("Could not parse the JSON returned from the server: <br><em>%1</em>")
@@ -223,7 +223,7 @@ void Flow2Auth::slotPollTimerTimeout()
                 errorReason = tr("Error returned from the server: <em>%1</em>")
                                   .arg(errorFromJson.toHtmlEscaped());
             } else if (reply->error() != QNetworkReply::NoError) {
-                errorReason = tr("There was an error accessing the 'token' endpoint: <br><em>%1</em>")
+                errorReason = tr("There was an error accessing the \"token\" endpoint: <br><em>%1</em>")
                                   .arg(reply->errorString().toHtmlEscaped());
             } else if (jsonParseError.error != QJsonParseError::NoError) {
                 errorReason = tr("Could not parse the JSON returned from the server: <br><em>%1</em>")
index f8e3e5f9bf67a46da53659f8319a6f5d85ad848a..7e574b8f7e53fc864588c80d72eacf4b62e8c132 100644 (file)
@@ -108,7 +108,7 @@ void HttpCredentialsGui::showDialog()
     }
     if (!_fetchErrorString.isEmpty()) {
         msg += QLatin1String("<br>")
-            + tr("Reading from keychain failed with error: '%1'")
+            + tr("Reading from keychain failed with error: \"%1\"")
                   .arg(Utility::escape(_fetchErrorString))
             + QLatin1String("<br>");
     }
index 18908dd6964c46ee5f4aff607bb81d91b044b9bf..b5bc8007c8d56e2a68944a6691848de46a672cd0 100644 (file)
@@ -1252,12 +1252,12 @@ void Folder::slotAboutToRemoveAllFiles(SyncFileItem::Direction dir, std::functio
         return;
     }
 
-    const QString msg = dir == SyncFileItem::Down ? tr("All files in the sync folder '%1' folder were deleted on the server.\n"
+    const QString msg = dir == SyncFileItem::Down ? tr("All files in the sync folder \"%1\" folder were deleted on the server.\n"
                                                  "These deletes will be synchronized to your local sync folder, making such files "
                                                  "unavailable unless you have a right to restore. \n"
                                                  "If you decide to restore the files, they will be re-synced with the server if you have rights to do so.\n"
                                                  "If you decide to delete the files, they will be unavailable to you, unless you are the owner.")
-                                            : tr("All the files in your local sync folder '%1' were deleted. These deletes will be "
+                                            : tr("All the files in your local sync folder \"%1\" were deleted. These deletes will be "
                                                  "synchronized with your server, making such files unavailable unless restored.\n"
                                                  "Are you sure you want to sync those actions with the server?\n"
                                                  "If this was an accident and you decide to keep your files, they will be re-synced from the server.");
index 03268939ce67b28f5e4718c20a09d4d828b46324..7f7f499c068c78ff1f9d67ac2d1824559d82a0a2 100644 (file)
@@ -387,7 +387,7 @@ bool FolderMan::ensureJournalGone(const QString &journalDbFile)
     while (QFile::exists(journalDbFile) && !QFile::remove(journalDbFile)) {
         qCWarning(lcFolderMan) << "Could not remove old db file at" << journalDbFile;
         int ret = QMessageBox::warning(nullptr, tr("Could not reset folder state"),
-            tr("An old sync journal '%1' was found, "
+            tr("An old sync journal \"%1\" was found, "
                "but could not be removed. Please make sure "
                "that no application is currently using it.")
                 .arg(QDir::fromNativeSeparators(QDir::cleanPath(journalDbFile))),
index dc4cf2e371918cdcd4f4a64abbc5382f1f12f32b..3ffc048497c6b2b88e02f6d6460c120143c2bf69 100644 (file)
@@ -970,11 +970,11 @@ void FolderStatusModel::slotSetProgress(const ProgressInfo &progress)
 
     if (progress.status() == ProgressInfo::Discovery) {
         if (!progress._currentDiscoveredRemoteFolder.isEmpty()) {
-            pi->_overallSyncString = tr("Checking for changes in remote '%1'").arg(progress._currentDiscoveredRemoteFolder);
+            pi->_overallSyncString = tr("Checking for changes in remote \"%1\"").arg(progress._currentDiscoveredRemoteFolder);
             emit dataChanged(index(folderIndex), index(folderIndex), roles);
             return;
         } else if (!progress._currentDiscoveredLocalFolder.isEmpty()) {
-            pi->_overallSyncString = tr("Checking for changes in local '%1'").arg(progress._currentDiscoveredLocalFolder);
+            pi->_overallSyncString = tr("Checking for changes in local \"%1\"").arg(progress._currentDiscoveredLocalFolder);
             emit dataChanged(index(folderIndex), index(folderIndex), roles);
             return;
         }
index e8a3231a010eefa3f7af9b8c82d62d0e65ba3a60..b55cb58e961b5ded4be46264a6642262e3b6f298 100644 (file)
@@ -181,7 +181,7 @@ void FolderWizardRemotePath::slotAddRemoteFolder()
     auto *dlg = new QInputDialog(this);
 
     dlg->setWindowTitle(tr("Create Remote Folder"));
-    dlg->setLabelText(tr("Enter the name of the new folder to be created below '%1':")
+    dlg->setLabelText(tr("Enter the name of the new folder to be created below \"%1\":")
                           .arg(parent));
     dlg->open(this, SLOT(slotCreateRemoteFolder(QString)));
     dlg->setAttribute(Qt::WA_DeleteOnClose);
index 6e5a3d784d4998de69871c7b696a3da251b4b230..aba85c5cbe3c30ef611126514f2854d3587856c5 100644 (file)
@@ -37,7 +37,7 @@ IgnoreListEditor::IgnoreListEditor(QWidget *parent)
 
     ConfigFile cfgFile;
     //FIXME This is not true. The entries are hardcoded below in setupTableReadOnlyItems
-    readOnlyTooltip = tr("This entry is provided by the system at '%1' "
+    readOnlyTooltip = tr("This entry is provided by the system at \"%1\" "
                          "and cannot be modified in this view.")
                           .arg(QDir::toNativeSeparators(cfgFile.excludeFile(ConfigFile::SystemScope)));
 
index a9f5dae5b8e69289d47efe7b7a59f67d1d4818d3..8e93630a721f41506334d469d0aa1fd9ad5d667a 100644 (file)
@@ -91,7 +91,7 @@ void IgnoreListTableWidget::slotWriteIgnoreFile(const QString & file)
         }
     } else {
         QMessageBox::warning(this, tr("Could not open file"),
-            tr("Cannot write changes to '%1'.").arg(file));
+            tr("Cannot write changes to \"%1\".").arg(file));
     }
     ignores.close(); //close the file before reloading stuff.
 
index 2ea6d9052923e78dcd4b2918661c3c4c8b396fcf..f4aeef11a0d3b051cd44c52499fb194cdc3806a9 100644 (file)
@@ -415,10 +415,10 @@ void ownCloudGui::slotUpdateProgress(const QString &folder, const ProgressInfo &
     if (progress.status() == ProgressInfo::Discovery) {
 #if 0
         if (!progress._currentDiscoveredRemoteFolder.isEmpty()) {
-            _actionStatus->setText(tr("Checking for changes in remote '%1'")
+            _actionStatus->setText(tr("Checking for changes in remote \"%1\"")
                                        .arg(progress._currentDiscoveredRemoteFolder));
         } else if (!progress._currentDiscoveredLocalFolder.isEmpty()) {
-            _actionStatus->setText(tr("Checking for changes in local '%1'")
+            _actionStatus->setText(tr("Checking for changes in local \"%1\"")
                                        .arg(progress._currentDiscoveredLocalFolder));
         }
 #endif
index 2972f0b11cad25f72bcd75263f32d660870e5fe5..ce0dd773fb4e76611a3876057b9080c924f0e224 100644 (file)
@@ -376,7 +376,7 @@ void OwncloudSetupWizard::slotAuthError()
             return;
         }
         errorMsg = tr("The authenticated request to the server was redirected to "
-                      "'%1'. The URL is bad, the server is misconfigured.")
+                      "\"%1\". The URL is bad, the server is misconfigured.")
                        .arg(Utility::escape(redirectUrl.toString()));
 
         // A 404 is actually a success: we were authorized to know that the folder does
index e6098c19e9e0a1b99b609f94dc0a36b0c389ea22..47e6ebc6cca0e986d04ccde28b661def7bd304c9 100644 (file)
@@ -334,7 +334,7 @@ void ShareUserGroupWidget::slotShareesReady()
 
     _pi_sharee.stopAnimation();
     if (_completerModel->rowCount() == 0) {
-        displayError(0, tr("No results for '%1'").arg(_completerModel->currentSearch()));
+        displayError(0, tr("No results for \"%1\"").arg(_completerModel->currentSearch()));
     }
 
     // if no rows are present in the model - complete() will hide the completer
index 59ebb955cf23f9e40315147997403df028aedd97..d3d7d9a5abab45fa0856aa5a16ae75fb91f8d284 100644 (file)
@@ -267,10 +267,10 @@ void OwncloudAdvancedSetupPage::updateStatus()
         if (_remoteFolder.isEmpty() || _remoteFolder == QLatin1String("/")) {
             t = "";
         } else {
-            t = Utility::escape(tr("%1 folder '%2' is synced to local folder '%3'")
+            t = Utility::escape(tr("%1 folder \"%2\" is synced to local folder \"%3\"")
                                     .arg(Theme::instance()->appName(), _remoteFolder,
                                         QDir::toNativeSeparators(locFolder)));
-            _ui.rSyncEverything->setText(tr("Sync the folder '%1'").arg(_remoteFolder));
+            _ui.rSyncEverything->setText(tr("Sync the folder \"%1\"").arg(_remoteFolder));
         }
 
         const bool dirNotEmpty(QDir(locFolder).entryList(QDir::AllEntries | QDir::NoDotAndDotDot).count() > 0);
index bd39c6ae8fed0624fcc6166e12bb77adae16ea1d..7ca23b807bb29c7f940de690cb8ce415558b5efc 100644 (file)
@@ -269,7 +269,7 @@ bool ProcessDirectoryJob::handleExcluded(const QString &path, const QString &loc
                     }
                 }
                 if (invalid) {
-                    item->_errorString = tr("File names containing the character '%1' are not supported on this file system.")
+                    item->_errorString = tr("File names containing the character \"%1\" are not supported on this file system.")
                                              .arg(QLatin1Char(invalid));
                 }
                 if (isInvalidPattern) {
@@ -1545,7 +1545,7 @@ DiscoverySingleDirectoryJob *ProcessDirectoryJob::startAsyncServerQuery()
                 emit this->finished();
             } else {
                 // Fatal for the root job since it has no SyncFileItem, or for the network errors
-                emit _discoveryData->fatalError(tr("Server replied with an error while reading directory '%1' : %2")
+                emit _discoveryData->fatalError(tr("Server replied with an error while reading directory \"%1\" : %2")
                     .arg(_currentFolder._server, results.error().message));
             }
         }
index 8f71d173b62fa69bcad9b0607c5c2ec1f3960cbd..af84f4d2fe2effde3d19d0638e3febf5d8be44a6 100644 (file)
@@ -155,7 +155,7 @@ bool FileSystem::removeRecursively(const QString &path, const std::function<void
                     onDeleted(di.filePath(), false);
             } else {
                 if (errors) {
-                    errors->append(QCoreApplication::translate("FileSystem", "Error removing '%1': %2")
+                    errors->append(QCoreApplication::translate("FileSystem", "Error removing \"%1\": %2")
                                        .arg(QDir::toNativeSeparators(di.filePath()), removeError));
                 }
                 qCWarning(lcFileSystem) << "Error removing " << di.filePath() << ':' << removeError;
@@ -171,7 +171,7 @@ bool FileSystem::removeRecursively(const QString &path, const std::function<void
                 onDeleted(path, true);
         } else {
             if (errors) {
-                errors->append(QCoreApplication::translate("FileSystem", "Could not remove folder '%1'")
+                errors->append(QCoreApplication::translate("FileSystem", "Could not remove folder \"%1\"")
                                    .arg(QDir::toNativeSeparators(path)));
             }
             qCWarning(lcFileSystem) << "Error removing folder" << path;
index 9a45e6059d1e7b4bff9d91877f7012e66a125ab8..acf50f6561c6fcc9b520374225eda53f8e7f4bdd 100644 (file)
@@ -192,7 +192,7 @@ void Logger::setLogFile(const QString &name)
     if (!openSucceeded) {
         locker.unlock(); // Just in case postGuiMessage has a qDebug()
         postGuiMessage(tr("Error"),
-            QString(tr("<nobr>File '%1'<br/>cannot be opened for writing.<br/><br/>"
+            QString(tr("<nobr>File \"%1\"<br/>cannot be opened for writing.<br/><br/>"
                        "The log output can <b>not</b> be saved!</nobr>"))
                 .arg(name));
         return;