Translate pwman prompts

This commit is contained in:
crschnick
2026-06-24 08:16:09 +00:00
parent aa00541aaf
commit ce759ff330
23 changed files with 117 additions and 14 deletions
@@ -324,7 +324,7 @@ public class BitwardenPasswordManager implements PasswordManager {
}
if (r[1].contains("Vault is locked")) {
var pw = AskpassAlert.queryRaw("Unlock vault with your Bitwarden master password", null, false);
var pw = AskpassAlert.queryRaw(AppI18n.get("bitwardenUnlock"), null, false);
if (pw.getSecret() == null) {
return false;
}
@@ -1,6 +1,7 @@
package io.xpipe.app.pwman;
import io.xpipe.app.comp.base.ContextualFileReferenceChoiceComp;
import io.xpipe.app.core.AppI18n;
import io.xpipe.app.core.AppSystemInfo;
import io.xpipe.app.ext.ProcessControlProvider;
import io.xpipe.app.issue.ErrorEventFactory;
@@ -135,7 +136,7 @@ public class EnpassPasswordManager implements PasswordManager {
}
var pass = SecretManager.retrieve(
new SecretPromptStrategy(), "Enter Enpass vault master password", MASTER_PASSWORD_UUID, 0, true);
new SecretPromptStrategy(), AppI18n.get("enpassUnlock"), MASTER_PASSWORD_UUID, 0, true);
if (pass == null) {
return null;
}
@@ -204,7 +204,7 @@ public class KeeperPasswordManager implements PasswordManager {
""";
return input;
} else {
var totp = AskpassAlert.queryRaw("Enter Keeper Commander SMS Code", null, false);
var totp = AskpassAlert.queryRaw(AppI18n.get("keeperSmsUnlock"), null, false);
if (totp.getState() != SecretQueryState.NORMAL) {
return null;
}
@@ -290,7 +290,7 @@ public class KeeperPasswordManager implements PasswordManager {
""";
return input;
} else {
var totp = AskpassAlert.queryRaw("Enter Keeper 2FA Code", null, false);
var totp = AskpassAlert.queryRaw(AppI18n.get("keeper2faUnlock"), null, false);
if (totp.getState() != SecretQueryState.NORMAL) {
return null;
}
@@ -531,7 +531,7 @@ public class KeeperPasswordManager implements PasswordManager {
var r = SecretManager.retrieve(
new SecretPromptStrategy(),
"Enter your Keeper master password to unlock",
AppI18n.get("keeperUnlock"),
KEEPER_PASSWORD_ID,
0,
true);
@@ -2,6 +2,7 @@ package io.xpipe.app.util;
import io.xpipe.app.comp.base.SecretFieldComp;
import io.xpipe.app.core.AppI18n;
import io.xpipe.app.core.mode.AppOperationMode;
import io.xpipe.app.core.window.AppSideWindow;
import io.xpipe.app.secret.SecretManager;
import io.xpipe.app.secret.SecretQueryResult;
@@ -23,6 +24,10 @@ import javafx.stage.Window;
public class AskpassAlert {
public static SecretQueryResult queryRaw(String prompt, InPlaceSecretValue secretValue, boolean stealFocus) {
if (AppOperationMode.isInShutdown()) {
return new SecretQueryResult(null, SecretQueryState.CANCELLED);
}
prompt = prompt.strip();
if (prompt.endsWith(":") || prompt.endsWith("?")) {
prompt = prompt.substring(0, prompt.length() - 1);
@@ -2,8 +2,11 @@ package io.xpipe.app.util;
import io.xpipe.app.comp.base.TextFieldComp;
import io.xpipe.app.core.AppI18n;
import io.xpipe.app.core.mode.AppOperationMode;
import io.xpipe.app.core.window.AppSideWindow;
import io.xpipe.app.secret.SecretQueryResult;
import io.xpipe.app.secret.SecretQueryState;
import javafx.animation.AnimationTimer;
import javafx.application.Platform;
import javafx.beans.property.SimpleObjectProperty;
@@ -16,6 +19,10 @@ import java.util.Optional;
public class AsktextAlert {
public static Optional<String> query(String prompt, String value) {
if (AppOperationMode.isInShutdown()) {
return Optional.empty();
}
var prop = new SimpleObjectProperty<>(value);
var r = AppSideWindow.showBlockingAlert(alert -> {
alert.setTitle(AppI18n.get("asktextAlertTitle"));
+5
View File
@@ -2163,3 +2163,8 @@ syncIdentity=Synkroniser identitet
convertToMulti=Konverter til multi
sshDisableShellInitTimeout=Dette system tager lang tid at oprette forbindelse
sshDisableShellInitTimeoutDescription=Deaktiver eventuelle forbindelsestimeouts, hvis det tager lang tid at gennemføre godkendelsen
bitwardenUnlock=Lås pengeskabet op med din Bitwarden-hovedadgangskode
enpassUnlock=Indtast hovedadgangskoden til Enpass-boksen
keeperSmsUnlock=Indtast Keeper Commander SMS-kode
keeper2faUnlock=Indtast Keeper 2FA-kode
keeperUnlock=Indtast din Keeper-hovedadgangskode for at låse op
+6 -1
View File
@@ -2106,7 +2106,7 @@ certificateDialogExpiredTitle=Das Zertifikat $FILE$ ist abgelaufen
certificateDialogNotValidTitle=Das Zertifikat $FILE$ ist noch nicht gültig
renew=Erneuern
shortLivedCertImpl=Kurzlebige Zertifikatsimplementierung
shortLivedCertImplDescription=Die optionale Methode zur Erneuerung von Zertifikaten, wenn diese nur eine kurze Laufzeit haben
shortLivedCertImplDescription=Die optionale Methode zur Erneuerung von Zertifikaten, wenn diese nur eine kurze Gültigkeitsdauer haben
certificateRole=Rollenname
certificateRoleDescription=Die Rolle, mit der der öffentliche Schlüssel signiert wird
testConfig=Testkonfiguration
@@ -2158,3 +2158,8 @@ syncIdentity=Identität synchronisieren
convertToMulti=In Multi konvertieren
sshDisableShellInitTimeout=Dieses System braucht lange, um eine Verbindung herzustellen
sshDisableShellInitTimeoutDescription=Deaktiviere jegliche Verbindungszeitüberschreitung, falls die Authentifizierung lange dauert, bis sie erfolgreich ist
bitwardenUnlock=Entsperre den Tresor mit deinem Bitwarden-Master-Passwort
enpassUnlock=Gib das Master-Passwort für den Enpass-Tresor ein
keeperSmsUnlock=Gib den Keeper Commander-SMS-Code ein
keeper2faUnlock=Keeper-2FA-Code eingeben
keeperUnlock=Gib dein Keeper-Master-Passwort ein, um die Sperre aufzuheben
+6 -1
View File
@@ -2150,7 +2150,6 @@ certificateDialogExpiredTitle=Certificate $FILE$ is expired
certificateDialogNotValidTitle=Certificate $FILE$ is not valid yet
renew=Renew
shortLivedCertImpl=Short-lived certificate implementation
#force
shortLivedCertImplDescription=The optional method to use to renew certificates if they are short-lived
certificateRole=Role name
certificateRoleDescription=The role with which to sign the public key
@@ -2207,3 +2206,9 @@ syncIdentity=Sync identity
convertToMulti=Convert to multi
sshDisableShellInitTimeout=This system takes a long time connect
sshDisableShellInitTimeoutDescription=Disable any connect timeout in case the authentication takes a long time to succeed
bitwardenUnlock=Unlock vault with your Bitwarden master password
enpassUnlock=Enter Enpass vault master password
keeperSmsUnlock=Enter Keeper Commander SMS Code
keeper2faUnlock=Enter Keeper 2FA Code
keeperUnlock=Enter your Keeper master password to unlock
+6 -1
View File
@@ -2070,7 +2070,7 @@ certificateDialogExpiredTitle=El certificado $FILE$ ha caducado
certificateDialogNotValidTitle=El certificado $FILE$ aún no es válido
renew=Renueva
shortLivedCertImpl=Aplicación de certificado de corta duración
shortLivedCertImplDescription=El método opcional que se puede usar para renovar certificados si tienen una vigencia corta
shortLivedCertImplDescription=El método opcional que se puede usar para renovar los certificados si tienen una vigencia corta
certificateRole=Nombre del rol
certificateRoleDescription=El papel con el que firmar la clave pública
testConfig=Configuración de prueba
@@ -2122,3 +2122,8 @@ syncIdentity=Sincronizar identidad
convertToMulti=Convertir a multi
sshDisableShellInitTimeout=Este sistema tarda mucho en conectarse
sshDisableShellInitTimeoutDescription=Desactiva cualquier tiempo de espera de conexión por si la autenticación tarda mucho en completarse
bitwardenUnlock=Desbloquea la caja fuerte con tu contraseña maestra de Bitwarden
enpassUnlock=Introduce la contraseña maestra de la caja fuerte de Enpass
keeperSmsUnlock=Introduce el código SMS de Keeper Commander
keeper2faUnlock=Introduce el código 2FA de Keeper
keeperUnlock=Introduce tu contraseña maestra de Keeper para desbloquearlo
+5
View File
@@ -2162,3 +2162,8 @@ syncIdentity=Identité de synchronisation
convertToMulti=Convertir en multi
sshDisableShellInitTimeout=Ce système met beaucoup de temps à se connecter
sshDisableShellInitTimeoutDescription=Désactive toute limite de temps de connexion au cas où l'authentification prendrait beaucoup de temps à aboutir
bitwardenUnlock=Déverrouille le coffre-fort avec ton mot de passe principal Bitwarden
enpassUnlock=Saisis le mot de passe principal du coffre-fort Enpass
keeperSmsUnlock=Saisis le code SMS de Keeper Commander
keeper2faUnlock=Saisir le code 2FA de Keeper
keeperUnlock=Saisis ton mot de passe principal Keeper pour déverrouiller
+5
View File
@@ -2122,3 +2122,8 @@ syncIdentity=Menyinkronkan identitas
convertToMulti=Mengonversi ke multi
sshDisableShellInitTimeout=Sistem ini membutuhkan waktu lama untuk terhubung
sshDisableShellInitTimeoutDescription=Nonaktifkan batas waktu koneksi jika proses otentikasi memakan waktu lama untuk berhasil
bitwardenUnlock=Buka brankas dengan kata sandi utama Bitwarden Anda
enpassUnlock=Masukkan kata sandi utama brankas Enpass
keeperSmsUnlock=Masukkan Kode SMS Keeper Commander
keeper2faUnlock=Masukkan Kode 2FA Keeper
keeperUnlock=Masukkan kata sandi utama Keeper Anda untuk membuka kunci
+5
View File
@@ -2122,3 +2122,8 @@ syncIdentity=Identità di sincronizzazione
convertToMulti=Convertire in multi
sshDisableShellInitTimeout=Questo sistema impiega molto tempo a connettersi
sshDisableShellInitTimeoutDescription=Disattiva qualsiasi timeout di connessione nel caso in cui l'autenticazione richieda molto tempo per andare a buon fine
bitwardenUnlock=Sblocca il caveau con la tua password principale di Bitwarden
enpassUnlock=Inserisci la password principale del vault di Enpass
keeperSmsUnlock=Inserisci il codice SMS di Keeper Commander
keeper2faUnlock=Inserisci il codice 2FA di Keeper
keeperUnlock=Inserisci la tua password principale di Keeper per sbloccare
+5
View File
@@ -2122,3 +2122,8 @@ syncIdentity=同期ID
convertToMulti=マルチに変換する
sshDisableShellInitTimeout=このシステムは接続に時間がかかる
sshDisableShellInitTimeoutDescription=認証の成功に時間がかかる場合、接続タイムアウトを無効にする
bitwardenUnlock=Bitwardenのマスターパスワードで保管庫のロックを解除する
enpassUnlock=Enpassの保管庫マスターパスワードを入力する
keeperSmsUnlock=キーパー・コマンダーのSMSコードを入力する
keeper2faUnlock=Keeperの2FAコードを入力する
keeperUnlock=ロックを解除するには、Keeperのマスターパスワードを入力してください
+5
View File
@@ -2173,3 +2173,8 @@ syncIdentity=동기화 ID
convertToMulti=멀티로 변환
sshDisableShellInitTimeout=이 시스템은 연결하는 데 시간이 오래 걸립니다
sshDisableShellInitTimeoutDescription=인증에 시간이 오래 걸릴 경우를 대비하여 모든 연결 시간 초과 설정을 비활성화하십시오
bitwardenUnlock=Bitwarden 마스터 비밀번호로 금고를 잠금 해제하세요
enpassUnlock=Enpass 볼트 마스터 비밀번호를 입력하세요
keeperSmsUnlock=키퍼 커맨더 SMS 코드 입력
keeper2faUnlock=Keeper 2FA 코드 입력
keeperUnlock=잠금을 해제하려면 Keeper 마스터 비밀번호를 입력하세요
+6 -1
View File
@@ -2070,7 +2070,7 @@ certificateDialogExpiredTitle=Certificaat $FILE$ is verlopen
certificateDialogNotValidTitle=Certificaat $FILE$ is nog niet geldig
renew=Vernieuw
shortLivedCertImpl=Kortstondige certificaatimplementatie
shortLivedCertImplDescription=De optionele methode om certificaten te vernieuwen als ze een korte geldigheidsduur hebben
shortLivedCertImplDescription=De optionele methode om certificaten te vernieuwen als ze maar kort geldig zijn
certificateRole=Naam rol
certificateRoleDescription=De rol waarmee de publieke sleutel wordt ondertekend
testConfig=Test configuratie
@@ -2122,3 +2122,8 @@ syncIdentity=Identiteit synchroniseren
convertToMulti=Omzetten naar multi
sshDisableShellInitTimeout=Dit systeem doet er lang over om verbinding te maken
sshDisableShellInitTimeoutDescription=Schakel eventuele time-outs voor verbindingen uit voor het geval het even duurt voordat de authenticatie lukt
bitwardenUnlock=Ontgrendel de kluis met je Bitwarden-hoofdwachtwoord
enpassUnlock=Voer het hoofdwachtwoord van de Enpass-kluis in
keeperSmsUnlock=Voer de SMS-code van Keeper Commander in
keeper2faUnlock=Voer de Keeper 2FA-code in
keeperUnlock=Voer je Keeper-hoofdwachtwoord in om te ontgrendelen
+6 -1
View File
@@ -2071,7 +2071,7 @@ certificateDialogExpiredTitle=Certyfikat $FILE$ wygasł
certificateDialogNotValidTitle=Certyfikat $FILE$ nie jest jeszcze ważny
renew=Odnów
shortLivedCertImpl=Krótkotrwała implementacja certyfikatu
shortLivedCertImplDescription=Opcjonalna metoda odnawiania certyfikatów, jeśli mają one krótki okres ważności
shortLivedCertImplDescription=Opcjonalna metoda odnawiania certyfikatów, jeśli mają krótki okres ważności
certificateRole=Nazwa roli
certificateRoleDescription=Rola, za pomocą której można podpisać klucz publiczny
testConfig=Konfiguracja testowa
@@ -2123,3 +2123,8 @@ syncIdentity=Tożsamość synchronizacji
convertToMulti=Konwertuj na multi
sshDisableShellInitTimeout=Ten system długo się łączy
sshDisableShellInitTimeoutDescription=Wyłącz wszelkie limity czasu połączenia na wypadek, gdyby uwierzytelnianie trwało długo
bitwardenUnlock=Odblokuj sejf za pomocą hasła głównego do Bitwarden
enpassUnlock=Wprowadź hasło główne do skarbca Enpass
keeperSmsUnlock=Wprowadź kod SMS Keeper Commander
keeper2faUnlock=Wprowadź kod 2FA z aplikacji Keeper
keeperUnlock=Wpisz swoje hasło główne do aplikacji Keeper, żeby odblokować
+6 -1
View File
@@ -2070,7 +2070,7 @@ certificateDialogExpiredTitle=O certificado $FILE$ expirou
certificateDialogNotValidTitle=O certificado $FILE$ ainda não é válido
renew=Renova
shortLivedCertImpl=Implementação de certificado de curta duração
shortLivedCertImplDescription=O método opcional a usar para renovar certificados se estes tiverem uma validade curta
shortLivedCertImplDescription=O método opcional a utilizar para renovar certificados, caso estes tenham uma validade curta
certificateRole=Nome da função
certificateRoleDescription=A função com a qual assina a chave pública
testConfig=Configuração de teste
@@ -2122,3 +2122,8 @@ syncIdentity=Sincroniza a identidade
convertToMulti=Converte para multi
sshDisableShellInitTimeout=Este sistema demora muito tempo a ligar-se
sshDisableShellInitTimeoutDescription=Desativa qualquer limite de tempo de ligação, caso a autenticação demore muito tempo a ser bem-sucedida
bitwardenUnlock=Desbloqueia o cofre com a tua palavra-passe principal do Bitwarden
enpassUnlock=Introduz a palavra-passe principal do cofre do Enpass
keeperSmsUnlock=Introduz o código SMS do Keeper Commander
keeper2faUnlock=Introduz o código 2FA do Keeper
keeperUnlock=Introduz a tua palavra-passe principal do Keeper para desbloquear
+5
View File
@@ -2233,3 +2233,8 @@ syncIdentity=Синхронизировать личность
convertToMulti=Преобразование в мульти
sshDisableShellInitTimeout=Эта система долго подключается
sshDisableShellInitTimeoutDescription=Отключи все тайм-ауты подключения на случай, если аутентификация займет много времени
bitwardenUnlock=Открой хранилище с помощью своего мастер-пароля Bitwarden
enpassUnlock=Введи мастер-пароль хранилища Enpass
keeperSmsUnlock=Введи SMS-код Keeper Commander
keeper2faUnlock=Введи код двухфакторной аутентификации Keeper
keeperUnlock=Введи главный пароль Keeper, чтобы разблокировать
+6 -1
View File
@@ -2070,7 +2070,7 @@ certificateDialogExpiredTitle=Certifikatet $FILE$ har gått ut
certificateDialogNotValidTitle=Certifikat $FILE$ är inte giltigt ännu
renew=Förnya
shortLivedCertImpl=Kortlivad implementering av certifikat
shortLivedCertImplDescription=Den valfria metoden som kan användas för att förnya certifikat om de har kort livslängd
shortLivedCertImplDescription=Den valfria metoden som kan användas för att förnya certifikat om de har kort giltighetstid
certificateRole=Namn på roll
certificateRoleDescription=Den roll med vilken den publika nyckeln ska signeras
testConfig=Testkonfiguration
@@ -2122,3 +2122,8 @@ syncIdentity=Synkronisera identitet
convertToMulti=Konvertera till multi
sshDisableShellInitTimeout=Det tar lång tid att ansluta till detta system
sshDisableShellInitTimeoutDescription=Inaktivera eventuella tidsgränser för anslutning om autentiseringen tar lång tid att genomföra
bitwardenUnlock=Lås upp valvet med ditt Bitwarden-huvudlösenord
enpassUnlock=Ange huvudlösenordet för Enpass-valvet
keeperSmsUnlock=Ange Keeper Commander SMS-kod
keeper2faUnlock=Ange Keeper 2FA-kod
keeperUnlock=Ange ditt Keeper-huvudlösenord för att låsa upp
+6 -1
View File
@@ -2070,7 +2070,7 @@ certificateDialogExpiredTitle=Sertifika $FILE$ süresi doldu
certificateDialogNotValidTitle=Sertifika $FILE$ henüz geçerli değil
renew=Yenileme
shortLivedCertImpl=Kısa ömürlü sertifika uygulaması
shortLivedCertImplDescription=Sertifikaların ömrü kısaysa, sertifikaları yenilemek için kullanılacak isteğe bağlı yöntem
shortLivedCertImplDescription=Sertifikaların geçerlilik süresi kısaysa, sertifikaları yenilemek için kullanılabilecek isteğe bağlı yöntem
certificateRole=Rol adı
certificateRoleDescription=Ortak anahtarın imzalanacağı rol
testConfig=Test yapılandırması
@@ -2122,3 +2122,8 @@ syncIdentity=Kimlik senkronizasyonu
convertToMulti=Çoklu dönüştürme
sshDisableShellInitTimeout=Bu sistemin bağlanması uzun sürüyor
sshDisableShellInitTimeoutDescription=Kimlik doğrulamanın başarılı olması uzun sürerse, tüm bağlantı zaman aşımlarını devre dışı bırakın
bitwardenUnlock=Bitwarden ana şifrenizle kasayı açın
enpassUnlock=Enpass kasası ana şifresini girin
keeperSmsUnlock=Keeper Commander SMS Kodunu Girin
keeper2faUnlock=Keeper 2FA Kodunu Girin
keeperUnlock=Kilidi açmak için Keeper ana şifrenizi girin
+5
View File
@@ -2122,3 +2122,8 @@ syncIdentity=Đồng bộ hóa danh tính
convertToMulti=Chuyển đổi sang đa
sshDisableShellInitTimeout=Hệ thống này mất nhiều thời gian để kết nối
sshDisableShellInitTimeoutDescription=Hãy tắt mọi thời gian chờ kết nối trong trường hợp quá trình xác thực mất nhiều thời gian mới thành công
bitwardenUnlock=Mở khóa kho dữ liệu bằng mật khẩu chính Bitwarden của cậu
enpassUnlock=Nhập mật khẩu chính của kho Enpass
keeperSmsUnlock=Nhập mã SMS của Keeper Commander
keeper2faUnlock=Nhập mã xác thực hai yếu tố (2FA) của Keeper
keeperUnlock=Nhập mật khẩu chính Keeper của cậu để mở khóa
+6 -1
View File
@@ -2693,7 +2693,7 @@ certificateDialogExpiredTitle=证书$FILE$ 已过期
certificateDialogNotValidTitle=证书$FILE$ 尚未生效
renew=更新
shortLivedCertImpl=短期证书实施
shortLivedCertImplDescription=若证书有效期较短,可选的证书续期方法
shortLivedCertImplDescription=若证书有效期较短,可选的证书续期方法
certificateRole=角色名称
certificateRoleDescription=用于签署公钥的角色
testConfig=测试配置
@@ -2745,3 +2745,8 @@ syncIdentity=同步身份
convertToMulti=转换为多
sshDisableShellInitTimeout=该系统连接耗时较长
sshDisableShellInitTimeoutDescription=如果身份验证需要较长时间才能成功,请禁用任何连接超时设置
bitwardenUnlock=使用您的 Bitwarden 主密码解锁保险库
enpassUnlock=输入 Enpass 保险库主密码
keeperSmsUnlock=输入“Keeper Commander”短信验证码
keeper2faUnlock=输入 Keeper 双因素认证码
keeperUnlock=请输入您的 Keeper 主密码以解锁
+5
View File
@@ -2122,3 +2122,8 @@ syncIdentity=同步身份
convertToMulti=轉換為多
sshDisableShellInitTimeout=此系統連線需時甚久
sshDisableShellInitTimeoutDescription=若驗證過程耗時較長,請停用所有連線超時設定
bitwardenUnlock=使用您的 Bitwarden 主密碼解鎖保險庫
enpassUnlock=輸入 Enpass 保險庫主密碼
keeperSmsUnlock=輸入 Keeper Commander SMS 代碼
keeper2faUnlock=輸入 Keeper 雙因素驗證 (2FA) 代碼
keeperUnlock=請輸入您的 Keeper 主密碼以解鎖