From 9e486590169c117fec2ab83faac638ad3175e03d Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Wed, 27 Jan 2021 19:24:06 +0100 Subject: [PATCH] Add a few missing strings on the login page to translations --- resources/langs/nheko_cs.ts | 31 +++++++++++++++++++++++++++---- resources/langs/nheko_de.ts | 31 +++++++++++++++++++++++++++---- resources/langs/nheko_el.ts | 31 +++++++++++++++++++++++++++---- resources/langs/nheko_en.ts | 31 +++++++++++++++++++++++++++---- resources/langs/nheko_eo.ts | 31 +++++++++++++++++++++++++++---- resources/langs/nheko_et.ts | 31 +++++++++++++++++++++++++++---- resources/langs/nheko_fi.ts | 31 +++++++++++++++++++++++++++---- resources/langs/nheko_fr.ts | 31 +++++++++++++++++++++++++++---- resources/langs/nheko_hu.ts | 31 +++++++++++++++++++++++++++---- resources/langs/nheko_it.ts | 31 +++++++++++++++++++++++++++---- resources/langs/nheko_ja.ts | 31 +++++++++++++++++++++++++++---- resources/langs/nheko_ml.ts | 31 +++++++++++++++++++++++++++---- resources/langs/nheko_nl.ts | 31 +++++++++++++++++++++++++++---- resources/langs/nheko_pl.ts | 31 +++++++++++++++++++++++++++---- resources/langs/nheko_pt_PT.ts | 31 +++++++++++++++++++++++++++---- resources/langs/nheko_ro.ts | 31 +++++++++++++++++++++++++++---- resources/langs/nheko_ru.ts | 31 +++++++++++++++++++++++++++---- resources/langs/nheko_si.ts | 31 +++++++++++++++++++++++++++---- resources/langs/nheko_sv.ts | 31 +++++++++++++++++++++++++++---- resources/langs/nheko_zh_CN.ts | 31 +++++++++++++++++++++++++++---- src/LoginPage.cpp | 14 +++++++------- 21 files changed, 547 insertions(+), 87 deletions(-) diff --git a/resources/langs/nheko_cs.ts b/resources/langs/nheko_cs.ts index 54c956aa..22bbd88b 100644 --- a/resources/langs/nheko_cs.ts +++ b/resources/langs/nheko_cs.ts @@ -607,7 +607,12 @@ If Nheko fails to discover your homeserver, it will show you a field to enter th - + + Your password. + + + + Device name @@ -617,7 +622,17 @@ If Nheko fails to discover your homeserver, it will show you a field to enter th - + + Homeserver address + + + + + server.my:8787 + + + + The address that can be used to contact you homeservers client API. Example: https://server.my:8787 @@ -629,7 +644,15 @@ Example: https://server.my:8787 - + + + + + You have entered an invalid Matrix ID e.g @joe:matrix.org + + + + Autodiscovery failed. Received malformed response. @@ -774,7 +797,7 @@ Example: https://server.my:8787 - + Emoji diff --git a/resources/langs/nheko_de.ts b/resources/langs/nheko_de.ts index d1a83aec..6f0e6836 100644 --- a/resources/langs/nheko_de.ts +++ b/resources/langs/nheko_de.ts @@ -610,7 +610,12 @@ Wenn Nheko deinen Server nicht automatisch erkennen kann, wird es dich nach dem Passwort - + + Your password. + + + + Device name Gerätename @@ -620,7 +625,17 @@ Wenn Nheko deinen Server nicht automatisch erkennen kann, wird es dich nach dem Ein Name für dieses Gerät. Dieser wird der anderen Seite gezeigt, wenn das Gerät verifiziert wird. Wenn nichts angeben wird, wird einer generiert. - + + Homeserver address + + + + + server.my:8787 + + + + The address that can be used to contact you homeservers client API. Example: https://server.my:8787 Die Adresse unter der dein Heimserver erreichbar ist. @@ -633,7 +648,15 @@ Beispiel: https://mein.server:8787 ANMELDEN - + + + + + You have entered an invalid Matrix ID e.g @joe:matrix.org + + + + Autodiscovery failed. Received malformed response. Automatische Erkennung fehlgeschlagen. Antwort war fehlerhaft. @@ -778,7 +801,7 @@ Beispiel: https://mein.server:8787 Schreibe eine Nachricht… - + Emoji Emoji diff --git a/resources/langs/nheko_el.ts b/resources/langs/nheko_el.ts index 0d0070a0..e24539ce 100644 --- a/resources/langs/nheko_el.ts +++ b/resources/langs/nheko_el.ts @@ -607,7 +607,12 @@ If Nheko fails to discover your homeserver, it will show you a field to enter th Κωδικός - + + Your password. + + + + Device name @@ -617,7 +622,17 @@ If Nheko fails to discover your homeserver, it will show you a field to enter th - + + Homeserver address + + + + + server.my:8787 + + + + The address that can be used to contact you homeservers client API. Example: https://server.my:8787 @@ -629,7 +644,15 @@ Example: https://server.my:8787 ΕΙΣΟΔΟΣ - + + + + + You have entered an invalid Matrix ID e.g @joe:matrix.org + + + + Autodiscovery failed. Received malformed response. @@ -774,7 +797,7 @@ Example: https://server.my:8787 Γράψε ένα μήνυμα... - + Emoji diff --git a/resources/langs/nheko_en.ts b/resources/langs/nheko_en.ts index 5b5d544c..9c1239ee 100644 --- a/resources/langs/nheko_en.ts +++ b/resources/langs/nheko_en.ts @@ -610,7 +610,12 @@ If Nheko fails to discover your homeserver, it will show you a field to enter th Password - + + Your password. + + + + Device name Device name @@ -620,7 +625,17 @@ If Nheko fails to discover your homeserver, it will show you a field to enter th A name for this device, which will be shown to others, when verifying your devices. If none is provided a default is used. - + + Homeserver address + + + + + server.my:8787 + + + + The address that can be used to contact you homeservers client API. Example: https://server.my:8787 The address that can be used to contact you homeservers client API. @@ -633,7 +648,15 @@ Example: https://server.my:8787 LOGIN - + + + + + You have entered an invalid Matrix ID e.g @joe:matrix.org + + + + Autodiscovery failed. Received malformed response. Autodiscovery failed. Received malformed response. @@ -778,7 +801,7 @@ Example: https://server.my:8787 Write a message… - + Emoji Emoji diff --git a/resources/langs/nheko_eo.ts b/resources/langs/nheko_eo.ts index 3a58a4b5..b09d8240 100644 --- a/resources/langs/nheko_eo.ts +++ b/resources/langs/nheko_eo.ts @@ -608,7 +608,12 @@ If Nheko fails to discover your homeserver, it will show you a field to enter th Pasvorto - + + Your password. + + + + Device name Aparata nomo @@ -619,7 +624,17 @@ If Nheko fails to discover your homeserver, it will show you a field to enter th Nomo por ĉi tiu aparato, montrot al aliaj, kiam kontrolant viajn aparatojn. Se neniom provizitis, defaŭlto uzit. - + + Homeserver address + + + + + server.my:8787 + + + + The address that can be used to contact you homeservers client API. Example: https://server.my:8787 API should be valid for the EO translation of application programming interface. @@ -634,7 +649,15 @@ Ekzemplo: https://servisto.mia:8787 ENSALUTU - + + + + + You have entered an invalid Matrix ID e.g @joe:matrix.org + + + + Autodiscovery failed. Received malformed response. @@ -779,7 +802,7 @@ Ekzemplo: https://servisto.mia:8787 Skribu mesaĝon... - + Emoji diff --git a/resources/langs/nheko_et.ts b/resources/langs/nheko_et.ts index f446c903..133497ea 100644 --- a/resources/langs/nheko_et.ts +++ b/resources/langs/nheko_et.ts @@ -610,7 +610,12 @@ Kui Nheko ei suuda tuvastada sinu koduserverit, siis ta kuvab sulle andmevälja Salasõna - + + Your password. + + + + Device name Seadme nimi @@ -620,7 +625,17 @@ Kui Nheko ei suuda tuvastada sinu koduserverit, siis ta kuvab sulle andmevälja Selle seadme nimi, mida näidetakse verifitseerimise ajal teisele kasutajatele. Kui sa ise nime ei pane, siis kasutame automaatselt pandud nime. - + + Homeserver address + + + + + server.my:8787 + + + + The address that can be used to contact you homeservers client API. Example: https://server.my:8787 Aadress, mida sinu koduserveri kliendipoole API kasutab. @@ -633,7 +648,15 @@ Näiteks: https://server.minu:8787 LOGI SISSE - + + + + + You have entered an invalid Matrix ID e.g @joe:matrix.org + + + + Autodiscovery failed. Received malformed response. Koduserveri automaatne tuvastamine ei õnnestunud: päringuvastus oli vigane. @@ -778,7 +801,7 @@ Näiteks: https://server.minu:8787 Kirjuta sõnum… - + Emoji Emoji diff --git a/resources/langs/nheko_fi.ts b/resources/langs/nheko_fi.ts index 5be454a7..f4a518e5 100644 --- a/resources/langs/nheko_fi.ts +++ b/resources/langs/nheko_fi.ts @@ -607,7 +607,12 @@ If Nheko fails to discover your homeserver, it will show you a field to enter th Salasana - + + Your password. + + + + Device name Laitteen nimi @@ -617,7 +622,17 @@ If Nheko fails to discover your homeserver, it will show you a field to enter th - + + Homeserver address + + + + + server.my:8787 + + + + The address that can be used to contact you homeservers client API. Example: https://server.my:8787 @@ -629,7 +644,15 @@ Example: https://server.my:8787 KIRJAUDU - + + + + + You have entered an invalid Matrix ID e.g @joe:matrix.org + + + + Autodiscovery failed. Received malformed response. Palvelimen tietojen hakeminen epäonnistui: virheellinen vastaus. @@ -774,7 +797,7 @@ Example: https://server.my:8787 Kirjoita viesti… - + Emoji Emoji diff --git a/resources/langs/nheko_fr.ts b/resources/langs/nheko_fr.ts index e87fcfda..130bc004 100644 --- a/resources/langs/nheko_fr.ts +++ b/resources/langs/nheko_fr.ts @@ -610,7 +610,12 @@ Si Nheko n'arrive pas à trouver votre serveur, il vous proposera de l&apos Mot de passe - + + Your password. + + + + Device name Nom de l'appareil @@ -620,7 +625,17 @@ Si Nheko n'arrive pas à trouver votre serveur, il vous proposera de l&apos Un nom pour cet appareil, qui sera montré aux autres utilisateurs lorsque ceux-ci le vérifieront. Si aucun n'est fourni, un nom par défaut est utilisé. - + + Homeserver address + + + + + server.my:8787 + + + + The address that can be used to contact you homeservers client API. Example: https://server.my:8787 L'adresse qui peut être utilisée pour joindre l'API client de votre serveur. @@ -633,7 +648,15 @@ Exemple : https ://monserveur.example.com :8787 CONNEXION - + + + + + You have entered an invalid Matrix ID e.g @joe:matrix.org + + + + Autodiscovery failed. Received malformed response. Échec de la découverte automatique. Réponse mal formatée reçue. @@ -778,7 +801,7 @@ Exemple : https ://monserveur.example.com :8787 Écrivez un message… - + Emoji Émoji diff --git a/resources/langs/nheko_hu.ts b/resources/langs/nheko_hu.ts index cb911fdd..f05b5aee 100644 --- a/resources/langs/nheko_hu.ts +++ b/resources/langs/nheko_hu.ts @@ -610,7 +610,12 @@ Ha a Nheko nem tud rátalálni a homeszerveredre, meg fog jelenni egy mező, aho Jelszó - + + Your password. + + + + Device name Eszköznév @@ -620,7 +625,17 @@ Ha a Nheko nem tud rátalálni a homeszerveredre, meg fog jelenni egy mező, aho Egy név ennek az eszköznek, amely meg fog jelenni mások számára, amikor hitelesíted az eszközeidet. Ha nincs megadva semmi, egy alapértelmezett név lesz használva. - + + Homeserver address + + + + + server.my:8787 + + + + The address that can be used to contact you homeservers client API. Example: https://server.my:8787 A cím, melyen keresztül el lehet érni a homeszervered kliens API-jét. @@ -633,7 +648,15 @@ Példa: https://szerver.em:8787 BEJELENTKEZÉS - + + + + + You have entered an invalid Matrix ID e.g @joe:matrix.org + + + + Autodiscovery failed. Received malformed response. Az automatikus felderítés nem sikerült. Helytelen válasz érkezett. @@ -778,7 +801,7 @@ Példa: https://szerver.em:8787 Írj egy üzenetet… - + Emoji Hangulatjelek diff --git a/resources/langs/nheko_it.ts b/resources/langs/nheko_it.ts index ade3292d..e05cea70 100644 --- a/resources/langs/nheko_it.ts +++ b/resources/langs/nheko_it.ts @@ -610,7 +610,12 @@ Se Nheko non conclude la ricerca del tuo homeserver, ti mostrerà un campo in cu Password - + + Your password. + + + + Device name Nome del dispositivo @@ -620,7 +625,17 @@ Se Nheko non conclude la ricerca del tuo homeserver, ti mostrerà un campo in cu - + + Homeserver address + + + + + server.my:8787 + + + + The address that can be used to contact you homeservers client API. Example: https://server.my:8787 L'indirizzo che può essere usato per contattare le API client del tuo homeserver. @@ -633,7 +648,15 @@ Esempio: https://server.mio:8787 ACCEDI - + + + + + You have entered an invalid Matrix ID e.g @joe:matrix.org + + + + Autodiscovery failed. Received malformed response. Ricerca automatica fallita. Ricevuta risposta malformata. @@ -778,7 +801,7 @@ Esempio: https://server.mio:8787 Scrivi un messaggio… - + Emoji Emoji diff --git a/resources/langs/nheko_ja.ts b/resources/langs/nheko_ja.ts index 5b8689cb..47cb27b8 100644 --- a/resources/langs/nheko_ja.ts +++ b/resources/langs/nheko_ja.ts @@ -607,7 +607,12 @@ If Nheko fails to discover your homeserver, it will show you a field to enter th パスワード - + + Your password. + + + + Device name デバイス名 @@ -617,7 +622,17 @@ If Nheko fails to discover your homeserver, it will show you a field to enter th - + + Homeserver address + + + + + server.my:8787 + + + + The address that can be used to contact you homeservers client API. Example: https://server.my:8787 @@ -629,7 +644,15 @@ Example: https://server.my:8787 ログイン - + + + + + You have entered an invalid Matrix ID e.g @joe:matrix.org + + + + Autodiscovery failed. Received malformed response. 自動検出できませんでした。不正な形式の応答を受信しました。 @@ -774,7 +797,7 @@ Example: https://server.my:8787 メッセージを書く... - + Emoji 絵文字 diff --git a/resources/langs/nheko_ml.ts b/resources/langs/nheko_ml.ts index 68094c03..fcceacab 100644 --- a/resources/langs/nheko_ml.ts +++ b/resources/langs/nheko_ml.ts @@ -607,7 +607,12 @@ If Nheko fails to discover your homeserver, it will show you a field to enter th പാസ്‍വേഡ് - + + Your password. + + + + Device name ഉപകരണത്തിന്റെ പേര് @@ -617,7 +622,17 @@ If Nheko fails to discover your homeserver, it will show you a field to enter th - + + Homeserver address + + + + + server.my:8787 + + + + The address that can be used to contact you homeservers client API. Example: https://server.my:8787 @@ -629,7 +644,15 @@ Example: https://server.my:8787 - + + + + + You have entered an invalid Matrix ID e.g @joe:matrix.org + + + + Autodiscovery failed. Received malformed response. @@ -774,7 +797,7 @@ Example: https://server.my:8787 ഒരു സന്ദേശം എഴുതുക…. - + Emoji ഇമോജി diff --git a/resources/langs/nheko_nl.ts b/resources/langs/nheko_nl.ts index 44991967..d4f6e5f0 100644 --- a/resources/langs/nheko_nl.ts +++ b/resources/langs/nheko_nl.ts @@ -607,7 +607,12 @@ If Nheko fails to discover your homeserver, it will show you a field to enter th Wachtwoord - + + Your password. + + + + Device name @@ -617,7 +622,17 @@ If Nheko fails to discover your homeserver, it will show you a field to enter th - + + Homeserver address + + + + + server.my:8787 + + + + The address that can be used to contact you homeservers client API. Example: https://server.my:8787 @@ -629,7 +644,15 @@ Example: https://server.my:8787 INLOGGEN - + + + + + You have entered an invalid Matrix ID e.g @joe:matrix.org + + + + Autodiscovery failed. Received malformed response. @@ -774,7 +797,7 @@ Example: https://server.my:8787 Typ een bericht... - + Emoji diff --git a/resources/langs/nheko_pl.ts b/resources/langs/nheko_pl.ts index 9e4624c0..b0f83014 100644 --- a/resources/langs/nheko_pl.ts +++ b/resources/langs/nheko_pl.ts @@ -609,7 +609,12 @@ Jeżeli Nheko nie odnajdzie Twojego serwera domowego, wyświetli formularz umoż Hasło - + + Your password. + + + + Device name Nazwa urządzenia @@ -619,7 +624,17 @@ Jeżeli Nheko nie odnajdzie Twojego serwera domowego, wyświetli formularz umoż Nazwa dla tego urządzenia, będzie ona widoczna dla innych użytkowników, kiedy będą weryfikować Twoje urządzenia. Jeżeli żadna nie jest podana, używana jest domyślna. - + + Homeserver address + + + + + server.my:8787 + + + + The address that can be used to contact you homeservers client API. Example: https://server.my:8787 @@ -631,7 +646,15 @@ Example: https://server.my:8787 ZALOGUJ - + + + + + You have entered an invalid Matrix ID e.g @joe:matrix.org + + + + Autodiscovery failed. Received malformed response. Automatyczne odkrywanie zakończone niepowodzeniem. Otrzymano nieprawidłową odpowiedź. @@ -776,7 +799,7 @@ Example: https://server.my:8787 Napisz wiadomość… - + Emoji Emoji diff --git a/resources/langs/nheko_pt_PT.ts b/resources/langs/nheko_pt_PT.ts index 19520429..31be9ea9 100644 --- a/resources/langs/nheko_pt_PT.ts +++ b/resources/langs/nheko_pt_PT.ts @@ -607,7 +607,12 @@ If Nheko fails to discover your homeserver, it will show you a field to enter th - + + Your password. + + + + Device name @@ -617,7 +622,17 @@ If Nheko fails to discover your homeserver, it will show you a field to enter th - + + Homeserver address + + + + + server.my:8787 + + + + The address that can be used to contact you homeservers client API. Example: https://server.my:8787 @@ -629,7 +644,15 @@ Example: https://server.my:8787 - + + + + + You have entered an invalid Matrix ID e.g @joe:matrix.org + + + + Autodiscovery failed. Received malformed response. @@ -774,7 +797,7 @@ Example: https://server.my:8787 - + Emoji diff --git a/resources/langs/nheko_ro.ts b/resources/langs/nheko_ro.ts index 66106fb2..7b36ea59 100644 --- a/resources/langs/nheko_ro.ts +++ b/resources/langs/nheko_ro.ts @@ -610,7 +610,12 @@ Dacă Nheko nu vă poate găsi homeserverul, vă va arăta un câmp pentru intro Parolă - + + Your password. + + + + Device name Nume dispozitiv @@ -620,7 +625,17 @@ Dacă Nheko nu vă poate găsi homeserverul, vă va arăta un câmp pentru intro - + + Homeserver address + + + + + server.my:8787 + + + + The address that can be used to contact you homeservers client API. Example: https://server.my:8787 Adresa la care se poate contacta APIul homeserverului dumneavoastră. @@ -633,7 +648,15 @@ Exemplu: https://serverul.meu:8787 CONECTARE - + + + + + You have entered an invalid Matrix ID e.g @joe:matrix.org + + + + Autodiscovery failed. Received malformed response. Autodescoperirea a eșuat. Răspunsul primit este defectuos. @@ -778,7 +801,7 @@ Exemplu: https://serverul.meu:8787 - + Emoji diff --git a/resources/langs/nheko_ru.ts b/resources/langs/nheko_ru.ts index c3e18044..716c1657 100644 --- a/resources/langs/nheko_ru.ts +++ b/resources/langs/nheko_ru.ts @@ -610,7 +610,12 @@ If Nheko fails to discover your homeserver, it will show you a field to enter th Пароль - + + Your password. + + + + Device name Имя устройства @@ -620,7 +625,17 @@ If Nheko fails to discover your homeserver, it will show you a field to enter th Имя устройства, которое будет отображаться для других, когда верифицируют ваше устройство. Если не предоставить имя устройста,то будет использоваться имя по умолчанию. - + + Homeserver address + + + + + server.my:8787 + + + + The address that can be used to contact you homeservers client API. Example: https://server.my:8787 Адрес который будет использоваться для связи клиентского API вашего домашнего сервера. @@ -633,7 +648,15 @@ Example: https://server.my:8787 ВОЙТИ - + + + + + You have entered an invalid Matrix ID e.g @joe:matrix.org + + + + Autodiscovery failed. Received malformed response. Автообноружение не удалось. Получен поврежденный ответ. @@ -778,7 +801,7 @@ Example: https://server.my:8787 Написать сообщение… - + Emoji Эмоджи diff --git a/resources/langs/nheko_si.ts b/resources/langs/nheko_si.ts index 6c9cc39e..6366b35a 100644 --- a/resources/langs/nheko_si.ts +++ b/resources/langs/nheko_si.ts @@ -607,7 +607,12 @@ If Nheko fails to discover your homeserver, it will show you a field to enter th - + + Your password. + + + + Device name @@ -617,7 +622,17 @@ If Nheko fails to discover your homeserver, it will show you a field to enter th - + + Homeserver address + + + + + server.my:8787 + + + + The address that can be used to contact you homeservers client API. Example: https://server.my:8787 @@ -629,7 +644,15 @@ Example: https://server.my:8787 - + + + + + You have entered an invalid Matrix ID e.g @joe:matrix.org + + + + Autodiscovery failed. Received malformed response. @@ -774,7 +797,7 @@ Example: https://server.my:8787 - + Emoji diff --git a/resources/langs/nheko_sv.ts b/resources/langs/nheko_sv.ts index 4fcfd38d..18266ad4 100644 --- a/resources/langs/nheko_sv.ts +++ b/resources/langs/nheko_sv.ts @@ -610,7 +610,12 @@ Om Nheko inte kan hitta din hemserver automatiskt kommer ett fält dyka upp där Lösenord - + + Your password. + + + + Device name Enhetsnamn @@ -620,7 +625,17 @@ Om Nheko inte kan hitta din hemserver automatiskt kommer ett fält dyka upp där Ett namn för denna enhet. Namnet kommer synas för andra när du verifierar dina enheter. Om du inte förser ett namn kommer ett standardnamn användas. - + + Homeserver address + + + + + server.my:8787 + + + + The address that can be used to contact you homeservers client API. Example: https://server.my:8787 Addressen som kan användas för att kontakta din hemservers klient-API. @@ -633,7 +648,15 @@ Exempel: https://server.my:8787 INLOGGNING - + + + + + You have entered an invalid Matrix ID e.g @joe:matrix.org + + + + Autodiscovery failed. Received malformed response. Autouppslag misslyckades. Mottog felkonstruerat svar. @@ -778,7 +801,7 @@ Exempel: https://server.my:8787 Skriv ett meddelande… - + Emoji Emoji diff --git a/resources/langs/nheko_zh_CN.ts b/resources/langs/nheko_zh_CN.ts index a7f0cc4d..ce25bcbe 100644 --- a/resources/langs/nheko_zh_CN.ts +++ b/resources/langs/nheko_zh_CN.ts @@ -607,7 +607,12 @@ If Nheko fails to discover your homeserver, it will show you a field to enter th 密码 - + + Your password. + + + + Device name 设备名 @@ -617,7 +622,17 @@ If Nheko fails to discover your homeserver, it will show you a field to enter th - + + Homeserver address + + + + + server.my:8787 + + + + The address that can be used to contact you homeservers client API. Example: https://server.my:8787 @@ -629,7 +644,15 @@ Example: https://server.my:8787 登录 - + + + + + You have entered an invalid Matrix ID e.g @joe:matrix.org + + + + Autodiscovery failed. Received malformed response. @@ -774,7 +797,7 @@ Example: https://server.my:8787 写一条消息… - + Emoji diff --git a/src/LoginPage.cpp b/src/LoginPage.cpp index ec9b856f..15aeb12a 100644 --- a/src/LoginPage.cpp +++ b/src/LoginPage.cpp @@ -120,7 +120,7 @@ LoginPage::LoginPage(QWidget *parent) password_input_ = new TextField(this); password_input_->setLabel(tr("Password")); password_input_->setEchoMode(QLineEdit::Password); - password_input_->setToolTip("Your password."); + password_input_->setToolTip(tr("Your password.")); deviceName_ = new TextField(this); deviceName_->setLabel(tr("Device name")); @@ -129,8 +129,8 @@ LoginPage::LoginPage(QWidget *parent) "If none is provided a default is used.")); serverInput_ = new TextField(this); - serverInput_->setLabel("Homeserver address"); - serverInput_->setPlaceholderText("matrix.org"); + serverInput_->setLabel(tr("Homeserver address")); + serverInput_->setPlaceholderText(tr("server.my:8787")); serverInput_->setToolTip(tr("The address that can be used to contact you homeservers " "client API.\nExample: https://server.my:8787")); serverInput_->hide(); @@ -217,7 +217,7 @@ LoginPage::onMatrixIdEntered() if (!matrixid_input_->isValid()) { error_matrixid_label_->show(); showError(error_matrixid_label_, - "You have entered an invalid Matrix ID e.g @joe:matrix.org"); + tr("You have entered an invalid Matrix ID e.g @joe:matrix.org")); return; } else { error_matrixid_label_->setText(""); @@ -228,7 +228,7 @@ LoginPage::onMatrixIdEntered() user = parse(matrixid_input_->text().toStdString()); } catch (const std::exception &) { showError(error_matrixid_label_, - "You have entered an invalid Matrix ID e.g @joe:matrix.org"); + tr("You have entered an invalid Matrix ID e.g @joe:matrix.org")); return; } @@ -385,7 +385,7 @@ LoginPage::onLoginButtonClicked() if (!matrixid_input_->isValid()) { error_matrixid_label_->show(); showError(error_matrixid_label_, - "You have entered an invalid Matrix ID e.g @joe:matrix.org"); + tr("You have entered an invalid Matrix ID e.g @joe:matrix.org")); return; } else { error_matrixid_label_->setText(""); @@ -396,7 +396,7 @@ LoginPage::onLoginButtonClicked() user = parse(matrixid_input_->text().toStdString()); } catch (const std::exception &) { showError(error_matrixid_label_, - "You have entered an invalid Matrix ID e.g @joe:matrix.org"); + tr("You have entered an invalid Matrix ID e.g @joe:matrix.org")); return; }