diff --git a/lib/data/model/app/server_detail_card.dart b/lib/data/model/app/server_detail_card.dart index d69ddffa..322a7ce8 100644 --- a/lib/data/model/app/server_detail_card.dart +++ b/lib/data/model/app/server_detail_card.dart @@ -31,7 +31,7 @@ enum ServerDetailCards { static final names = values.map((e) => e.name).toList(); String get toStr => switch (this) { - about => l10n.about, + about => libL10n.about, cpu => 'CPU', mem => 'RAM', swap => 'Swap', diff --git a/lib/data/store/setting.dart b/lib/data/store/setting.dart index 5e9b9ed3..a57e66ba 100644 --- a/lib/data/store/setting.dart +++ b/lib/data/store/setting.dart @@ -16,28 +16,16 @@ class SettingStore extends PersistentStore { // item in the drawer of the home page) /// Discussion #146 - late final serverTabUseOldUI = property( - 'serverTabUseOldUI', - false, - ); + late final serverTabUseOldUI = property('serverTabUseOldUI', false); /// Time out for server connect and more... - late final timeout = property( - 'timeOut', - 5, - ); + late final timeout = property('timeOut', 5); /// Record history of SFTP path and etc. - late final recordHistory = property( - 'recordHistory', - true, - ); + late final recordHistory = property('recordHistory', true); /// Lanch page idx - late final launchPage = property( - 'launchPage', - Defaults.launchPageIdx, - ); + // late final launchPage = property('launchPage', Defaults.launchPageIdx); /// Disk view: amount / IO late final serverTabPreferDiskAmount = property( @@ -50,16 +38,10 @@ class SettingStore extends PersistentStore { /// Bigger for bigger font size /// 1.0 means 100% /// Warning: This may cause some UI issues - late final textFactor = property( - 'textFactor', - 1.0, - ); + late final textFactor = property('textFactor', 1.0); /// The seed of color scheme - late final colorSeed = property( - 'primaryColor', - 4287106639, - ); + late final colorSeed = property('primaryColor', 4287106639); late final serverStatusUpdateInterval = property( 'serverStatusUpdateInterval', @@ -101,25 +83,14 @@ class SettingStore extends PersistentStore { late final editorFontSize = property('editorFontSize', 12.5); // Editor theme - late final editorTheme = property( - 'editorTheme', - Defaults.editorTheme, - ); + late final editorTheme = property('editorTheme', Defaults.editorTheme); - late final editorDarkTheme = property( - 'editorDarkTheme', - Defaults.editorDarkTheme, - ); + late final editorDarkTheme = + property('editorDarkTheme', Defaults.editorDarkTheme); - late final fullScreen = property( - 'fullScreen', - false, - ); + late final fullScreen = property('fullScreen', false); - late final fullScreenJitter = property( - 'fullScreenJitter', - true, - ); + late final fullScreenJitter = property('fullScreenJitter', true); // late final fullScreenRotateQuarter = property( // 'fullScreenRotateQuarter', @@ -136,53 +107,29 @@ class SettingStore extends PersistentStore { VirtKey.defaultOrder.map((e) => e.index).toList(), ); - late final netViewType = property( - 'netViewType', - NetViewType.speed, - ); + late final netViewType = property('netViewType', NetViewType.speed); // Only valid on iOS - late final autoUpdateHomeWidget = property( - 'autoUpdateHomeWidget', - isIOS, - ); + late final autoUpdateHomeWidget = property('autoUpdateHomeWidget', isIOS); - late final autoCheckAppUpdate = property( - 'autoCheckAppUpdate', - true, - ); + late final autoCheckAppUpdate = property('autoCheckAppUpdate', true); /// Display server tab function buttons on the bottom of each server card if [true] /// /// Otherwise, display them on the top of server detail page - late final moveOutServerTabFuncBtns = property( - 'moveOutServerTabFuncBtns', - true, - ); + late final moveServerFuncs = property('moveOutServerTabFuncBtns', false); /// Whether use `rm -r` to delete directory on SFTP - late final sftpRmrDir = property( - 'sftpRmrDir', - false, - ); + late final sftpRmrDir = property('sftpRmrDir', false); /// Whether use system's primary color as the app's primary color - late final useSystemPrimaryColor = property( - 'useSystemPrimaryColor', - false, - ); + late final useSystemPrimaryColor = property('useSystemPrimaryColor', false); /// Only valid on iOS and macOS - late final icloudSync = property( - 'icloudSync', - false, - ); + late final icloudSync = property('icloudSync', false); /// Only valid on iOS / Android / Windows - late final useBioAuth = property( - 'useBioAuth', - false, - ); + late final useBioAuth = property('useBioAuth', false); /// The performance of highlight is bad late final editorHighlight = property('editorHighlight', true); diff --git a/lib/intro.dart b/lib/intro.dart index 8b762cb7..ae09857e 100644 --- a/lib/intro.dart +++ b/lib/intro.dart @@ -39,10 +39,10 @@ final class _IntroPage extends StatelessWidget { SizedBox(height: padTop), ListTile( leading: const Icon(IonIcons.language), - title: Text(l10n.language), + title: Text(libL10n.language), onTap: () async { final selected = await ctx.showPickSingleDialog( - title: l10n.language, + title: libL10n.language, items: AppLocalizations.supportedLocales, name: (p0) => p0.nativeName, initial: _setting.locale.fetch().toLocale, @@ -59,7 +59,8 @@ final class _IntroPage extends StatelessWidget { ).cardx, ListTile( leading: const Icon(Icons.update), - title: TipText(l10n.autoCheckUpdate, l10n.fdroidReleaseTip), + title: Text(l10n.autoCheckUpdate), + subtitle: Text(l10n.fdroidReleaseTip, style: UIs.textGrey), trailing: StoreSwitch(prop: _setting.autoCheckAppUpdate), ).cardx, ListTile( diff --git a/lib/l10n/app_de.arb b/lib/l10n/app_de.arb index c014edad..48751d0b 100644 --- a/lib/l10n/app_de.arb +++ b/lib/l10n/app_de.arb @@ -1,6 +1,5 @@ { "@@locale": "de", - "about": "Über", "aboutThanks": "Vielen Dank an die folgenden Personen, die daran teilgenommen haben.\n", "acceptBeta": "Akzeptieren Sie Testversion-Updates", "addSystemPrivateKeyTip": "Derzeit haben Sie keinen privaten Schlüssel, fügen Sie den Schlüssel hinzu, der mit dem System geliefert wird (~/.ssh/id_rsa)?", @@ -76,7 +75,6 @@ "ignoreCert": "Zertifikat ignorieren", "image": "Image", "imagesList": "Images", - "inAppUpdate": "Im App aktualisieren? Andernfalls mit einem Browser herunterladen.", "init": "Initialisieren", "inner": "Eingebaut", "install": "install", @@ -87,7 +85,6 @@ "keepStatusWhenErr": "Den letzten Serverstatus beibehalten", "keepStatusWhenErrTip": "Nur im Fehlerfall während der Ausführung des Skripts", "keyAuth": "Schlüsselauthentifzierung", - "language": "Sprache", "letterCache": "Buchstaben-Caching", "letterCacheTip": "Empfohlen, zu deaktivieren, aber nach dem Deaktivieren können keine CJK-Zeichen eingegeben werden.", "license": "Lizenzen", @@ -112,31 +109,23 @@ "noLineChartForCpu": "Verwenden Sie keine Liniendiagramme für CPU", "noPrivateKeyTip": "Der private Schlüssel existiert nicht, möglicherweise wurde er gelöscht oder es liegt ein Konfigurationsfehler vor.", "noPromptAgain": "Nicht mehr nachfragen", - "noUpdateAvailable": "Kein Update verfügbar", "node": "Knoten", "notAvailable": "Nicht verfügbar", - "note": "Hinweis", "onServerDetailPage": "in Detailansicht des Servers", "onlyOneLine": "Nur als eine Zeile anzeigen (scrollbar)", "onlyWhenCoreBiggerThan8": "Wirksam nur, wenn die Anzahl der Kerne > 8 ist.", - "open": "Öffnen", "openLastPath": "Öffnen Sie den letzten Pfad", "openLastPathTip": "Verschiedene Server haben unterschiedliche Einträge, und der Eintrag ist der Pfad zum Ausgang", "parseContainerStatsTip": "Das Analysieren des Belegungsstatus durch Docker ist relativ langsam", - "paste": "Einfügen", - "path": "Pfad", "percentOfSize": "{percent}% von {size}", "permission": "Berechtigungen", "pingAvg": "Avg:", "pingInputIP": "Bitte gib eine Ziel-IP/Domain ein.", "pingNoServer": "Kein Server zum Anpingen.\nBitte füge einen Server hinzu.", "pkg": "Pkg", - "pkgUpgradeTip": "Bitte sichern Sie Ihr System vor dem Update.", - "platformNotSupportUpdate": "Die aktuelle Plattform unterstützt keine In-App-Updates.\nBitte kompiliere vom Quellcode und installiere sie.", "plugInType": "Einfügetyp", "port": "Port", "preview": "Vorschau", - "primaryColorSeed": "Farbschema", "privateKey": "Private Key", "process": "Prozess", "pushToken": "Push Token", @@ -165,7 +154,6 @@ "serverDetailOrder": "Reihenfolge der Widgets auf der Detailseite", "serverFuncBtns": "Server-Funktionsschaltflächen", "serverOrder": "Server-Bestellung", - "setting": "Einstellungen", "sftpDlPrepare": "Verbindung vorbereiten...", "sftpEditorTip": "Wenn leer, verwenden Sie den im App integrierten Dateieditor. Wenn ein Wert vorhanden ist, wird der Editor des Remote-Servers verwendet, z.B. `vim` (es wird empfohlen, automatisch gemäß `EDITOR` zu ermitteln).", "sftpRmrDirSummary": "Verwenden Sie \"rm -r\", um das Verzeichnis in SFTP zu löschen.", @@ -187,7 +175,6 @@ "stop": "Stop", "stopped": "Ausgelaufen", "storage": "Speicher", - "success": "Erfolgreich", "supportFmtArgs": "Die folgenden Formatierungsparameter werden unterstützt:", "suspend": "Suspend", "suspendTip": "Die Suspend-Funktion erfordert Root-Rechte und systemd-Unterstützung.", @@ -203,7 +190,6 @@ "textScaler": "Skalierung der Schriftart", "textScalerTip": "1.0 => 100% (Originalgröße), funktioniert nur auf der Serverseite Teil der Schrift, nicht empfohlen zu ändern.", "theme": "Themen", - "themeMode": "Themen-Modus", "time": "Zeit", "times": "x", "total": "Total", @@ -213,11 +199,8 @@ "unknown": "Unbekannt", "unkownConvertMode": "Unbekannter Konvertierungsmodus", "update": "Update", - "updateAll": "Alle aktualisieren", "updateIntervalEqual0": "Wenn du den Wert 0 einstellst, wird nicht automatisch aktualisiert.\nDer CPU-Status kann nicht berechnet werden.", "updateServerStatusInterval": "Aktualisierungsintervall des Serverstatus", - "updateTip": "Update: v1.0.{newest}", - "updateTipTooLow": "Aktuelle Version ist zu alt, bitte update auf v1.0.{newest}", "upload": "Hochladen", "upsideDown": "Upside Down", "uptime": "Betriebszeit", @@ -226,9 +209,6 @@ "useNoPwd": "Es wird kein Passwort verwendet", "usePodmanByDefault": "Standardmäßige Verwendung von Podman", "used": "Gebraucht", - "versionHaveUpdate": "Gefunden: v1.0.{build}, klicke zum Aktualisieren", - "versionUnknownUpdate": "Aktuell: v1.0.{build}. Klicken Sie hier, um nach Updates zu suchen", - "versionUpdated": "v1.0.{build} ist bereits die neueste Version", "view": "Ansicht", "viewErr": "Fehler anzeigen", "virtKeyHelpClipboard": "In die Zwischenablage kopieren, wenn das ausgewählte Terminal nicht leer ist, andernfalls den Inhalt der Zwischenablage in das Terminal einfügen.", diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 0b545158..3ad1b998 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -1,6 +1,5 @@ { "@@locale": "en", - "about": "About", "aboutThanks": "Thanks to the following people who participated in.", "acceptBeta": "Accept beta version updates", "addSystemPrivateKeyTip": "Currently private keys don't exist, do you want to add the one that comes with the system (~/.ssh/id_rsa)?", @@ -76,7 +75,6 @@ "ignoreCert": "Ignore certificate", "image": "Image", "imagesList": "Images list", - "inAppUpdate": "Update within the app? Otherwise, download using a browser.", "init": "Initialize", "inner": "Inner", "install": "install", @@ -87,7 +85,6 @@ "keepStatusWhenErr": "Preserve the last server state", "keepStatusWhenErrTip": "Only in the event of an error during script execution", "keyAuth": "Key Auth", - "language": "Language", "letterCache": "Letter caching", "letterCacheTip": "Recommended to disable, but after disabling, it will be impossible to input CJK characters.", "license": "License", @@ -112,31 +109,23 @@ "noLineChartForCpu": "Do not use line charts for CPU", "noPrivateKeyTip": "The private key does not exist, it may have been deleted or there is a configuration error.", "noPromptAgain": "Do not prompt again", - "noUpdateAvailable": "No update available", "node": "Node", "notAvailable": "Unavailable", - "note": "Note", "onServerDetailPage": "On server detail page", "onlyOneLine": "Only display as one line (scrollable)", "onlyWhenCoreBiggerThan8": "Works only when the number of cores is greater than 8", - "open": "Open", "openLastPath": "Open the last path", "openLastPathTip": "Different servers will have different logs, and the log is the path to the exit", "parseContainerStatsTip": "Parsing the occupancy status of Docker is relatively slow.", - "paste": "Paste", - "path": "Path", "percentOfSize": "{percent}% of {size}", "permission": "Permissions", "pingAvg": "Avg:", "pingInputIP": "Please input a target IP / domain.", "pingNoServer": "No server to ping.\nPlease add a server in server tab.", "pkg": "Pkg", - "pkgUpgradeTip": "Please backup your system before updating.", - "platformNotSupportUpdate": "Current platform does not support in-app update.\nPlease build from source and install it.", "plugInType": "Insertion Type", "port": "Port", "preview": "Preview", - "primaryColorSeed": "Primary color seed", "privateKey": "Private Key", "process": "Process", "pushToken": "Push token", @@ -165,7 +154,6 @@ "serverDetailOrder": "Detail page widget order", "serverFuncBtns": "Server function buttons", "serverOrder": "Server order", - "setting": "Settings", "sftpDlPrepare": "Preparing to connect...", "sftpEditorTip": "If empty, use the built-in file editor of the app. If a value is present, use the remote server’s editor, e.g., `vim` (recommended to automatically detect according to `EDITOR`).", "sftpRmrDirSummary": "Use `rm -r` to delete a folder in SFTP.", @@ -187,7 +175,6 @@ "stop": "Stop", "stopped": "Stopped", "storage": "Storage", - "success": "Success", "supportFmtArgs": "The following formatting parameters are supported:", "suspend": "Suspend", "suspendTip": "The suspend function requires root permission and systemd support.", @@ -203,7 +190,6 @@ "textScaler": "Text scaler", "textScalerTip": "1.0 => 100% (original size), only works on server page part of the font, not recommended to change.", "theme": "Theme", - "themeMode": "Theme mode", "time": "Time", "times": "Times", "total": "Total", @@ -213,11 +199,8 @@ "unknown": "Unknown", "unkownConvertMode": "Unknown conversion mode", "update": "Update", - "updateAll": "Update all", "updateIntervalEqual0": "You set to 0, will not update automatically.\nCan't calculate CPU status.", "updateServerStatusInterval": "Server status update interval", - "updateTip": "Update: v1.0.{newest}", - "updateTipTooLow": "Current version is too low, please update to v1.0.{newest}", "upload": "Upload", "upsideDown": "Upside Down", "uptime": "Uptime", @@ -226,9 +209,6 @@ "useNoPwd": "No password will be used", "usePodmanByDefault": "Use Podman by default", "used": "Used", - "versionHaveUpdate": "Found: v1.0.{build}, click to update", - "versionUnknownUpdate": "Current: v1.0.{build}, click to check updates", - "versionUpdated": "Current: v1.0.{build}, is up to date", "view": "View", "viewErr": "See error", "virtKeyHelpClipboard": "Copy to the clipboard if the selected terminal is not empty, otherwise paste the content of the clipboard to the terminal.", diff --git a/lib/l10n/app_es.arb b/lib/l10n/app_es.arb index 0db4b777..d95855d1 100644 --- a/lib/l10n/app_es.arb +++ b/lib/l10n/app_es.arb @@ -1,6 +1,5 @@ { "@@locale": "es", - "about": "Acerca de", "aboutThanks": "Gracias a los siguientes participantes.", "acceptBeta": "Aceptar actualizaciones de la versión de prueba", "addSystemPrivateKeyTip": "Actualmente no hay ninguna llave privada, ¿quieres agregar la que viene por defecto en el sistema (~/.ssh/id_rsa)?", @@ -76,7 +75,6 @@ "ignoreCert": "Ignorar certificado", "image": "Imagen", "imagesList": "Lista de imágenes", - "inAppUpdate": "¿Actualizar dentro de la app? De lo contrario, descargar usando un navegador.", "init": "Inicializar", "inner": "Interno", "install": "Instalar", @@ -87,7 +85,6 @@ "keepStatusWhenErr": "Mantener el estado anterior del servidor", "keepStatusWhenErrTip": "Solo aplica cuando hay errores al ejecutar scripts", "keyAuth": "Autenticación con llave", - "language": "Idioma", "letterCache": "Caché de letras", "letterCacheTip": "Recomendado desactivar, pero después de desactivarlo, no se podrán ingresar caracteres CJK.", "license": "Licencia de código abierto", @@ -112,31 +109,23 @@ "noLineChartForCpu": "No utilice gráficos lineales para la CPU", "noPrivateKeyTip": "La clave privada no existe, puede haber sido eliminada o hay un error de configuración.", "noPromptAgain": "No volver a preguntar", - "noUpdateAvailable": "No hay actualizaciones disponibles", "node": "Nodo", "notAvailable": "No disponible", - "note": "Nota", "onServerDetailPage": "En la página de detalles del servidor", "onlyOneLine": "Mostrar solo en una línea (desplazable)", "onlyWhenCoreBiggerThan8": "Efectivo solo cuando el número de núcleos > 8", - "open": "Abrir", "openLastPath": "Abrir el último camino", "openLastPathTip": "Los diferentes servidores tendrán diferentes registros, y lo que se registra es la ruta de salida", "parseContainerStatsTip": "El análisis del estado de uso de Docker es bastante lento", - "paste": "Pegar", - "path": "Ruta", "percentOfSize": "El {percent}% de {size}", "permission": "Permisos", "pingAvg": "Promedio:", "pingInputIP": "Por favor, introduce la IP de destino o el dominio", "pingNoServer": "No hay servidores disponibles para hacer Ping\nPor favor, añade un servidor en la pestaña de servidores y vuelve a intentarlo", "pkg": "Gestión de paquetes", - "pkgUpgradeTip": "Realice una copia de seguridad de su sistema antes de actualizar.", - "platformNotSupportUpdate": "La plataforma actual no soporta actualizaciones, por favor instala manualmente la última versión del código fuente", "plugInType": "Tipo de inserción", "port": "Puerto", "preview": "Vista previa", - "primaryColorSeed": "Semilla de color primario", "privateKey": "Llave privada", "process": "Proceso", "pushToken": "Token de notificaciones", @@ -165,7 +154,6 @@ "serverDetailOrder": "Orden de los componentes en la página de detalles del servidor", "serverFuncBtns": "Botones de función del servidor", "serverOrder": "Orden del servidor", - "setting": "Configuración", "sftpDlPrepare": "Preparando para conectar al servidor...", "sftpEditorTip": "Si está vacío, use el editor de archivos incorporado de la aplicación. Si hay un valor, use el editor del servidor remoto, por ejemplo, `vim` (se recomienda detectar automáticamente según `EDITOR`).", "sftpRmrDirSummary": "Usar `rm -r` en SFTP para eliminar directorios", @@ -187,7 +175,6 @@ "stop": "Detener", "stopped": "Detenido", "storage": "Almacenamiento", - "success": "Éxito", "supportFmtArgs": "Soporta los siguientes argumentos de formato:", "suspend": "Suspender", "suspendTip": "La función de suspender necesita permisos de root y soporte de systemd.", @@ -203,7 +190,6 @@ "textScaler": "Escalar texto", "textScalerTip": "1.0 => 100% (tamaño original), solo afecta a ciertas fuentes en la página del servidor, no se recomienda modificar.", "theme": "Tema", - "themeMode": "Modo de tema", "time": "Tiempo", "times": "Veces", "total": "Total", @@ -213,11 +199,8 @@ "unknown": "Desconocido", "unkownConvertMode": "Modo de conversión desconocido", "update": "Actualizar", - "updateAll": "Actualizar todo", "updateIntervalEqual0": "Si configuras esto a 0, el estado del servidor no se refrescará automáticamente.\nY no se podrá calcular el uso de CPU.", "updateServerStatusInterval": "Intervalo de actualización del estado del servidor", - "updateTip": "Nueva versión: v1.0.{newest}", - "updateTipTooLow": "La versión actual es demasiado baja, por favor actualiza a v1.0.{newest}", "upload": "Subir", "upsideDown": "Invertir arriba por abajo", "uptime": "Tiempo de actividad", @@ -226,9 +209,6 @@ "useNoPwd": "Se usará sin contraseña", "usePodmanByDefault": "Usar Podman por defecto", "used": "Usado", - "versionHaveUpdate": "Nueva versión encontrada: v1.0.{build}, haz clic para actualizar", - "versionUnknownUpdate": "Actual: v1.0.{build}, haz clic para verificar actualizaciones", - "versionUpdated": "Actual: v1.0.{build}, ya estás en la última versión", "view": "Vista", "viewErr": "Ver error", "virtKeyHelpClipboard": "Si el terminal tiene caracteres seleccionados, entonces copiará los caracteres seleccionados al portapapeles, de lo contrario, pegará el contenido del portapapeles al terminal.", diff --git a/lib/l10n/app_fr.arb b/lib/l10n/app_fr.arb index 625b5eef..8b45f433 100644 --- a/lib/l10n/app_fr.arb +++ b/lib/l10n/app_fr.arb @@ -1,6 +1,5 @@ { "@@locale": "fr", - "about": "À propos", "aboutThanks": "Merci aux personnes suivantes qui ont participé.", "acceptBeta": "Accepter les mises à jour de la version de test", "addSystemPrivateKeyTip": "Actuellement, vous n'avez aucune clé privée. Souhaitez-vous ajouter celle qui vient avec le système (~/.ssh/id_rsa) ?", @@ -76,7 +75,6 @@ "ignoreCert": "Ignorer le certificat", "image": "Image", "imagesList": "Liste des images", - "inAppUpdate": "Mettre à jour dans l'application ? Sinon, téléchargez en utilisant un navigateur.", "init": "Initialiser", "inner": "Interne", "install": "Installer", @@ -87,7 +85,6 @@ "keepStatusWhenErr": "Conserver l'état du dernier serveur", "keepStatusWhenErrTip": "Uniquement en cas d'erreur lors de l'exécution du script", "keyAuth": "Authentification par clé", - "language": "Langue", "letterCache": "Mise en cache des lettres", "letterCacheTip": "Recommandé de désactiver, mais après désactivation, il sera impossible de saisir des caractères CJK.", "license": "Licence", @@ -112,31 +109,23 @@ "noLineChartForCpu": "Ne pas utiliser de graphiques linéaires pour l'unité centrale", "noPrivateKeyTip": "La clé privée n'existe pas, elle a peut-être été supprimée ou il y a une erreur de configuration.", "noPromptAgain": "Ne pas demander à nouveau", - "noUpdateAvailable": "Pas de mise à jour disponible", "node": "Nœud", "notAvailable": "Indisponible", - "note": "Note", "onServerDetailPage": "Sur la page de détails du serveur", "onlyOneLine": "Afficher uniquement en une seule ligne (défilement)", "onlyWhenCoreBiggerThan8": "Fonctionne uniquement lorsque le nombre de cœurs est > 8", - "open": "Ouvrir", "openLastPath": "Ouvrir le dernier chemin", "openLastPathTip": "Les différents serveurs auront des journaux différents, et le journal est le chemin vers la sortie", "parseContainerStatsTip": "L'analyse de l'occupation des conteneurs Docker est relativement lente.", - "paste": "Coller", - "path": "Chemin", "percentOfSize": "{percent}% de {size}", "permission": "Permissions", "pingAvg": "Moy.:", "pingInputIP": "Veuillez saisir une adresse IP / un domaine cible.", "pingNoServer": "Aucun serveur à pinger.\nVeuillez ajouter un serveur dans l'onglet serveur.", "pkg": "Pkg", - "pkgUpgradeTip": "Veuillez sauvegarder votre système avant de procéder à la mise à jour.", - "platformNotSupportUpdate": "La plateforme actuelle ne prend pas en charge la mise à jour dans l'application.\nVeuillez le compiler depuis les sources et l'installer.", "plugInType": "Type d'insertion", "port": "Port", "preview": "Aperçu", - "primaryColorSeed": "Graine de couleur primaire", "privateKey": "Clé privée", "process": "Processus", "pushToken": "Jeton d'identification", @@ -165,7 +154,6 @@ "serverDetailOrder": "Ordre des widgets de la page de détails du serveur", "serverFuncBtns": "Boutons de fonction du serveur", "serverOrder": "Ordre du serveur", - "setting": "Paramètres", "sftpDlPrepare": "Préparation de la connexion...", "sftpEditorTip": "Si vide, utilisez l’éditeur de fichiers intégré de l’application. Si une valeur est présente, utilisez l’éditeur du serveur distant, par exemple `vim` (il est recommandé de détecter automatiquement selon `EDITOR`).", "sftpRmrDirSummary": "Utilisez `rm -r` pour supprimer un dossier en SFTP.", @@ -187,7 +175,6 @@ "stop": "Arrêter", "stopped": "Arrêté", "storage": "Stockage", - "success": "Succès", "supportFmtArgs": "Les paramètres de mise en forme suivants sont pris en charge :", "suspend": "Suspendre", "suspendTip": "La fonction de suspension nécessite des privilèges root et le support de systemd.", @@ -203,7 +190,6 @@ "textScaler": "Mise à l'échelle du texte", "textScalerTip": "1.0 => 100% (taille originale), fonctionne uniquement sur la partie de la police de la page du serveur, il est déconseillé de la modifier.", "theme": "Thème", - "themeMode": "Mode thème", "time": "Temps", "times": "Fois", "total": "Total", @@ -213,11 +199,8 @@ "unknown": "Inconnu", "unkownConvertMode": "Mode de conversion inconnu", "update": "Mettre à jour", - "updateAll": "Tout mettre à jour", "updateIntervalEqual0": "Vous avez défini à 0, la mise à jour ne se fera pas automatiquement.\nImpossible de calculer l'état du CPU.", "updateServerStatusInterval": "Intervalle de mise à jour de l'état du serveur", - "updateTip": "Mise à jour : v1.0.{newest}", - "updateTipTooLow": "La version actuelle est trop ancienne, veuillez mettre à jour vers v1.0.{newest}", "upload": "Télécharger", "upsideDown": "À l'envers", "uptime": "Temps d'activité", @@ -226,9 +209,6 @@ "useNoPwd": "Aucun mot de passe ne sera utilisé", "usePodmanByDefault": "Par défaut avec Podman", "used": "Utilisé", - "versionHaveUpdate": "Trouvé : v1.0.{build}, cliquez pour mettre à jour", - "versionUnknownUpdate": "Actuelle : v1.0.{build}, cliquez pour vérifier les mises à jour", - "versionUpdated": "Actuelle : v1.0.{build}, est à jour", "view": "Vue", "viewErr": "Voir erreur", "virtKeyHelpClipboard": "Copiez dans le presse-papiers si le terminal sélectionné n'est pas vide, sinon collez le contenu du presse-papiers dans le terminal.", diff --git a/lib/l10n/app_id.arb b/lib/l10n/app_id.arb index b2646a47..fa500aaf 100644 --- a/lib/l10n/app_id.arb +++ b/lib/l10n/app_id.arb @@ -1,6 +1,5 @@ { "@@locale": "id", - "about": "Tentang", "aboutThanks": "Terima kasih kepada orang -orang berikut yang berpartisipasi.", "acceptBeta": "Terima pembaruan versi uji coba", "addSystemPrivateKeyTip": "Saat ini tidak memiliki kunci privat, apakah Anda menambahkan kunci yang disertakan dengan sistem (~/.ssh/id_rsa)?", @@ -76,7 +75,6 @@ "ignoreCert": "Abaikan sertifikat", "image": "Gambar", "imagesList": "Daftar gambar", - "inAppUpdate": "Perbarui di dalam aplikasi? Jika tidak, unduh menggunakan browser.", "init": "Menginisialisasi", "inner": "Batin", "install": "Install", @@ -87,7 +85,6 @@ "keepStatusWhenErr": "Menyimpan status server terakhir", "keepStatusWhenErrTip": "Hanya ketika terjadi kesalahan saat menjalankan skrip", "keyAuth": "Auth kunci", - "language": "Bahasa", "letterCache": "Caching huruf", "letterCacheTip": "Direkomendasikan untuk menonaktifkan, tetapi setelah dinonaktifkan, tidak mungkin untuk memasukkan karakter CJK.", "license": "Lisensi", @@ -112,31 +109,23 @@ "noLineChartForCpu": "Jangan gunakan diagram garis untuk CPU", "noPrivateKeyTip": "Kunci privat tidak ada, mungkin telah dihapus atau ada kesalahan konfigurasi.", "noPromptAgain": "Jangan tanya lagi", - "noUpdateAvailable": "Tidak ada pembaruan yang tersedia", "node": "Node", "notAvailable": "Tidak tersedia", - "note": "Catatan", "onServerDetailPage": "Di halaman detail server", "onlyOneLine": "Hanya tampilkan sebagai satu baris (dapat digulir)", "onlyWhenCoreBiggerThan8": "Berlaku hanya ketika jumlah inti > 8", - "open": "Membuka", "openLastPath": "Buka jalur terakhir", "openLastPathTip": "Server yang berbeda akan memiliki catatan yang berbeda, dan catatan tersebut adalah jalur menuju pintu keluar", "parseContainerStatsTip": "Parsing status okupansi oleh Docker agak lambat", - "paste": "Tempel", - "path": "Jalur", "percentOfSize": "{percent}% dari {size}", "permission": "Izin", "pingAvg": "Rata -rata:", "pingInputIP": "Harap masukkan IP / domain target.", "pingNoServer": "Tidak ada server untuk melakukan ping.\nHarap tambahkan server di tab Server.", "pkg": "Pkg", - "pkgUpgradeTip": "Harap cadangkan sistem Anda sebelum memperbarui.", - "platformNotSupportUpdate": "Platform saat ini tidak mendukung pembaruan aplikasi.\nSilakan bangun dari sumber dan instal.", "plugInType": "Jenis Penyisipan", "port": "Port", "preview": "Pratinjau", - "primaryColorSeed": "Warna utama", "privateKey": "Kunci Pribadi", "process": "Proses", "pushToken": "Dorong token", @@ -165,7 +154,6 @@ "serverDetailOrder": "Detail pesanan widget halaman", "serverFuncBtns": "Tombol fungsi server", "serverOrder": "Pesanan server", - "setting": "Pengaturan", "sftpDlPrepare": "Bersiap untuk terhubung ...", "sftpEditorTip": "Jika kosong, gunakan editor file bawaan aplikasi. Jika ada nilai, gunakan editor server jarak jauh, misalnya `vim` (disarankan untuk mendeteksi secara otomatis sesuai `EDITOR`).", "sftpRmrDirSummary": "Gunakan `rm -r` untuk menghapus dir di SFTP", @@ -187,7 +175,6 @@ "stop": "Berhenti", "stopped": "dihentikan", "storage": "Penyimpanan", - "success": "Kesuksesan", "supportFmtArgs": "Parameter pemformatan berikut ini didukung:", "suspend": "Suspend", "suspendTip": "Fungsi penangguhan memerlukan hak akses root dan dukungan systemd.", @@ -203,7 +190,6 @@ "textScaler": "Penskalaan font", "textScalerTip": "1.0 => 100% (ukuran asli), hanya berfungsi pada bagian halaman server font, tidak disarankan untuk diubah.", "theme": " Tema", - "themeMode": "Mode tema", "time": "Waktu", "times": "Waktu", "total": "Total", @@ -213,11 +199,8 @@ "unknown": "Tidak dikenal", "unkownConvertMode": "Mode Konversi Tidak Diketahui", "update": "Memperbarui", - "updateAll": "Perbarui semua", "updateIntervalEqual0": "Anda mengatur ke 0, tidak akan memperbarui secara otomatis.\nTidak dapat menghitung status CPU.", "updateServerStatusInterval": "Interval Pembaruan Status Server", - "updateTip": "UPDATE: v1.0.{newest}", - "updateTipTooLow": "Versi saat ini terlalu rendah, harap perbarui ke v1.0.{newest}", "upload": "Mengunggah", "upsideDown": "Terbalik", "uptime": "Uptime", @@ -226,9 +209,6 @@ "useNoPwd": "Tidak ada kata sandi yang akan digunakan", "usePodmanByDefault": "Menggunakan Podman sebagai bawaan", "used": "Digunakan", - "versionHaveUpdate": "Ditemukan: v1.0.{build}, klik untuk memperbarui", - "versionUnknownUpdate": "Saat ini: v1.0.{build}. Klik untuk memeriksa pembaruan.", - "versionUpdated": "Saat ini: v1.0.{build}, mutakhir", "view": "Tampilan", "viewErr": "Lihat kesalahan", "virtKeyHelpClipboard": "Salin ke clipboard jika terminal yang dipilih tidak kosong, jika tidak, tempel isi clipboard ke terminal.", diff --git a/lib/l10n/app_ja.arb b/lib/l10n/app_ja.arb index 079169bb..a2f1664a 100644 --- a/lib/l10n/app_ja.arb +++ b/lib/l10n/app_ja.arb @@ -1,6 +1,5 @@ { "@@locale": "ja", - "about": "約", "aboutThanks": "以下の参加者に感謝します。", "acceptBeta": "テストバージョンの更新を受け入れる", "addSystemPrivateKeyTip": "現在秘密鍵がありません。システムのデフォルト(~/.ssh/id_rsa)を追加しますか?", @@ -76,7 +75,6 @@ "ignoreCert": "証明書を無視する", "image": "イメージ", "imagesList": "イメージリスト", - "inAppUpdate": "アプリ内で更新しますか?それ以外の場合は、ブラウザを使用してダウンロードしてください。", "init": "初期化する", "inner": "内蔵", "install": "インストール", @@ -87,7 +85,6 @@ "keepStatusWhenErr": "エラー時に前回のサーバーステータスを保持", "keepStatusWhenErrTip": "スクリプトの実行エラーに限ります", "keyAuth": "キー認証", - "language": "言語", "letterCache": "文字キャッシング", "letterCacheTip": "無効にすることを推奨しますが、無効にした後はCJK文字を入力することができなくなります。", "license": "オープンソースライセンス", @@ -112,31 +109,23 @@ "noLineChartForCpu": "CPUに折れ線グラフを使わない", "noPrivateKeyTip": "秘密鍵が存在しません。削除されたか、設定ミスがある可能性があります。", "noPromptAgain": "再度確認しない", - "noUpdateAvailable": "利用可能な更新はありません", "node": "ノード", "notAvailable": "利用不可", - "note": "メモ", "onServerDetailPage": "サーバーの詳細ページで", "onlyOneLine": "一行のみ表示(スクロール可能)", "onlyWhenCoreBiggerThan8": "コア数が8より大きい場合にのみ有効", - "open": "開く", "openLastPath": "最後のパスを開く", "openLastPathTip": "異なるサーバーには異なる記録があり、記録されているのは退出時のパスです", "parseContainerStatsTip": "Dockerの使用状況の解析は比較的遅いです", - "paste": "貼り付け", - "path": "パス", "percentOfSize": "{size} の {percent}%", "permission": "権限", "pingAvg": "平均:", "pingInputIP": "対象のIPまたはドメインを入力してください", "pingNoServer": "Pingに使用するサーバーがありません\nサーバータブでサーバーを追加してから再試行してください", "pkg": "パッケージ管理", - "pkgUpgradeTip": "アップデートする前にシステムのバックアップを取ってください。", - "platformNotSupportUpdate": "現在のプラットフォームは更新をサポートしていません。最新のソースコードをコンパイルして手動でインストールしてください", "plugInType": "挿入タイプ", "port": "ポート", "preview": "プレビュー", - "primaryColorSeed": "プライマリーカラーシード", "privateKey": "秘密鍵", "process": "プロセス", "pushToken": "プッシュトークン", @@ -165,7 +154,6 @@ "serverDetailOrder": "詳細ページのウィジェット順序", "serverFuncBtns": "サーバー機能ボタン", "serverOrder": "サーバー順序", - "setting": "設定", "sftpDlPrepare": "サーバーへの接続を準備中...", "sftpEditorTip": "空の場合は、アプリ内蔵のファイルエディタを使用します。値がある場合は、リモートサーバーのエディタ(例:`vim`)を使用します(`EDITOR` に従って自動検出することをお勧めします)。", "sftpRmrDirSummary": "SFTPで`rm -r`を使用してフォルダーを削除", @@ -187,7 +175,6 @@ "stop": "停止", "stopped": "停止しました", "storage": "ストレージ", - "success": "成功", "supportFmtArgs": "以下のフォーマット引数がサポートされています:", "suspend": "中断", "suspendTip": "suspend機能はroot権限とsystemdのサポートが必要です。", @@ -203,7 +190,6 @@ "textScaler": "テキストスケーラー", "textScalerTip": "1.0 => 100%(デフォルトサイズ)。サーバーページの一部のテキストにのみ適用されます。変更をお勧めしません。", "theme": "テーマ", - "themeMode": "テーマモード", "time": "時間", "times": "回", "total": "合計", @@ -213,11 +199,8 @@ "unknown": "不明", "unkownConvertMode": "未知の変換モード", "update": "更新", - "updateAll": "すべて更新", "updateIntervalEqual0": "0に設定すると、サーバーの状態は自動的に更新されず、CPU使用率も計算できません。", "updateServerStatusInterval": "サーバー状態の更新間隔", - "updateTip": "新バージョン: v1.0.{newest}", - "updateTipTooLow": "現在のバージョンが古すぎます。v1.0.{newest}にアップグレードしてください", "upload": "アップロード", "upsideDown": "上下逆転", "uptime": "稼働時間", @@ -226,9 +209,6 @@ "useNoPwd": "パスワードなしで使用します", "usePodmanByDefault": "デフォルトでPodmanを使用", "used": "使用済み", - "versionHaveUpdate": "新しいバージョンが見つかりました:v1.0.{build}、クリックして更新", - "versionUnknownUpdate": "現在:v1.0.{build}、更新をチェックするためにクリック", - "versionUpdated": "現在:v1.0.{build}、最新バージョンです", "view": "ビュー", "viewErr": "エラーを表示", "virtKeyHelpClipboard": "端末に選択された文字がある場合は、選択された文字をクリップボードにコピーします。そうでない場合は、クリップボードの内容を端末に貼り付けます。", diff --git a/lib/l10n/app_nl.arb b/lib/l10n/app_nl.arb index c7d7d2e5..7883c261 100644 --- a/lib/l10n/app_nl.arb +++ b/lib/l10n/app_nl.arb @@ -1,6 +1,5 @@ { "@@locale": "nl", - "about": "Over", "aboutThanks": "Met dank aan de volgende mensen die hebben deelgenomen aan.", "acceptBeta": "Accepteer testversie-updates", "addSystemPrivateKeyTip": "Er is momenteel geen privésleutel, wilt u degene toevoegen die bij het systeem wordt geleverd (~/.ssh/id_rsa)?", @@ -76,7 +75,6 @@ "ignoreCert": "Certificaat negeren", "image": "Afbeelding", "imagesList": "Lijst met afbeeldingen", - "inAppUpdate": "Bijwerken binnen de app? Anders downloaden via een browser.", "init": "Initialiseren", "inner": "Intern", "install": "Installeren", @@ -87,7 +85,6 @@ "keepStatusWhenErr": "Behoud de laatste serverstatus", "keepStatusWhenErrTip": "Alleen in geval van een fout tijdens de scriptuitvoering", "keyAuth": "Sleutelauthenticatie", - "language": "Taal", "letterCache": "Lettercaching", "letterCacheTip": "Aanbevolen om uit te schakelen, maar na het uitschakelen is het niet mogelijk om CJK-tekens in te voeren.", "license": "Licentie", @@ -112,31 +109,23 @@ "noLineChartForCpu": "Gebruik geen lijndiagrammen voor CPU", "noPrivateKeyTip": "De privésleutel bestaat niet, deze is mogelijk verwijderd of er is een configuratiefout.", "noPromptAgain": "Niet meer vragen", - "noUpdateAvailable": "Geen update beschikbaar", "node": "Node", "notAvailable": "Niet beschikbaar", - "note": "Opmerking", "onServerDetailPage": "Op serverdetailspagina", "onlyOneLine": "Alleen als één regel weergeven (scrollbaar)", "onlyWhenCoreBiggerThan8": "Alleen effectief wanneer het aantal cores > 8", - "open": "Openen", "openLastPath": "Open het laatste pad", "openLastPathTip": "Verschillende servers hebben verschillende logs, en de log is het pad naar de uitgang", "parseContainerStatsTip": "Het parsen van de bezettingsstatus van Docker is relatief langzaam.", - "paste": "Plakken", - "path": "Pad", "percentOfSize": "{percent}% van {size}", "permission": "Machtigingen", "pingAvg": "Gem:", "pingInputIP": "Voer een doel-IP / domein in.", "pingNoServer": "Geen server om te pingen.\nVoeg een server toe in het servertabblad.", "pkg": "Pkg", - "pkgUpgradeTip": "Maak een back-up van uw systeem voordat u een update uitvoert.", - "platformNotSupportUpdate": "Huidig platform ondersteunt geen updates in de app.\nBouw het alstublieft uit bron en installeer het.", "plugInType": "Invoegingstype", "port": "Poort", "preview": "Voorbeeld", - "primaryColorSeed": "Basis kleurzaad", "privateKey": "Privésleutel", "process": "Proces", "pushToken": "Push-token", @@ -165,7 +154,6 @@ "serverDetailOrder": "Volgorde van widget op detailpagina", "serverFuncBtns": "Server functieknoppen", "serverOrder": "Servervolgorde", - "setting": "Instellingen", "sftpDlPrepare": "Voorbereiden om verbinding te maken...", "sftpEditorTip": "Indien leeg, gebruik de ingebouwde bestandseditor van de app. Indien een waarde aanwezig is, gebruik de editor van de externe server, bijvoorbeeld `vim` (aanbevolen om automatisch te detecteren volgens `EDITOR`).", "sftpRmrDirSummary": "Gebruik `rm -r` om een map te verwijderen in SFTP.", @@ -187,7 +175,6 @@ "stop": "Stoppen", "stopped": "Gestopt", "storage": "Opslag", - "success": "Succes", "supportFmtArgs": "De volgende opmaakparameters worden ondersteund:", "suspend": "Ophangen", "suspendTip": "De opschortfunctie vereist rootrechten en systemd-ondersteuning.", @@ -203,7 +190,6 @@ "textScaler": "Tekstschaler", "textScalerTip": "1.0 => 100% (oorspronkelijke grootte), werkt alleen op het gedeelte van de serverpagina van het lettertype, niet aanbevolen om te wijzigen.", "theme": "Thema", - "themeMode": "Themamodus", "time": "Tijd", "times": "Keer", "total": "Totaal", @@ -213,11 +199,8 @@ "unknown": "Onbekend", "unkownConvertMode": "Onbekende conversiemodus", "update": "Bijwerken", - "updateAll": "Alles bijwerken", "updateIntervalEqual0": "Het staat op 0, het zal niet automatisch bijwerken\nCPU status kan niet berekend worden.", "updateServerStatusInterval": "Interne server status bijwerking interval", - "updateTip": "Bijwerking: v1.0.{newest}", - "updateTipTooLow": "Huidige versie is te oud, werk aub bij naar versie v1.0.{newest}", "upload": "Upload", "upsideDown": "Ondersteboven", "uptime": "Uptime", @@ -226,9 +209,6 @@ "useNoPwd": "Er zal geen wachtwoord gebruikt worden", "usePodmanByDefault": "Valt terug op Podman", "used": "Gebruikt", - "versionHaveUpdate": "Gevonden: v1.0.{build}, klik om bij te werken", - "versionUnknownUpdate": "Huidig: v1.0.{build}, klik om te kijken naar een nieuwere versie", - "versionUpdated": "Huidig: v1.0.{build}, is bijgewerkt naar de laatste versie", "view": "Weergave", "viewErr": "Zie foutmelding", "virtKeyHelpClipboard": "Kopiëren naar het klembord als de geselecteerde terminal niet leeg is, anders de inhoud van het klembord plakken in de terminal.", diff --git a/lib/l10n/app_pt.arb b/lib/l10n/app_pt.arb index e648979d..3c1b7c41 100644 --- a/lib/l10n/app_pt.arb +++ b/lib/l10n/app_pt.arb @@ -1,6 +1,5 @@ { "@@locale": "pt", - "about": "Sobre", "aboutThanks": "Agradecimentos a todos os participantes.", "acceptBeta": "Aceitar atualizações da versão de teste", "addSystemPrivateKeyTip": "Atualmente, não há nenhuma chave privada. Gostaria de adicionar a chave do sistema (~/.ssh/id_rsa)?", @@ -76,7 +75,6 @@ "ignoreCert": "Ignorar certificado", "image": "Imagem", "imagesList": "Lista de imagens", - "inAppUpdate": "Atualizar dentro do app? Caso contrário, baixe usando um navegador.", "init": "Inicializar", "inner": "Interno", "install": "Instalar", @@ -87,7 +85,6 @@ "keepStatusWhenErr": "Manter o status anterior do servidor", "keepStatusWhenErrTip": "Limitado a erros de execução de scripts", "keyAuth": "Autenticação por chave", - "language": "Idioma", "letterCache": "Cache de letras", "letterCacheTip": "Recomendado desativar, mas após desativar, será impossível inserir caracteres CJK.", "license": "Licença de código aberto", @@ -112,31 +109,23 @@ "noLineChartForCpu": "Não utilizar gráficos de linhas para a CPU", "noPrivateKeyTip": "A chave privada não existe, pode ter sido deletada ou há um erro de configuração.", "noPromptAgain": "Não perguntar novamente", - "noUpdateAvailable": "Sem atualizações disponíveis", "node": "Nó", "notAvailable": "Indisponível", - "note": "Nota", "onServerDetailPage": "Na página de detalhes do servidor", "onlyOneLine": "Exibir apenas como uma linha (rolável)", "onlyWhenCoreBiggerThan8": "Efetivo apenas quando o número de núcleos > 8", - "open": "Abrir", "openLastPath": "Abrir o último caminho", "openLastPathTip": "Registros diferentes para servidores diferentes, e registra o caminho ao sair", "parseContainerStatsTip": "Análise de status do Docker pode ser lenta", - "paste": "Colar", - "path": "Caminho", "percentOfSize": "{percent}% de {size}", "permission": "Permissões", "pingAvg": "Média:", "pingInputIP": "Por favor, insira o IP ou domínio alvo", "pingNoServer": "Nenhum servidor disponível para Ping\nPor favor, adicione um servidor na aba de servidores e tente novamente", "pkg": "Gerenciamento de pacotes", - "pkgUpgradeTip": "Por favor, faça backup do seu sistema antes de atualizar.", - "platformNotSupportUpdate": "Atualização não suportada na plataforma atual, por favor, instale manualmente a versão mais recente do código-fonte", "plugInType": "Tipo de Inserção", "port": "Porta", "preview": "Pré-visualização", - "primaryColorSeed": "Semente da cor primária", "privateKey": "Chave privada", "process": "Processo", "pushToken": "Token de notificação push", @@ -165,7 +154,6 @@ "serverDetailOrder": "Ordem dos componentes na página de detalhes do servidor", "serverFuncBtns": "Botões de função do servidor", "serverOrder": "Ordem do servidor", - "setting": "Configurações", "sftpDlPrepare": "Preparando para conectar ao servidor...", "sftpEditorTip": "Se vazio, use o editor de arquivos integrado do aplicativo. Se houver um valor, use o editor do servidor remoto, por exemplo, `vim` (recomendado detectar automaticamente de acordo com `EDITOR`).", "sftpRmrDirSummary": "Usar `rm -r` em SFTP para excluir pastas", @@ -187,7 +175,6 @@ "stop": "Parar", "stopped": "Parado", "storage": "Armazenamento", - "success": "Sucesso", "supportFmtArgs": "Suporta os seguintes argumentos formatados:", "suspend": "Suspender", "suspendTip": "A função de suspensão requer permissões de root e suporte do systemd.", @@ -203,7 +190,6 @@ "textScaler": "Escala de texto", "textScalerTip": "1.0 => 100% (tamanho original), afeta apenas algumas fontes na página do servidor, não é recomendado alterar.", "theme": "Tema", - "themeMode": "Modo do tema", "time": "Tempo", "times": "Vezes", "total": "Total", @@ -213,11 +199,8 @@ "unknown": "Desconhecido", "unkownConvertMode": "Modo de conversão desconhecido", "update": "Atualizar", - "updateAll": "Atualizar tudo", "updateIntervalEqual0": "Se definido como 0, o estado do servidor não será atualizado automaticamente.\nE o uso da CPU não poderá ser calculado.", "updateServerStatusInterval": "Intervalo de atualização do estado do servidor", - "updateTip": "Nova versão: v1.0.{newest}", - "updateTipTooLow": "Versão atual muito antiga, por favor, atualize para v1.0.{newest}", "upload": "Upload", "upsideDown": "Inverter verticalmente", "uptime": "Tempo de atividade", @@ -226,9 +209,6 @@ "useNoPwd": "Será usado sem senha", "usePodmanByDefault": "Usar Podman por padrão", "used": "Usado", - "versionHaveUpdate": "Nova versão encontrada: v1.0.{build}, clique para atualizar", - "versionUnknownUpdate": "Versão atual: v1.0.{build}, clique para verificar atualizações", - "versionUpdated": "Versão atual: v1.0.{build}, já está atualizado", "view": "Visualização", "viewErr": "Ver erro", "virtKeyHelpClipboard": "Se houver texto selecionado no terminal, copia para a área de transferência, caso contrário, cola o conteúdo da área de transferência no terminal.", diff --git a/lib/l10n/app_ru.arb b/lib/l10n/app_ru.arb index 8cb849f4..b0327075 100644 --- a/lib/l10n/app_ru.arb +++ b/lib/l10n/app_ru.arb @@ -1,6 +1,5 @@ { "@@locale": "ru", - "about": "о", "aboutThanks": "Благодарности всем участникам.", "acceptBeta": "Принять обновления тестовой версии", "addSystemPrivateKeyTip": "В данный момент приватные ключи отсутствуют. Добавить системный приватный ключ (~/.ssh/id_rsa)?", @@ -76,7 +75,6 @@ "ignoreCert": "Игнорировать сертификат", "image": "образ", "imagesList": "список образов", - "inAppUpdate": "Обновить в приложении? В противном случае загрузите с помощью браузера.", "init": "Инициализировать", "inner": "встроенный", "install": "установить", @@ -87,7 +85,6 @@ "keepStatusWhenErr": "Сохранять статус сервера при ошибке", "keepStatusWhenErrTip": "Применимо только в случае ошибки выполнения скрипта", "keyAuth": "аутентификация по ключу", - "language": "язык", "letterCache": "Кэширование букв", "letterCacheTip": "Рекомендуется отключить, но после отключения будет невозможно вводить символы CJK.", "license": "лицензия", @@ -112,31 +109,23 @@ "noLineChartForCpu": "Не используйте линейные графики для ЦП", "noPrivateKeyTip": "Приватный ключ не существует, возможно, он был удален или есть ошибка в настройках.", "noPromptAgain": "Больше не спрашивать", - "noUpdateAvailable": "нет доступных обновлений", "node": "Узел", "notAvailable": "Недоступно", - "note": "заметка", "onServerDetailPage": "на странице деталей сервера", "onlyOneLine": "Отображать только в одной строке (прокручиваемо)", "onlyWhenCoreBiggerThan8": "Действует только при количестве ядер > 8", - "open": "открыть", "openLastPath": "открыть последний путь", "openLastPathTip": "Для разных серверов будут сохранены разные записи, записывается путь при выходе", "parseContainerStatsTip": "Анализ статуса использования Docker может быть медленным", - "paste": "вставить", - "path": "путь", "percentOfSize": "{percent}% от {size}", "permission": "Разрешения", "pingAvg": "Среднее:", "pingInputIP": "Пожалуйста, введите целевой IP или доменное имя", "pingNoServer": "Нет доступных серверов для Ping\nПожалуйста, добавьте серверы на вкладке серверов и попробуйте снова", "pkg": "менеджер пакетов", - "pkgUpgradeTip": "Пожалуйста, сделайте резервную копию системы перед обновлением.", - "platformNotSupportUpdate": "Текущая платформа не поддерживает обновления, пожалуйста, вручную установите последнюю версию из исходного кода", "plugInType": "Тип вставки", "port": "порт", "preview": "предпросмотр", - "primaryColorSeed": "основной цветовой тон", "privateKey": "приватный ключ", "process": "процесс", "pushToken": "токен уведомлений", @@ -165,7 +154,6 @@ "serverDetailOrder": "порядок элементов на странице деталей сервера", "serverFuncBtns": "кнопки функций сервера", "serverOrder": "порядок серверов", - "setting": "настройки", "sftpDlPrepare": "Подготовка к подключению к серверу...", "sftpEditorTip": "Если пусто, используйте встроенный редактор файлов приложения. Если значение указано, используйте редактор удаленного сервера, например, `vim` (рекомендуется автоматически определять согласно `EDITOR`).", "sftpRmrDirSummary": "Использовать `rm -r` в SFTP для удаления папок", @@ -187,7 +175,6 @@ "stop": "остановить", "stopped": "остановлено", "storage": "Хранение", - "success": "успех", "supportFmtArgs": "Поддерживаются следующие форматы аргументов:", "suspend": "приостановить", "suspendTip": "Функция приостановки требует прав root и поддержки systemd.", @@ -203,7 +190,6 @@ "textScaler": "масштабирование текста", "textScalerTip": "1.0 => 100% (исходный размер), применяется только к части шрифтов на странице сервера, изменение не рекомендуется.", "theme": "тема", - "themeMode": "режим темы", "time": "время", "times": "раз", "total": "всего", @@ -213,11 +199,8 @@ "unknown": "неизвестно", "unkownConvertMode": "неизвестный режим конвертации", "update": "обновление", - "updateAll": "обновить все", "updateIntervalEqual0": "Если установлено в 0, статус сервера не будет автоматически обновляться.\nТакже не будет рассчитано использование CPU.", "updateServerStatusInterval": "интервал обновления статуса сервера", - "updateTip": "Новая версия: v1.0.{newest}", - "updateTipTooLow": "Текущая версия слишком старая, пожалуйста, обновитесь до v1.0.{newest}", "upload": "загрузить", "upsideDown": "перевернуть", "uptime": "время работы", @@ -226,9 +209,6 @@ "useNoPwd": "будет использоваться без пароля", "usePodmanByDefault": "использовать Podman по умолчанию", "used": "использовано", - "versionHaveUpdate": "Найдена новая версия: v1.0.{build}, нажмите для обновления", - "versionUnknownUpdate": "Текущая: v1.0.{build}, нажмите для проверки обновлений", - "versionUpdated": "Текущая: v1.0.{build}, последняя версия", "view": "Вид", "viewErr": "просмотр ошибок", "virtKeyHelpClipboard": "Если в терминале выделен текст, то он копируется в буфер обмена, в противном случае содержимое буфера вставляется в терминал.", diff --git a/lib/l10n/app_tr.arb b/lib/l10n/app_tr.arb index 8073d34d..60a70772 100644 --- a/lib/l10n/app_tr.arb +++ b/lib/l10n/app_tr.arb @@ -1,6 +1,5 @@ { "@@locale": "tr", - "about": "Hakkında", "aboutThanks": "Katılım gösteren aşağıdaki kişilere teşekkür ederiz.", "acceptBeta": "Beta sürüm güncellemelerini kabul et", "addSystemPrivateKeyTip": "Şu anda özel anahtar yok, sistemle geleni (~/.ssh/id_rsa) eklemek ister misiniz?", @@ -76,7 +75,6 @@ "ignoreCert": "Sertifikayı yoksay", "image": "Resim", "imagesList": "Resim listesi", - "inAppUpdate": "Uygulama içinde güncelle? Aksi takdirde, bir tarayıcı kullanarak indirin.", "init": "Başlat", "inner": "İç", "install": "Kur", @@ -87,7 +85,6 @@ "keepStatusWhenErr": "Son sunucu durumunu koru", "keepStatusWhenErrTip": "Yalnızca betik yürütme sırasında bir hata oluştuğunda", "keyAuth": "Anahtar Doğrulama", - "language": "Dil", "letterCache": "Harf önbelleği", "letterCacheTip": "Devre dışı bırakılması önerilir, ancak devre dışı bırakıldıktan sonra CJK karakterleri girilemez.", "license": "Lisans", @@ -112,31 +109,23 @@ "noLineChartForCpu": "CPU için çizgi grafik kullanma", "noPrivateKeyTip": "Özel anahtar mevcut değil, silinmiş olabilir veya bir yapılandırma hatası vardır.", "noPromptAgain": "Tekrar hatırlatma", - "noUpdateAvailable": "Güncelleme yok", "node": "Düğüm", "notAvailable": "Kullanılamaz", - "note": "Not", "onServerDetailPage": "Sunucu detay sayfasında", "onlyOneLine": "Yalnızca bir satır olarak göster (kaydırılabilir)", "onlyWhenCoreBiggerThan8": "Yalnızca çekirdek sayısı 8'den fazla olduğunda çalışır", - "open": "Aç", "openLastPath": "Son yolu aç", "openLastPathTip": "Farklı sunucuların farklı günlükleri olacaktır ve çıkış yolu log dosyasıdır", "parseContainerStatsTip": "Docker'ın işgal durumunu analiz etmek nispeten yavaştır.", - "paste": "Yapıştır", - "path": "Yol", "percentOfSize": "{size}'nin %{percent}'i", "permission": "İzinler", "pingAvg": "Ortalama:", "pingInputIP": "Lütfen bir hedef IP / etki alanı girin.", "pingNoServer": "Ping yapılacak sunucu yok.\nLütfen sunucu sekmesine bir sunucu ekleyin.", "pkg": "Paket", - "pkgUpgradeTip": "Güncellemeden önce sisteminizi yedekleyin.", - "platformNotSupportUpdate": "Mevcut platform uygulama içi güncellemeyi desteklemiyor.\nLütfen kaynaktan oluşturun ve yükleyin.", "plugInType": "Takma Türü", "port": "Port", "preview": "Önizleme", - "primaryColorSeed": "Birincil renk tohumu", "privateKey": "Özel Anahtar", "process": "Süreç", "pushToken": "Push token", @@ -165,7 +154,6 @@ "serverDetailOrder": "Ayrıntı sayfası widget sırası", "serverFuncBtns": "Sunucu işlev düğmeleri", "serverOrder": "Sunucu sırası", - "setting": "Ayarlar", "sftpDlPrepare": "Bağlantı hazırlığı yapılıyor...", "sftpEditorTip": "Boşsa, uygulamanın yerleşik dosya düzenleyicisini kullanın. Bir değer varsa, uzak sunucunun düzenleyicisini kullanın, örneğin, `vim` (otomatik olarak `EDITOR`'a göre algılamanız önerilir).", "sftpRmrDirSummary": "SFTP'de bir klasörü silmek için `rm -r` kullanın.", @@ -187,7 +175,6 @@ "stop": "Durdur", "stopped": "Durduruldu", "storage": "Depolama", - "success": "Başarı", "supportFmtArgs": "Aşağıdaki biçimlendirme parametreleri desteklenir:", "suspend": "Askıya al", "suspendTip": "Askıya alma işlevi kök izinleri ve systemd desteği gerektirir.", @@ -203,7 +190,6 @@ "textScaler": "Metin ölçekleyici", "textScalerTip": "1.0 => %100 (orijinal boyut), yalnızca sunucu sayfası kısmındaki yazı tipine çalışır, değiştirilmesi önerilmez.", "theme": "Tema", - "themeMode": "Tema modu", "time": "Zaman", "times": "Zamanlar", "total": "Toplam", @@ -213,11 +199,8 @@ "unknown": "Bilinmeyen", "unkownConvertMode": "Bilinmeyen dönüştürme modu", "update": "Güncelle", - "updateAll": "Tümünü güncelle", "updateIntervalEqual0": "0 olarak ayarladınız, otomatik olarak güncellenmeyecek.\nCPU durumunu hesaplayamıyor.", "updateServerStatusInterval": "Sunucu durumu güncelleme aralığı", - "updateTip": "Güncelleme: v1.0.{newest}", - "updateTipTooLow": "Geçerli sürüm çok düşük, lütfen v1.0.{newest} sürümüne güncelleyin", "upload": "Yükle", "upsideDown": "Ters", "uptime": "Çalışma süresi", @@ -226,9 +209,6 @@ "useNoPwd": "Şifre kullanılmayacak", "usePodmanByDefault": "Varsayılan olarak Podman kullan", "used": "Kullanıldı", - "versionHaveUpdate": "Bulundu: v1.0.{build}, güncellemek için tıklayın", - "versionUnknownUpdate": "Mevcut: v1.0.{build}, güncellemeleri kontrol etmek için tıklayın", - "versionUpdated": "Mevcut: v1.0.{build}, güncel", "view": "Görünüm", "viewErr": "Hataya bakın", "virtKeyHelpClipboard": "Seçilen terminal boş değilse panoya kopyalayın, aksi takdirde panodaki içeriği terminale yapıştırın.", diff --git a/lib/l10n/app_zh.arb b/lib/l10n/app_zh.arb index 5af24fdf..46fd03a9 100644 --- a/lib/l10n/app_zh.arb +++ b/lib/l10n/app_zh.arb @@ -1,6 +1,5 @@ { "@@locale": "zh", - "about": "关于", "aboutThanks": "感谢以下参与的各位。", "acceptBeta": "接受测试版更新推送", "addSystemPrivateKeyTip": "当前没有任何私钥,是否添加系统自带的(~/.ssh/id_rsa)?", @@ -76,7 +75,6 @@ "ignoreCert": "忽略证书", "image": "镜像", "imagesList": "镜像列表", - "inAppUpdate": "在 App 内更新?否则使用浏览器下载", "init": "初始化", "inner": "内置", "install": "安装", @@ -87,7 +85,6 @@ "keepStatusWhenErr": "保留上次的服务器状态", "keepStatusWhenErrTip": "仅限于执行脚本出错", "keyAuth": "密钥认证", - "language": "语言", "letterCache": "输入法字符缓存", "letterCacheTip": "推荐关闭,但是关闭后无法输入 CJK 等文字", "license": "证书", @@ -112,31 +109,23 @@ "noLineChartForCpu": "CPU 不使用折线图", "noPrivateKeyTip": "私钥不存在,可能已被删除/配置错误", "noPromptAgain": "不再提示", - "noUpdateAvailable": "没有可用更新", "node": "节点", "notAvailable": "不可用", - "note": "备注", "onServerDetailPage": "在服务器详情页", "onlyOneLine": "仅显示为一行(可滚动)", "onlyWhenCoreBiggerThan8": "仅当核心数大于 8 时生效", - "open": "打开", "openLastPath": "打开上次的路径", "openLastPathTip": "不同的服务器会有不同的记录,且记录的是退出时的路径", "parseContainerStatsTip": "Docker 解析占用状态较为缓慢", - "paste": "粘贴", - "path": "路径", "percentOfSize": "{size} 的 {percent}%", "permission": "权限", "pingAvg": "平均:", "pingInputIP": "请输入目标IP或域名", "pingNoServer": "没有服务器可用于 Ping\n请在服务器 tab 添加服务器后再试", "pkg": "包管理", - "pkgUpgradeTip": "请在更新前备份系统。", - "platformNotSupportUpdate": "当前平台不支持更新,请编译最新源码后手动安装", "plugInType": "插入类型", "port": "端口", "preview": "预览", - "primaryColorSeed": "主题色种子", "privateKey": "私钥", "process": "进程", "pushToken": "消息推送 Token", @@ -165,7 +154,6 @@ "serverDetailOrder": "详情页部件顺序", "serverFuncBtns": "服务器功能按钮", "serverOrder": "服务器顺序", - "setting": "设置", "sftpDlPrepare": "准备连接至服务器...", "sftpEditorTip": "如果为空, 使用App内置的文件编辑器. 如果有值, 这是用远程服务器的编辑器, 例如 `vim` (建议根据 `EDITOR` 自动获取).", "sftpRmrDirSummary": "在 SFTP 中使用 `rm -r` 来删除文件夹", @@ -187,7 +175,6 @@ "stop": "停止", "stopped": "已停止", "storage": "存储", - "success": "成功", "supportFmtArgs": "支持以下格式化参数:", "suspend": "挂起", "suspendTip": "suspend 功能需要 root 权限及 systemd 支持。", @@ -203,7 +190,6 @@ "textScaler": "字体缩放", "textScalerTip": "1.0 => 100%(原大小),仅作用于服务器页面部分字体,不建议修改。", "theme": "主题", - "themeMode": "主题模式", "time": "时间", "times": "次", "total": "总共", @@ -213,11 +199,8 @@ "unknown": "未知", "unkownConvertMode": "未知转换模式", "update": "更新", - "updateAll": "更新全部", "updateIntervalEqual0": "你设置为 0,服务器状态不会自动刷新。\n且不能计算 CPU 使用情况。", "updateServerStatusInterval": "服务器状态刷新间隔", - "updateTip": "新版本: v1.0.{newest}", - "updateTipTooLow": "当前版本过低,请升级至 v1.0.{newest}", "upload": "上传", "upsideDown": "上下交换", "uptime": "启动时长", @@ -226,9 +209,6 @@ "useNoPwd": "将会使用无密码", "usePodmanByDefault": "默认使用 Podman", "used": "已用", - "versionHaveUpdate": "找到新版本:v1.0.{build}, 点击更新", - "versionUnknownUpdate": "当前:v1.0.{build},点击检查更新", - "versionUpdated": "当前:v1.0.{build}, 已是最新版本", "view": "视图", "viewErr": "查看错误", "virtKeyHelpClipboard": "如果终端有选中字符,则复制选中字符至剪切板,否则粘贴剪切板内容至终端。", diff --git a/lib/l10n/app_zh_tw.arb b/lib/l10n/app_zh_tw.arb index 40e1ff70..06c84c59 100644 --- a/lib/l10n/app_zh_tw.arb +++ b/lib/l10n/app_zh_tw.arb @@ -1,6 +1,5 @@ { "@@locale": "zh_TW", - "about": "關於", "aboutThanks": "感謝以下參與的各位。", "acceptBeta": "接受測試版更新推送", "addSystemPrivateKeyTip": "當前沒有任何私鑰,是否添加系統自帶的 (~/.ssh/id_rsa)?", @@ -76,7 +75,6 @@ "ignoreCert": "忽略證書", "image": "鏡像", "imagesList": "鏡像列表", - "inAppUpdate": "在 App 內更新?否則使用瀏覽器下載。", "init": "初始化", "inner": "內建", "install": "安裝", @@ -87,7 +85,6 @@ "keepStatusWhenErr": "保留上次的伺服器狀態", "keepStatusWhenErrTip": "僅在執行腳本出錯時", "keyAuth": "密鑰認證", - "language": "語言", "letterCache": "输入法字符緩存", "letterCacheTip": "建議關閉,但關閉後將無法輸入 CJK 等文字。", "license": "證書", @@ -112,31 +109,23 @@ "noLineChartForCpu": "CPU 不使用折線圖", "noPrivateKeyTip": "私鑰不存在,可能已被刪除/配置錯誤。", "noPromptAgain": "不再提示", - "noUpdateAvailable": "沒有可用更新", "node": "節點", "notAvailable": "不可用", - "note": "備註", "onServerDetailPage": "在伺服器詳情頁", "onlyOneLine": "僅顯示為一行(可滾動)", "onlyWhenCoreBiggerThan8": "僅當核心數大於 8 時生效", - "open": "打開", "openLastPath": "打開上次的路徑", "openLastPathTip": "不同的伺服器會有不同的記錄,且記錄的是退出時的路徑", "parseContainerStatsTip": "Docker 解析佔用狀態較為緩慢", - "paste": "貼上", - "path": "路徑", "percentOfSize": "{size} 的 {percent}%", "permission": "權限", "pingAvg": "平均:", "pingInputIP": "請輸入目標 IP 或域名", "pingNoServer": "沒有伺服器可用於 Ping\n請在伺服器 Tab 新增伺服器後再試", "pkg": "包管理", - "pkgUpgradeTip": "請在更新前備份系統。", - "platformNotSupportUpdate": "當前平台不支持更新,請編譯最新原始碼後手動安裝", "plugInType": "插入類型", "port": "埠", "preview": "預覽", - "primaryColorSeed": "主要色調種子", "privateKey": "私鑰", "process": "行程", "pushToken": "消息推送 Token", @@ -165,7 +154,6 @@ "serverDetailOrder": "詳情頁部件順序", "serverFuncBtns": "伺服器功能按鈕", "serverOrder": "伺服器順序", - "setting": "設置", "sftpDlPrepare": "準備連接至伺服器...", "sftpEditorTip": "如果為空, 使用App內置的文件編輯器。如果有值, 則使用遠程伺服器的編輯器, 例如 `vim`(建議根據 `EDITOR` 自動獲取)。", "sftpRmrDirSummary": "在 SFTP 中使用 `rm -r` 來刪除文件夾", @@ -187,7 +175,6 @@ "stop": "停止", "stopped": "已停止", "storage": "存儲", - "success": "成功", "supportFmtArgs": "支援以下格式化參數:", "suspend": "挂起", "suspendTip": "suspend 功能需要 root 權限及 systemd 支持。", @@ -203,7 +190,6 @@ "textScaler": "字型縮放", "textScalerTip": "1.0 => 100%(原大小),僅作用於伺服器頁面部分字型,不建議修改。", "theme": "主題", - "themeMode": "主題模式", "time": "時間", "times": "次", "total": "總共", @@ -213,11 +199,8 @@ "unknown": "未知", "unkownConvertMode": "未知轉換模式", "update": "更新", - "updateAll": "更新全部", "updateIntervalEqual0": "你設置為 0,伺服器狀態不會自動更新。\n且不能計算CPU使用情況。", "updateServerStatusInterval": "伺服器狀態更新間隔", - "updateTip": "新版本: v1.0.{newest}", - "updateTipTooLow": "當前版本過低,請升級至 v1.0.{newest}", "upload": "上傳", "upsideDown": "上下交換", "uptime": "啟動時長", @@ -226,9 +209,6 @@ "useNoPwd": "将使用無密碼", "usePodmanByDefault": "默認使用 Podman", "used": "已用", - "versionHaveUpdate": "找到新版本:v1.0.{build}, 點擊更新", - "versionUnknownUpdate": "當前:v1.0.{build},點擊檢查更新", - "versionUpdated": "當前:v1.0.{build}, 已是最新版本", "view": "視圖", "viewErr": "查看錯誤", "virtKeyHelpClipboard": "如果終端有選中字元,則復製選中字元至剪貼簿,否則粘貼剪貼簿內容至終端。", diff --git a/lib/view/page/backup.dart b/lib/view/page/backup.dart index 7d06c0e6..c95d22dc 100644 --- a/lib/view/page/backup.dart +++ b/lib/view/page/backup.dart @@ -115,7 +115,7 @@ class BackupPage extends StatelessWidget { initiallyExpanded: false, children: [ ListTile( - title: Text(l10n.setting), + title: Text(libL10n.setting), trailing: const Icon(Icons.settings), onTap: () async => _onTapWebdavSetting(context), ), @@ -189,7 +189,7 @@ class BackupPage extends StatelessWidget { onTap: () async { final path = await Backup.backup(); Pfs.copy(await File(path).readAsString()); - context.showSnackBar(l10n.success); + context.showSnackBar(libL10n.success); }, ), ListTile( @@ -394,7 +394,7 @@ class BackupPage extends StatelessWidget { context.showSnackBar(result); return; } - context.showSnackBar(l10n.success); + context.showSnackBar(libL10n.success); Webdav.changeClient(url.text, user.text, pwd.text); } } @@ -466,7 +466,7 @@ class BackupPage extends StatelessWidget { }, ); if (err != null || suc != true) return; - context.showSnackBar(l10n.success); + context.showSnackBar(libL10n.success); } } catch (e, s) { context.showErrDialog(e: e, s: s, operation: libL10n.import); diff --git a/lib/view/page/editor.dart b/lib/view/page/editor.dart index cfe2b2ab..97d09ccd 100644 --- a/lib/view/page/editor.dart +++ b/lib/view/page/editor.dart @@ -123,7 +123,7 @@ class _EditorPageState extends State { actions: [ PopupMenuButton( icon: const Icon(Icons.language), - tooltip: l10n.language, + tooltip: libL10n.language, onSelected: (value) { _controller.language = Highlights.all[value]; _langCode = value; diff --git a/lib/view/page/home/home.dart b/lib/view/page/home/home.dart index 699ba574..49395870 100644 --- a/lib/view/page/home/home.dart +++ b/lib/view/page/home/home.dart @@ -44,7 +44,6 @@ class _HomePageState extends State super.initState(); SystemUIs.switchStatusBar(hide: false); WidgetsBinding.instance.addObserver(this); - _selectIndex.value = Stores.setting.launchPage.fetch(); // avoid index out of range if (_selectIndex.value >= AppTab.values.length || _selectIndex.value < 0) { _selectIndex.value = 0; @@ -234,7 +233,7 @@ class _HomePageState extends State children: [ ListTile( leading: const Icon(Icons.settings), - title: Text(l10n.setting), + title: Text(libL10n.setting), onTap: () => AppRoutes.settings().go(context), onLongPress: _onLongPressSetting, ), @@ -255,7 +254,7 @@ class _HomePageState extends State ), ListTile( leading: const Icon(OctIcons.feed_discussion), - title: Text('${l10n.about} & ${libL10n.feedback}'), + title: Text('${libL10n.about} & ${libL10n.feedback}'), onTap: _showAboutDialog, ) ].map((e) => CardX(child: e)).toList(), @@ -265,7 +264,7 @@ class _HomePageState extends State void _showAboutDialog() { context.showRoundDialog( - title: l10n.about, + title: libL10n.about, child: _buildAboutContent(), actions: [ TextButton( @@ -376,7 +375,7 @@ ${GithubIds.participants.map((e) => '[$e](${e.url})').join(' ')} final result = await AppRoutes.editor( text: text, langCode: 'json', - title: l10n.setting, + title: libL10n.setting, ).go(context); if (result == null) { return; diff --git a/lib/view/page/pve.dart b/lib/view/page/pve.dart index 1858451b..889ff401 100644 --- a/lib/view/page/pve.dart +++ b/lib/view/page/pve.dart @@ -429,7 +429,7 @@ final class _PvePageState extends State { fn: () => func(item.node, item.id), ); if (suc == true) { - context.showSnackBar(l10n.success); + context.showSnackBar(libL10n.success); } else { context.showSnackBar(err?.toString() ?? libL10n.fail); } diff --git a/lib/view/page/server/detail/view.dart b/lib/view/page/server/detail/view.dart index dba0c80d..186ee216 100644 --- a/lib/view/page/server/detail/view.dart +++ b/lib/view/page/server/detail/view.dart @@ -91,7 +91,7 @@ class _ServerDetailPageState extends State } Widget _buildMainPage(Server si) { - final buildFuncs = !Stores.setting.moveOutServerTabFuncBtns.fetch(); + final buildFuncs = !Stores.setting.moveServerFuncs.fetch(); final logoUrl = si.spi.custom?.logoUrl ?? Stores.setting.serverLogoUrl.fetch().selfIfNotNullEmpty; final buildLogo = logoUrl != null; @@ -157,7 +157,7 @@ class _ServerDetailPageState extends State child: ExpandTile( leading: const Icon(MingCute.information_fill, size: 20), initiallyExpanded: _getInitExpand(ss.more.entries.length), - title: Text(l10n.about), + title: Text(libL10n.about), childrenPadding: const EdgeInsets.symmetric( horizontal: 17, vertical: 11, diff --git a/lib/view/page/server/edit.dart b/lib/view/page/server/edit.dart index ffd78470..7f5faba2 100644 --- a/lib/view/page/server/edit.dart +++ b/lib/view/page/server/edit.dart @@ -432,7 +432,7 @@ class _ServerEditPageState extends State with AfterLayoutMixin { UIs.height7, ListTile( leading: const Icon(BoxIcons.bxs_help_circle), - title: Text(l10n.about), + title: Text(libL10n.about), subtitle: Text(l10n.wolTip, style: UIs.text12Grey), ).cardx, Input( diff --git a/lib/view/page/server/tab.dart b/lib/view/page/server/tab.dart index cb0d3687..51f07bda 100644 --- a/lib/view/page/server/tab.dart +++ b/lib/view/page/server/tab.dart @@ -432,7 +432,7 @@ class _ServerPageState extends State ], ), UIs.height13, - if (Stores.setting.moveOutServerTabFuncBtns.fetch() && + if (Stores.setting.moveServerFuncs.fetch() && // Discussion #146 !Stores.setting.serverTabUseOldUI.fetch()) SizedBox( @@ -676,7 +676,7 @@ ${ss.err?.message ?? 'null'} if (flip) { return _kCardHeightFlip; } - if (Stores.setting.moveOutServerTabFuncBtns.fetch() && + if (Stores.setting.moveServerFuncs.fetch() && // Discussion #146 !Stores.setting.serverTabUseOldUI.fetch()) { return _kCardHeightMoveOutFuncs; diff --git a/lib/view/page/setting/entry.dart b/lib/view/page/setting/entry.dart index db3533f0..94af0afb 100644 --- a/lib/view/page/setting/entry.dart +++ b/lib/view/page/setting/entry.dart @@ -31,7 +31,7 @@ class _SettingPageState extends State { Widget build(BuildContext context) { return Scaffold( appBar: CustomAppBar( - title: Text(l10n.setting), + title: Text(libL10n.setting), actions: [ IconButton( icon: const Icon(Icons.delete), @@ -39,14 +39,14 @@ class _SettingPageState extends State { title: libL10n.attention, child: SimpleMarkdown( data: libL10n.askContinue( - '${libL10n.delete} **${libL10n.all}** ${l10n.setting}', + '${libL10n.delete} **${libL10n.all}** ${libL10n.setting}', ), ), actions: Btn.ok( onTap: () { context.pop(); _setting.box.deleteAll(_setting.box.keys); - context.showSnackBar(l10n.success); + context.showSnackBar(libL10n.success); }, red: true, ).toList, @@ -172,12 +172,12 @@ class _SettingPageState extends State { String display; if (val != null) { if (val > BuildData.build) { - display = l10n.versionHaveUpdate(val); + display = libL10n.versionHasUpdate(val); } else { - display = l10n.versionUpdated(BuildData.build); + display = libL10n.versionUpdated(BuildData.build); } } else { - display = l10n.versionUnknownUpdate(BuildData.build); + display = libL10n.versionUnknownUpdate(BuildData.build); } return Text(display, style: UIs.textGrey); }, @@ -196,12 +196,10 @@ class _SettingPageState extends State { Widget _buildUpdateInterval() { return ListTile( - title: Text( - l10n.updateServerStatusInterval, - ), + title: Text(l10n.updateServerStatusInterval), onTap: () async { final val = await context.showPickSingleDialog( - title: l10n.setting, + title: libL10n.setting, items: List.generate(10, (idx) => idx == 1 ? null : idx), initial: _setting.serverStatusUpdateInterval.fetch(), name: (p0) => p0 == 0 ? l10n.manual : '$p0 ${l10n.second}', @@ -223,7 +221,7 @@ class _SettingPageState extends State { Widget _buildAppColor() { return ListTile( leading: const Icon(Icons.colorize), - title: Text(l10n.primaryColorSeed), + title: Text(libL10n.primaryColorSeed), trailing: _setting.colorSeed.listenable().listenVal( (val) { final c = Color(val); @@ -233,7 +231,7 @@ class _SettingPageState extends State { onTap: () async { final ctrl = TextEditingController(text: UIs.primaryColor.toHex); await context.showRoundDialog( - title: l10n.primaryColorSeed, + title: libL10n.primaryColorSeed, child: StatefulBuilder(builder: (context, setState) { final children = [ /// Plugin [dynamic_color] is not supported on iOS @@ -353,10 +351,10 @@ class _SettingPageState extends State { final len = ThemeMode.values.length; return ListTile( leading: const Icon(MingCute.moon_stars_fill), - title: Text(l10n.themeMode), + title: Text(libL10n.themeMode), onTap: () async { final selected = await context.showPickSingleDialog( - title: l10n.themeMode, + title: libL10n.themeMode, items: List.generate(len + 2, (index) => index), name: (p0) => _buildThemeModeStr(p0), initial: _setting.themeMode.fetch(), @@ -392,13 +390,17 @@ class _SettingPageState extends State { } Widget _buildFont() { - final fontName = _setting.fontPath.fetch().getFileName(); return ListTile( leading: const Icon(MingCute.font_fill), title: Text(l10n.font), - trailing: Text( - fontName ?? libL10n.empty, - style: UIs.text15, + trailing: _setting.fontPath.listenable().listenVal( + (val) { + final fontName = val.getFileName(); + return Text( + fontName ?? libL10n.empty, + style: UIs.text15, + ); + }, ), onTap: () { context.showRoundDialog( @@ -496,10 +498,10 @@ class _SettingPageState extends State { Widget _buildLocale() { return ListTile( leading: const Icon(IonIcons.language), - title: Text(l10n.language), + title: Text(libL10n.language), onTap: () async { final selected = await context.showPickSingleDialog( - title: l10n.language, + title: libL10n.language, items: AppLocalizations.supportedLocales, name: (p0) => p0.nativeName, initial: _setting.locale.fetch().toLocale, @@ -658,10 +660,7 @@ class _SettingPageState extends State { leading: const Icon(MingCute.history_line), // title: Text(l10n.openLastPath), // subtitle: Text(l10n.openLastPathTip, style: UIs.textGrey), - title: TipText( - l10n.openLastPath, - l10n.openLastPathTip - ), + title: TipText(l10n.openLastPath, l10n.openLastPathTip), trailing: StoreSwitch(prop: _setting.sftpOpenLastPath), ); } @@ -727,7 +726,7 @@ class _SettingPageState extends State { for (final key in deleteKeys) { Stores.server.box.delete(key); } - context.showSnackBar(l10n.success); + context.showSnackBar(libL10n.success); }, ); } @@ -737,10 +736,7 @@ class _SettingPageState extends State { return ListTile( // title: Text(l10n.textScaler), // subtitle: Text(l10n.textScalerTip, style: UIs.textGrey), - title: TipText( - l10n.textScaler, - l10n.textScalerTip - ), + title: TipText(l10n.textScaler, l10n.textScalerTip), trailing: ValBuilder( listenable: _setting.textFactor.listenable(), builder: (val) => Text( @@ -790,11 +786,8 @@ class _SettingPageState extends State { return ListTile( // title: Text(l10n.location), // subtitle: Text(l10n.moveOutServerFuncBtnsHelp, style: UIs.text13Grey), - title: TipText( - l10n.location, - l10n.moveOutServerFuncBtnsHelp - ), - trailing: StoreSwitch(prop: _setting.moveOutServerTabFuncBtns), + title: TipText(l10n.location, l10n.moveOutServerFuncBtnsHelp), + trailing: StoreSwitch(prop: _setting.moveServerFuncs), ); } @@ -880,10 +873,7 @@ class _SettingPageState extends State { return ListTile( // title: Text(l10n.doubleColumnMode), // subtitle: Text(l10n.doubleColumnTip, style: UIs.textGrey), - title: TipText( - l10n.doubleColumnMode, - l10n.doubleColumnTip - ), + title: TipText(l10n.doubleColumnMode, l10n.doubleColumnTip), trailing: StoreSwitch(prop: _setting.doubleColumnServersPage), ); } @@ -897,7 +887,7 @@ class _SettingPageState extends State { if (func == null) return null; return ListTile( leading: const Icon(Icons.phone_android), - title: Text('${Pfs.type} ${l10n.setting}'), + title: Text('${Pfs.type} ${libL10n.setting}'), trailing: const Icon(Icons.keyboard_arrow_right), onTap: () => func(context), ); @@ -908,10 +898,7 @@ class _SettingPageState extends State { leading: const Icon(MingCute.code_line, size: _kIconSize), // title: Text(l10n.highlight), // subtitle: Text(l10n.editorHighlightTip, style: UIs.textGrey), - title: TipText( - l10n.highlight, - l10n.editorHighlightTip - ), + title: TipText(l10n.highlight, l10n.editorHighlightTip), trailing: StoreSwitch(prop: _setting.editorHighlight), ); } @@ -934,10 +921,7 @@ class _SettingPageState extends State { Widget _buildContainerTrySudo() { return ListTile( leading: const Icon(EvaIcons.person_done), - title: TipText( - l10n.trySudo, - l10n.containerTrySudoTip - ), + title: TipText(l10n.trySudo, l10n.containerTrySudoTip), trailing: StoreSwitch(prop: _setting.containerTrySudo), ); } @@ -955,10 +939,7 @@ class _SettingPageState extends State { leading: const Icon(MingCute.chart_line_line, size: _kIconSize), // title: Text(l10n.parseContainerStats), // subtitle: Text(l10n.parseContainerStatsTip, style: UIs.textGrey), - title: TipText( - l10n.stat, - l10n.parseContainerStatsTip - ), + title: TipText(l10n.stat, l10n.parseContainerStatsTip), trailing: StoreSwitch(prop: _setting.containerParseStat), ); } @@ -982,10 +963,7 @@ class _SettingPageState extends State { return ListTile( // title: Text(l10n.rememberPwdInMem), // subtitle: Text(l10n.rememberPwdInMemTip, style: UIs.textGrey), - title: TipText( - l10n.rememberPwdInMem, - l10n.rememberPwdInMemTip - ), + title: TipText(l10n.rememberPwdInMem, l10n.rememberPwdInMemTip), trailing: StoreSwitch(prop: _setting.rememberPwdInMem), ); } @@ -1163,9 +1141,7 @@ class _SettingPageState extends State { // style: UIs.textGrey, // ), title: TipText( - l10n.letterCache, - '${l10n.letterCacheTip}\n${l10n.needRestart}' - ), + l10n.letterCache, '${l10n.letterCacheTip}\n${l10n.needRestart}'), trailing: StoreSwitch(prop: _setting.letterCache), ); } diff --git a/lib/view/page/setting/platform/android.dart b/lib/view/page/setting/platform/android.dart index 3cba2556..dba98205 100644 --- a/lib/view/page/setting/platform/android.dart +++ b/lib/view/page/setting/platform/android.dart @@ -44,7 +44,7 @@ class _AndroidSettingsPageState extends State { map.forEach((key, value) { PrefStore.set(key, value); }); - context.showSnackBar(l10n.success); + context.showSnackBar(libL10n.success); } catch (e) { context.showSnackBar(e.toString()); } diff --git a/lib/view/page/setting/platform/ios.dart b/lib/view/page/setting/platform/ios.dart index 0ba9ab30..38c7da21 100644 --- a/lib/view/page/setting/platform/ios.dart +++ b/lib/view/page/setting/platform/ios.dart @@ -46,7 +46,7 @@ class _IOSSettingsPageState extends State { final val = _pushToken.value; if (val != null) { Pfs.copy(val); - context.showSnackBar(l10n.success); + context.showSnackBar(libL10n.success); } else { context.showSnackBar(libL10n.fail); } @@ -115,12 +115,11 @@ class _IOSSettingsPageState extends State { ); if (result == null) return; - final (suc, err) = await context.showLoadingDialog(fn: () async { + final (_, err) = await context.showLoadingDialog(fn: () async { await wc.updateApplicationContext({'urls': result}); - return true; }); - if (suc == true) { - context.showSnackBar(err?.toString() ?? l10n.success); + if (err == null) { + context.showSnackBar(libL10n.success); } } } diff --git a/lib/view/page/snippet/edit.dart b/lib/view/page/snippet/edit.dart index c4c4c628..984ac182 100644 --- a/lib/view/page/snippet/edit.dart +++ b/lib/view/page/snippet/edit.dart @@ -116,7 +116,7 @@ class _SnippetEditPageState extends State minLines: 3, maxLines: 3, type: TextInputType.multiline, - label: l10n.note, + label: libL10n.note, icon: Icons.note, suggestion: true, ), diff --git a/lib/view/page/storage/local.dart b/lib/view/page/storage/local.dart index 6872f671..8398f40e 100644 --- a/lib/view/page/storage/local.dart +++ b/lib/view/page/storage/local.dart @@ -310,7 +310,7 @@ class _LocalStoragePageState extends State { ), ListTile( leading: const Icon(Icons.open_in_new), - title: Text(l10n.open), + title: Text(libL10n.open), onTap: () { Pfs.share(path: file.absolute.path); }, diff --git a/lib/view/page/storage/sftp.dart b/lib/view/page/storage/sftp.dart index a03bcffe..be42f538 100644 --- a/lib/view/page/storage/sftp.dart +++ b/lib/view/page/storage/sftp.dart @@ -266,7 +266,7 @@ class _SftpPageState extends State with AfterLayoutMixin { return Input( autoFocus: true, icon: Icons.abc, - label: l10n.path, + label: libL10n.path, node: node, controller: controller, suggestion: true, @@ -381,9 +381,9 @@ class _SftpPageState extends State with AfterLayoutMixin { leading: const Icon(MingCute.copy_line), title: Text(l10n.copyPath), onTap: () { - Pfs.copy(_getRemotePath(file)); context.pop(); - context.showSnackBar(l10n.success); + Pfs.copy(_getRemotePath(file)); + context.showSnackBar(libL10n.success); }, ), ListTile( diff --git a/lib/view/widget/server_func_btns.dart b/lib/view/widget/server_func_btns.dart index e8354a59..f9d5bbd5 100644 --- a/lib/view/widget/server_func_btns.dart +++ b/lib/view/widget/server_func_btns.dart @@ -60,7 +60,7 @@ class ServerFuncBtns extends StatelessWidget { mainAxisAlignment: MainAxisAlignment.spaceAround, children: btns .map( - (e) => Stores.setting.moveOutServerTabFuncBtns.fetch() + (e) => Stores.setting.moveServerFuncs.fetch() ? IconButton( onPressed: () => _onTapMoreBtns(e, spi, context), padding: EdgeInsets.zero, diff --git a/pubspec.lock b/pubspec.lock index 3ababcf7..8ec84ea7 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -385,8 +385,8 @@ packages: dependency: "direct main" description: path: "." - ref: "v1.0.115" - resolved-ref: "1cf064e7b1e364a3022cae83cf549f6b32f364c5" + ref: "v1.0.116" + resolved-ref: "03f885413542d2370eb23fbaa483084ea5f27ce4" url: "https://github.com/lppcg/fl_lib" source: git version: "0.0.1" diff --git a/pubspec.yaml b/pubspec.yaml index 7517b552..01dc9102 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -61,7 +61,7 @@ dependencies: fl_lib: git: url: https://github.com/lppcg/fl_lib - ref: v1.0.115 + ref: v1.0.116 dependency_overrides: # dartssh2: