diff options
author | Pino Toscano <pino@kde.org> | 2013-06-07 09:54:38 +0200 |
---|---|---|
committer | Pino Toscano <pino@kde.org> | 2013-06-07 09:54:38 +0200 |
commit | 43d4fc732abb294a89127ce55b80d7f78fd606c7 (patch) | |
tree | a36eee0653f737df1f8254d2f6a901c72b426cda /src/sync | |
parent | Fix behavior on unloaded sites (diff) | |
download | rekonq-43d4fc732abb294a89127ce55b80d7f78fd606c7.tar.xz |
i18n fixes
- remove string puzzles when possible
- remove exclamation marks
- remove contractions ("don't" -> "do not", etc)
- lowercase "NOT" (do not shout to the user)
- remove extra spaces, or add them where needed
- few style/spelling fixes
Diffstat (limited to 'src/sync')
-rw-r--r-- | src/sync/ftpsynchandler.cpp | 12 | ||||
-rw-r--r-- | src/sync/googlesynchandler.cpp | 18 | ||||
-rw-r--r-- | src/sync/operasynchandler.cpp | 24 |
3 files changed, 27 insertions, 27 deletions
diff --git a/src/sync/ftpsynchandler.cpp b/src/sync/ftpsynchandler.cpp index ad845d09..4c731db7 100644 --- a/src/sync/ftpsynchandler.cpp +++ b/src/sync/ftpsynchandler.cpp @@ -145,7 +145,7 @@ void FTPSyncHandler::onBookmarksStatFinished(KJob *job) KIO::Job *job = KIO::file_copy(_localBookmarksUrl, _remoteBookmarksUrl, -1, KIO::HideProgressInfo | KIO::Overwrite); connect(job, SIGNAL(finished(KJob*)), this, SLOT(onBookmarksSyncFinished(KJob*))); - emit syncStatus(Rekonq::Bookmarks, true, i18n("Remote bookmarks file does NOT exists. Exporting local copy...")); + emit syncStatus(Rekonq::Bookmarks, true, i18n("Remote bookmarks file does not exists. Exporting local copy...")); _firstTimeSynced = true; } else @@ -158,7 +158,7 @@ void FTPSyncHandler::onBookmarksStatFinished(KJob *job) KIO::Job *job = KIO::file_copy(_remoteBookmarksUrl, _localBookmarksUrl, -1, KIO::HideProgressInfo | KIO::Overwrite); connect(job, SIGNAL(finished(KJob*)), this, SLOT(onBookmarksSyncFinished(KJob*))); - emit syncStatus(Rekonq::Bookmarks, true, i18n("Remote bookmarks file exists! Syncing local copy...")); + emit syncStatus(Rekonq::Bookmarks, true, i18n("Remote bookmarks file exists. Syncing local copy...")); _firstTimeSynced = true; } } @@ -201,7 +201,7 @@ void FTPSyncHandler::onHistoryStatFinished(KJob *job) KIO::Job *job = KIO::file_copy(_localHistoryUrl, _remoteHistoryUrl, -1, KIO::HideProgressInfo | KIO::Overwrite); connect(job, SIGNAL(finished(KJob*)), this, SLOT(onHistorySyncFinished(KJob*))); - emit syncStatus(Rekonq::History, true, i18n("Remote history file does NOT exists. Exporting local copy...")); + emit syncStatus(Rekonq::History, true, i18n("Remote history file does not exists. Exporting local copy...")); _firstTimeSynced = true; } else @@ -214,7 +214,7 @@ void FTPSyncHandler::onHistoryStatFinished(KJob *job) KIO::Job *job = KIO::file_copy(_remoteHistoryUrl, _localHistoryUrl, -1, KIO::HideProgressInfo | KIO::Overwrite); connect(job, SIGNAL(finished(KJob*)), this, SLOT(onHistorySyncFinished(KJob*))); - emit syncStatus(Rekonq::History, true, i18n("Remote history file exists! Syncing local copy...")); + emit syncStatus(Rekonq::History, true, i18n("Remote history file exists. Syncing local copy...")); _firstTimeSynced = true; } } @@ -257,7 +257,7 @@ void FTPSyncHandler::onPasswordsStatFinished(KJob *job) KIO::Job *job = KIO::file_copy(_localPasswordsUrl, _remotePasswordsUrl, -1, KIO::HideProgressInfo | KIO::Overwrite); connect(job, SIGNAL(finished(KJob*)), this, SLOT(onPasswordsSyncFinished(KJob*))); - emit syncStatus(Rekonq::Passwords, true, i18n("Remote passwords file does NOT exists. Exporting local copy...")); + emit syncStatus(Rekonq::Passwords, true, i18n("Remote passwords file does not exists. Exporting local copy...")); _firstTimeSynced = true; } else @@ -270,7 +270,7 @@ void FTPSyncHandler::onPasswordsStatFinished(KJob *job) KIO::Job *job = KIO::file_copy(_remotePasswordsUrl, _localPasswordsUrl, -1, KIO::HideProgressInfo | KIO::Overwrite); connect(job, SIGNAL(finished(KJob*)), this, SLOT(onPasswordsSyncFinished(KJob*))); - emit syncStatus(Rekonq::Passwords, true, i18n("Remote passwords file exists! Syncing local copy...")); + emit syncStatus(Rekonq::Passwords, true, i18n("Remote passwords file exists. Syncing local copy...")); _firstTimeSynced = true; } } diff --git a/src/sync/googlesynchandler.cpp b/src/sync/googlesynchandler.cpp index f2e23da8..44388803 100644 --- a/src/sync/googlesynchandler.cpp +++ b/src/sync/googlesynchandler.cpp @@ -83,12 +83,12 @@ void GoogleSyncHandler::initialLoadAndCheck() if (ReKonfig::syncHistory()) { - emit syncStatus(Rekonq::History, false, i18n("Not supported!")); + emit syncStatus(Rekonq::History, false, i18n("Not supported")); } if (ReKonfig::syncHistory()) { - emit syncStatus(Rekonq::Passwords, false, i18n("Not supported!")); + emit syncStatus(Rekonq::Passwords, false, i18n("Not supported")); } } @@ -111,7 +111,7 @@ bool GoogleSyncHandler::syncRelativeEnabled(bool check) void GoogleSyncHandler::syncHistory() { kDebug() << "Syncing history not supported!"; - emit syncStatus(Rekonq::History, false, i18n("Syncing history not supported!")); + emit syncStatus(Rekonq::History, false, i18n("Syncing history not supported")); emit syncHistoryFinished(false); } @@ -119,7 +119,7 @@ void GoogleSyncHandler::syncHistory() void GoogleSyncHandler::syncPasswords() { kDebug() << "Syncing passwords not supported!"; - emit syncStatus(Rekonq::Passwords, false, i18n("Syncing passwords not supported!")); + emit syncStatus(Rekonq::Passwords, false, i18n("Syncing passwords not supported")); emit syncPasswordsFinished(false); } @@ -141,7 +141,7 @@ void GoogleSyncHandler::startLogin() if (ReKonfig::syncUser().isEmpty() || ReKonfig::syncPass().isEmpty()) { kDebug() << "No username or password!"; - emit syncStatus(Rekonq::Bookmarks, false, i18n("No username or password!")); + emit syncStatus(Rekonq::Bookmarks, false, i18n("No username or password")); emit syncBookmarksFinished(false); return; } @@ -161,7 +161,7 @@ void GoogleSyncHandler::loadFinished(bool ok) if (!ok) { kDebug() << "Error loading: " << _webPage.mainFrame()->url(); - emit syncStatus(Rekonq::Bookmarks, false, i18n("Error loading: " + _webPage.mainFrame()->url().toEncoded())); + emit syncStatus(Rekonq::Bookmarks, false, i18n("Error loading: %1", _webPage.mainFrame()->url().toEncoded())); _isSyncing = false; return; @@ -201,7 +201,7 @@ void GoogleSyncHandler::loadFinished(bool ok) } else if (path == QL1S("/ServiceLoginAuth") ) { - emit syncStatus(Rekonq::Bookmarks, false, i18n("Login failed!")); + emit syncStatus(Rekonq::Bookmarks, false, i18n("Login failed")); _isSyncing = false; } else if (path == QL1S("/bookmarks/mark") ) @@ -260,7 +260,7 @@ void GoogleSyncHandler::loadFinished(bool ok) else if (path == QL1S("/Logout") ) { //Session finished - emit syncStatus(Rekonq::Bookmarks, true, i18n("Done!")); + emit syncStatus(Rekonq::Bookmarks, true, i18n("Done")); emit syncBookmarksFinished(true); _isSyncing = false; } @@ -299,7 +299,7 @@ void GoogleSyncHandler::fetchingBookmarksFinished() { //Add bookmark kDebug() << "Add bookmark"; - emit syncStatus(Rekonq::Bookmarks, true, i18n("Adding bookmark ")); + emit syncStatus(Rekonq::Bookmarks, true, i18n("Adding bookmark")); root.addBookmark(title.isEmpty() ? url : title, KUrl(url)); manager->manager()->emitChanged(root); } diff --git a/src/sync/operasynchandler.cpp b/src/sync/operasynchandler.cpp index d603f381..0f39f4ab 100644 --- a/src/sync/operasynchandler.cpp +++ b/src/sync/operasynchandler.cpp @@ -86,12 +86,12 @@ void OperaSyncHandler::initialLoadAndCheck() if (ReKonfig::syncHistory()) { - emit syncStatus(Rekonq::History, false, i18n("Not supported!")); + emit syncStatus(Rekonq::History, false, i18n("Not supported")); } if (ReKonfig::syncHistory()) { - emit syncStatus(Rekonq::Passwords, false, i18n("Not supported!")); + emit syncStatus(Rekonq::Passwords, false, i18n("Not supported")); } } @@ -114,7 +114,7 @@ bool OperaSyncHandler::syncRelativeEnabled(bool check) void OperaSyncHandler::syncHistory() { kDebug() << "Syncing history not supported!"; - emit syncStatus(Rekonq::History, false, i18n("Syncing history not supported!")); + emit syncStatus(Rekonq::History, false, i18n("Syncing history not supported")); emit syncHistoryFinished(false); } @@ -122,7 +122,7 @@ void OperaSyncHandler::syncHistory() void OperaSyncHandler::syncPasswords() { kDebug() << "Syncing passwords not supported!"; - emit syncStatus(Rekonq::Passwords, false, i18n("Syncing passwords not supported!")); + emit syncStatus(Rekonq::Passwords, false, i18n("Syncing passwords not supported")); emit syncPasswordsFinished(false); } @@ -144,7 +144,7 @@ void OperaSyncHandler::startLogin() if (ReKonfig::syncUser().isEmpty() || ReKonfig::syncPass().isEmpty()) { kDebug() << "No username or password!"; - emit syncStatus(Rekonq::Bookmarks, false, i18n("No username or password!")); + emit syncStatus(Rekonq::Bookmarks, false, i18n("No username or password")); emit syncBookmarksFinished(false); return; } @@ -169,7 +169,7 @@ void OperaSyncHandler::startLogin() if (_qoauth.error() != QOAuth::NoError) { kDebug() << "Error occurred while fetching request tokens. Error code is : " << _qoauth.error(); - emit syncStatus(Rekonq::Bookmarks, false, i18n("OAuth : Error fetching request token.")); + emit syncStatus(Rekonq::Bookmarks, false, i18n("OAuth: Error fetching request token")); _isSyncing = false; return; } @@ -199,7 +199,7 @@ void OperaSyncHandler::loadFinished(bool ok) if (!ok) { kDebug() << "Error loading: " << _webPage.mainFrame()->url(); - emit syncStatus(Rekonq::Bookmarks, false, i18n("Error loading: " + _webPage.mainFrame()->url().toEncoded())); + emit syncStatus(Rekonq::Bookmarks, false, i18n("Error loading: %1", _webPage.mainFrame()->url().toEncoded())); _isSyncing = false; return; @@ -242,14 +242,14 @@ void OperaSyncHandler::loadFinished(bool ok) kDebug() << "OAuth verifier code is : " << verifier; authParams.insert("oauth_verifier", verifier); - emit syncStatus(Rekonq::Bookmarks, true, i18n("OAuth : Sending verification code.")); + emit syncStatus(Rekonq::Bookmarks, true, i18n("OAuth: Sending verification code")); QOAuth::ParamMap resultParam = _qoauth.accessToken("https://auth.opera.com/service/oauth/access_token", QOAuth::POST, _requestToken, _requestTokenSecret, QOAuth::HMAC_SHA1, authParams); if (_qoauth.error() != QOAuth::NoError) { kDebug() << "Error occurred while fetching access tokens. Error code is : " << _qoauth.error(); - emit syncStatus(Rekonq::Bookmarks, false, i18n("OAuth : Error fetching access token.")); + emit syncStatus(Rekonq::Bookmarks, false, i18n("OAuth: Error fetching access token")); _isSyncing = false; return; } @@ -268,7 +268,7 @@ void OperaSyncHandler::loadFinished(bool ok) else if (_doLogin == false) { //Login failed - emit syncStatus(Rekonq::Bookmarks, false, i18n("Login failed!")); + emit syncStatus(Rekonq::Bookmarks, false, i18n("Login failed")); kDebug() << "Login failed!"; _isSyncing = false; } @@ -345,7 +345,7 @@ void OperaSyncHandler::fetchBookmarksResultSlot(KJob* job) if (_mode == RECEIVE_CHANGES) { handleResponse(responseList, root); - emit syncStatus(Rekonq::Bookmarks, true, i18n("Done!")); + emit syncStatus(Rekonq::Bookmarks, true, i18n("Done")); // _isSyncing = false; _mode = SEND_CHANGES; } @@ -910,7 +910,7 @@ void OperaSyncHandler::decreaseRequestCount() if (_requestCount <= 0) { - emit syncStatus(Rekonq::Bookmarks, true, i18n("Done!")); + emit syncStatus(Rekonq::Bookmarks, true, i18n("Done")); _isSyncing = false; } } |