summary refs log tree commit diff
path: root/src/MatrixClient.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-05-29 19:09:12 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-05-29 19:09:12 +0300
commit384fe7067ec6628ff4e09bc8f75cc3a4a69a1d29 (patch)
treee46628366e86607d067d5a58c38c5825aa6a8678 /src/MatrixClient.cc
parentUpdate tests (diff)
downloadnheko-384fe7067ec6628ff4e09bc8f75cc3a4a69a1d29.tar.xz
Set up translations
Diffstat (limited to 'src/MatrixClient.cc')
-rw-r--r--src/MatrixClient.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/MatrixClient.cc b/src/MatrixClient.cc

index 23cbbb5e..a605623f 100644 --- a/src/MatrixClient.cc +++ b/src/MatrixClient.cc
@@ -72,18 +72,18 @@ void MatrixClient::onLoginResponse(QNetworkReply *reply) int status_code = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt(); if (status_code == 403) { - emit loginError("Wrong username or password"); + emit loginError(tr("Wrong username or password")); return; } if (status_code == 404) { - emit loginError("Login endpoint was not found on the server"); + emit loginError(tr("Login endpoint was not found on the server")); return; } if (status_code >= 400) { qWarning() << "Login error: " << reply->errorString(); - emit loginError("An unknown error occured. Please try again."); + emit loginError(tr("An unknown error occured. Please try again.")); return; } @@ -97,7 +97,7 @@ void MatrixClient::onLoginResponse(QNetworkReply *reply) emit loginSuccess(response.getUserId(), server_.host(), response.getAccessToken()); } catch (DeserializationException &e) { qWarning() << "Malformed JSON response" << e.what(); - emit loginError("Malformed response. Possibly not a Matrix server"); + emit loginError(tr("Malformed response. Possibly not a Matrix server")); } }