Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebUI: Optimize i18next stuff #20643

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 0 additions & 8 deletions .tx/config
Expand Up @@ -17,14 +17,6 @@ type = QT
minimum_perc = 23
lang_map = pt: pt_PT, zh: zh_CN

[o:sledgehammer999:p:qbittorrent:r:qbittorrent_webui_json]
file_filter = src/webui/www/transifex/<lang>.json
source_file = src/webui/www/transifex/en.json
source_lang = en
type = KEYVALUEJSON
minimum_perc = 23
lang_map = pt: pt_PT, zh: zh_CN

[o:sledgehammer999:p:qbittorrent:r:qbittorrentdesktop_master]
source_file = dist/unix/org.qbittorrent.qBittorrent.desktop
source_lang = en
Expand Down
6 changes: 3 additions & 3 deletions src/webui/www/public/index.html
Expand Up @@ -32,15 +32,15 @@ <h1>qBittorrent WebUI</h1>
<div id="formplace" class="col">
<form id="loginform">
<div class="row">
<label for="username" class="qbt-translatable" data-i18n="Username">Username</label><br />
<label for="username" data-i18n="Username_HttpServer"></label><br />
<input type="text" id="username" name="username" autocomplete="username" autofocus required />
</div>
<div class="row">
<label for="password" class="qbt-translatable" data-i18n="Password">Password</label><br />
<label for="password" data-i18n="Password_HttpServer"></label><br />
<input type="password" id="password" name="password" autocomplete="current-password" required />
</div>
<div class="row">
<input type="submit" id="loginButton" class="qbt-translatable" data-i18n="Login" value="Login" />
<input type="submit" id="loginButton" data-i18n="[value]Login_HttpServer" />
</div>
</form>
</div>
Expand Down
10 changes: 5 additions & 5 deletions src/webui/www/public/lang/ar.json
@@ -1,7 +1,7 @@
{
"Invalid Username or Password.": "اسم المستخدم أو كلمة السر غير صالحة.",
"Login": "ولوج",
"Password": "كلمة السر",
"Unable to log in, server is probably unreachable.": "",
"Username": "اسم المستخدم"
"Invalid Username or Password._HttpServer": "اسم المستخدم أو كلمة السر غير صالحة.",
"Login_HttpServer": "ولوج",
"Password_HttpServer": "كلمة السر",
"Unable to log in, server is probably unreachable._HttpServer": "",
"Username_HttpServer": "اسم المستخدم"
}
10 changes: 5 additions & 5 deletions src/webui/www/public/lang/az@latin.json
@@ -1,7 +1,7 @@
{
"Invalid Username or Password.": "İstifadəçi adı və Şifrə səhvdir.",
"Login": "Giriş",
"Password": "Şifrə",
"Unable to log in, server is probably unreachable.": "",
"Username": "İstifadəçi adı"
"Invalid Username or Password._HttpServer": "İstifadəçi adı və Şifrə səhvdir.",
"Login_HttpServer": "Giriş",
"Password_HttpServer": "Şifrə",
"Unable to log in, server is probably unreachable._HttpServer": "",
"Username_HttpServer": "İstifadəçi adı"
}
10 changes: 5 additions & 5 deletions src/webui/www/public/lang/be.json
@@ -1,7 +1,7 @@
{
"Invalid Username or Password.": "Нядзейсныя імя карыстальніка ці пароль.",
"Login": "Логін",
"Password": "Пароль",
"Unable to log in, server is probably unreachable.": "",
"Username": "Імя карыстальніка"
"Invalid Username or Password._HttpServer": "Нядзейсныя імя карыстальніка ці пароль.",
"Login_HttpServer": "Логін",
"Password_HttpServer": "Пароль",
"Unable to log in, server is probably unreachable._HttpServer": "",
"Username_HttpServer": "Імя карыстальніка"
}
10 changes: 5 additions & 5 deletions src/webui/www/public/lang/bg.json
@@ -1,7 +1,7 @@
{
"Invalid Username or Password.": "Невалидно потребителско име или парола.",
"Login": "Вход",
"Password": "Парола",
"Unable to log in, server is probably unreachable.": "",
"Username": "Потребителско име"
"Invalid Username or Password._HttpServer": "Невалидно потребителско име или парола.",
"Login_HttpServer": "Вход",
"Password_HttpServer": "Парола",
"Unable to log in, server is probably unreachable._HttpServer": "",
"Username_HttpServer": "Потребителско име"
}
10 changes: 5 additions & 5 deletions src/webui/www/public/lang/ca.json
@@ -1,7 +1,7 @@
{
"Invalid Username or Password.": "Nom d'usuari o contrasenya incorrectes.",
"Login": "Inicia sessió",
"Password": "Contrasenya",
"Unable to log in, server is probably unreachable.": "",
"Username": "Nom d'usuari"
"Invalid Username or Password._HttpServer": "Nom d'usuari o contrasenya incorrectes.",
"Login_HttpServer": "Inicia sessió",
"Password_HttpServer": "Contrasenya",
"Unable to log in, server is probably unreachable._HttpServer": "",
"Username_HttpServer": "Nom d'usuari"
}
10 changes: 5 additions & 5 deletions src/webui/www/public/lang/cs.json
@@ -1,7 +1,7 @@
{
"Invalid Username or Password.": "Neplatné jméno nebo heslo",
"Login": "Přihlášení",
"Password": "Heslo",
"Unable to log in, server is probably unreachable.": "",
"Username": "Uživatelské jméno"
"Invalid Username or Password._HttpServer": "Neplatné jméno nebo heslo",
"Login_HttpServer": "Přihlášení",
"Password_HttpServer": "Heslo",
"Unable to log in, server is probably unreachable._HttpServer": "",
"Username_HttpServer": "Uživatelské jméno"
}
10 changes: 5 additions & 5 deletions src/webui/www/public/lang/da.json
@@ -1,7 +1,7 @@
{
"Invalid Username or Password.": "Ugyldigt brugernavn eller adgangskode.",
"Login": "Login",
"Password": "Adgangskode",
"Unable to log in, server is probably unreachable.": "",
"Username": "Brugernavn"
"Invalid Username or Password._HttpServer": "Ugyldigt brugernavn eller adgangskode.",
"Login_HttpServer": "Login",
"Password_HttpServer": "Adgangskode",
"Unable to log in, server is probably unreachable._HttpServer": "",
"Username_HttpServer": "Brugernavn"
}
10 changes: 5 additions & 5 deletions src/webui/www/public/lang/de.json
@@ -1,7 +1,7 @@
{
"Invalid Username or Password.": "Ungültiger Benutzername oder Passwort.",
"Login": "Anmelden",
"Password": "Passwort",
"Unable to log in, server is probably unreachable.": "",
"Username": "Benutzername"
"Invalid Username or Password._HttpServer": "Ungültiger Benutzername oder Passwort.",
"Login_HttpServer": "Anmelden",
"Password_HttpServer": "Passwort",
"Unable to log in, server is probably unreachable._HttpServer": "",
"Username_HttpServer": "Benutzername"
}
10 changes: 5 additions & 5 deletions src/webui/www/public/lang/el.json
@@ -1,7 +1,7 @@
{
"Invalid Username or Password.": "Μη έγκυρο Όνομα Χρήστη ή Κωδικός Πρόσβασης.",
"Login": "Σύνδεση",
"Password": "Κωδικός Πρόσβασης",
"Unable to log in, server is probably unreachable.": "",
"Username": "Όνομα χρήστη"
"Invalid Username or Password._HttpServer": "Μη έγκυρο Όνομα Χρήστη ή Κωδικός Πρόσβασης.",
"Login_HttpServer": "Σύνδεση",
"Password_HttpServer": "Κωδικός Πρόσβασης",
"Unable to log in, server is probably unreachable._HttpServer": "",
"Username_HttpServer": "Όνομα χρήστη"
}
10 changes: 5 additions & 5 deletions src/webui/www/public/lang/en.json
@@ -1,7 +1,7 @@
{
"Invalid Username or Password.": "Invalid Username or Password.",
"Login": "Login",
"Password": "Password",
"Unable to log in, server is probably unreachable.": "Unable to log in, server is probably unreachable.",
"Username": "Username"
"Invalid Username or Password._HttpServer": "Invalid Username or Password.",
"Login_HttpServer": "Login",
"Password_HttpServer": "Password",
"Unable to log in, server is probably unreachable._HttpServer": "Unable to log in, server is probably unreachable.",
"Username_HttpServer": "Username"
}
10 changes: 5 additions & 5 deletions src/webui/www/public/lang/en_AU.json
@@ -1,7 +1,7 @@
{
"Invalid Username or Password.": "Invalid Username or Password.",
"Login": "Login",
"Password": "Password",
"Unable to log in, server is probably unreachable.": "",
"Username": "Username"
"Invalid Username or Password._HttpServer": "Invalid Username or Password.",
"Login_HttpServer": "Login",
"Password_HttpServer": "Password",
"Unable to log in, server is probably unreachable._HttpServer": "",
"Username_HttpServer": "Username"
}
10 changes: 5 additions & 5 deletions src/webui/www/public/lang/en_GB.json
@@ -1,7 +1,7 @@
{
"Invalid Username or Password.": "",
"Login": "Login",
"Password": "",
"Unable to log in, server is probably unreachable.": "",
"Username": ""
"Invalid Username or Password._HttpServer": "",
"Login_HttpServer": "Login",
"Password_HttpServer": "",
"Unable to log in, server is probably unreachable._HttpServer": "",
"Username_HttpServer": ""
}
10 changes: 5 additions & 5 deletions src/webui/www/public/lang/eo.json
@@ -1,7 +1,7 @@
{
"Invalid Username or Password.": "Malvalida uzantnomo aŭ pasvorto.",
"Login": "Ensaluti",
"Password": "Pasvorto",
"Unable to log in, server is probably unreachable.": "",
"Username": ""
"Invalid Username or Password._HttpServer": "Malvalida uzantnomo aŭ pasvorto.",
"Login_HttpServer": "Ensaluti",
"Password_HttpServer": "Pasvorto",
"Unable to log in, server is probably unreachable._HttpServer": "",
"Username_HttpServer": ""
}
10 changes: 5 additions & 5 deletions src/webui/www/public/lang/es.json
@@ -1,7 +1,7 @@
{
"Invalid Username or Password.": "Nombre de usuario o contraseña inválidos.",
"Login": "Iniciar sesión",
"Password": "Contraseña",
"Unable to log in, server is probably unreachable.": "",
"Username": "Nombre de usuario"
"Invalid Username or Password._HttpServer": "Nombre de usuario o contraseña inválidos.",
"Login_HttpServer": "Iniciar sesión",
"Password_HttpServer": "Contraseña",
"Unable to log in, server is probably unreachable._HttpServer": "",
"Username_HttpServer": "Nombre de usuario"
}
10 changes: 5 additions & 5 deletions src/webui/www/public/lang/et.json
@@ -1,7 +1,7 @@
{
"Invalid Username or Password.": "Sobimatu Kasutajanimi või Parool",
"Login": "Logi sisse",
"Password": "Parool",
"Unable to log in, server is probably unreachable.": "",
"Username": "Kasutajanimi"
"Invalid Username or Password._HttpServer": "Sobimatu Kasutajanimi või Parool",
"Login_HttpServer": "Logi sisse",
"Password_HttpServer": "Parool",
"Unable to log in, server is probably unreachable._HttpServer": "",
"Username_HttpServer": "Kasutajanimi"
}
10 changes: 5 additions & 5 deletions src/webui/www/public/lang/eu.json
@@ -1,7 +1,7 @@
{
"Invalid Username or Password.": "Erabiltzaile-izen edo Sarhitz baliogabea.",
"Login": "Hasi Saioa",
"Password": "Sarhitza",
"Unable to log in, server is probably unreachable.": "",
"Username": "Erabiltzaile-izena"
"Invalid Username or Password._HttpServer": "Erabiltzaile-izen edo Sarhitz baliogabea.",
"Login_HttpServer": "Hasi Saioa",
"Password_HttpServer": "Sarhitza",
"Unable to log in, server is probably unreachable._HttpServer": "",
"Username_HttpServer": "Erabiltzaile-izena"
}
10 changes: 5 additions & 5 deletions src/webui/www/public/lang/fa.json
@@ -1,7 +1,7 @@
{
"Invalid Username or Password.": "نام کاربری یا کلمه عبور نامعتبر",
"Login": "ورود",
"Password": "کلمه عبور",
"Unable to log in, server is probably unreachable.": "",
"Username": "نام کاربری"
"Invalid Username or Password._HttpServer": "نام کاربری یا کلمه عبور نامعتبر",
"Login_HttpServer": "ورود",
"Password_HttpServer": "کلمه عبور",
"Unable to log in, server is probably unreachable._HttpServer": "",
"Username_HttpServer": "نام کاربری"
}
10 changes: 5 additions & 5 deletions src/webui/www/public/lang/fi.json
@@ -1,7 +1,7 @@
{
"Invalid Username or Password.": "Virheellinen käyttäjätunnus tai salasana.",
"Login": "Kirjaudu",
"Password": "Salasana",
"Unable to log in, server is probably unreachable.": "",
"Username": "Käyttäjänimi"
"Invalid Username or Password._HttpServer": "Virheellinen käyttäjätunnus tai salasana.",
"Login_HttpServer": "Kirjaudu",
"Password_HttpServer": "Salasana",
"Unable to log in, server is probably unreachable._HttpServer": "",
"Username_HttpServer": "Käyttäjänimi"
}
10 changes: 5 additions & 5 deletions src/webui/www/public/lang/fr.json
@@ -1,7 +1,7 @@
{
"Invalid Username or Password.": "Nom d'utilisateur ou mot de passe invalide.",
"Login": "Se connecter",
"Password": "Mot de passe",
"Unable to log in, server is probably unreachable.": "",
"Username": "Nom d'utilisateur"
"Invalid Username or Password._HttpServer": "Nom d'utilisateur ou mot de passe invalide.",
"Login_HttpServer": "Se connecter",
"Password_HttpServer": "Mot de passe",
"Unable to log in, server is probably unreachable._HttpServer": "",
"Username_HttpServer": "Nom d'utilisateur"
}
10 changes: 5 additions & 5 deletions src/webui/www/public/lang/gl.json
@@ -1,7 +1,7 @@
{
"Invalid Username or Password.": "O usuario ou o contrasinal son incorrectos.",
"Login": "Iniciar sesión",
"Password": "Contrasinal",
"Unable to log in, server is probably unreachable.": "",
"Username": "Nome do usuario"
"Invalid Username or Password._HttpServer": "O usuario ou o contrasinal son incorrectos.",
"Login_HttpServer": "Iniciar sesión",
"Password_HttpServer": "Contrasinal",
"Unable to log in, server is probably unreachable._HttpServer": "",
"Username_HttpServer": "Nome do usuario"
}
10 changes: 5 additions & 5 deletions src/webui/www/public/lang/he.json
@@ -1,7 +1,7 @@
{
"Invalid Username or Password.": "שם משתמש או סיסמה בלתי תקפים.",
"Login": "היכנס",
"Password": "סיסמה",
"Unable to log in, server is probably unreachable.": "",
"Username": "שם משתמש"
"Invalid Username or Password._HttpServer": "שם משתמש או סיסמה בלתי תקפים.",
"Login_HttpServer": "היכנס",
"Password_HttpServer": "סיסמה",
"Unable to log in, server is probably unreachable._HttpServer": "",
"Username_HttpServer": "שם משתמש"
}
10 changes: 5 additions & 5 deletions src/webui/www/public/lang/hi_IN.json
@@ -1,7 +1,7 @@
{
"Invalid Username or Password.": "यूजरनेम व पासवर्ड अमान्य हैं।",
"Login": "लॉगिन",
"Password": "पासवर्ड",
"Unable to log in, server is probably unreachable.": "",
"Username": "यूजरनेम"
"Invalid Username or Password._HttpServer": "यूजरनेम व पासवर्ड अमान्य हैं।",
"Login_HttpServer": "लॉगिन",
"Password_HttpServer": "पासवर्ड",
"Unable to log in, server is probably unreachable._HttpServer": "",
"Username_HttpServer": "यूजरनेम"
}
10 changes: 5 additions & 5 deletions src/webui/www/public/lang/hr.json
@@ -1,7 +1,7 @@
{
"Invalid Username or Password.": "Neispravno korisničko ime ili lozinka",
"Login": "Prijava",
"Password": "Lozinka",
"Unable to log in, server is probably unreachable.": "",
"Username": "Korisničko ime"
"Invalid Username or Password._HttpServer": "Neispravno korisničko ime ili lozinka",
"Login_HttpServer": "Prijava",
"Password_HttpServer": "Lozinka",
"Unable to log in, server is probably unreachable._HttpServer": "",
"Username_HttpServer": "Korisničko ime"
}
10 changes: 5 additions & 5 deletions src/webui/www/public/lang/hu.json
@@ -1,7 +1,7 @@
{
"Invalid Username or Password.": "Érvénytelen felhasználónév vagy Jelszó.",
"Login": "Bejelentkezés",
"Password": "Jelszó",
"Unable to log in, server is probably unreachable.": "",
"Username": "Felhasználónév"
"Invalid Username or Password._HttpServer": "Érvénytelen felhasználónév vagy Jelszó.",
"Login_HttpServer": "Bejelentkezés",
"Password_HttpServer": "Jelszó",
"Unable to log in, server is probably unreachable._HttpServer": "",
"Username_HttpServer": "Felhasználónév"
}
10 changes: 5 additions & 5 deletions src/webui/www/public/lang/hy.json
@@ -1,7 +1,7 @@
{
"Invalid Username or Password.": "",
"Login": "Օգտանուն",
"Password": "Գաղտնաբառ",
"Unable to log in, server is probably unreachable.": "",
"Username": "Մուտքանուն"
"Invalid Username or Password._HttpServer": "",
"Login_HttpServer": "Օգտանուն",
"Password_HttpServer": "Գաղտնաբառ",
"Unable to log in, server is probably unreachable._HttpServer": "",
"Username_HttpServer": "Մուտքանուն"
}
10 changes: 5 additions & 5 deletions src/webui/www/public/lang/id.json
@@ -1,7 +1,7 @@
{
"Invalid Username or Password.": "Nama Pengguna atau Sandi tidak valid.",
"Login": "Masuk",
"Password": "Sandi",
"Unable to log in, server is probably unreachable.": "",
"Username": "Nama pengguna"
"Invalid Username or Password._HttpServer": "Nama Pengguna atau Sandi tidak valid.",
"Login_HttpServer": "Masuk",
"Password_HttpServer": "Sandi",
"Unable to log in, server is probably unreachable._HttpServer": "",
"Username_HttpServer": "Nama pengguna"
}
10 changes: 5 additions & 5 deletions src/webui/www/public/lang/is.json
@@ -1,7 +1,7 @@
{
"Invalid Username or Password.": "Rangt notandanafn eða lykilorð.",
"Login": "Skrá inn",
"Password": "Lykilorð",
"Unable to log in, server is probably unreachable.": "",
"Username": ""
"Invalid Username or Password._HttpServer": "Rangt notandanafn eða lykilorð.",
"Login_HttpServer": "Skrá inn",
"Password_HttpServer": "Lykilorð",
"Unable to log in, server is probably unreachable._HttpServer": "",
"Username_HttpServer": ""
}
10 changes: 5 additions & 5 deletions src/webui/www/public/lang/it.json
@@ -1,7 +1,7 @@
{
"Invalid Username or Password.": "Username o password errati.",
"Login": "Login",
"Password": "Password",
"Unable to log in, server is probably unreachable.": "",
"Username": "Nome utente"
"Invalid Username or Password._HttpServer": "Username o password errati.",
"Login_HttpServer": "Login",
"Password_HttpServer": "Password",
"Unable to log in, server is probably unreachable._HttpServer": "",
"Username_HttpServer": "Nome utente"
}