From fbfad8a3fd8e7a2072631dd2003662aa683227a1 Mon Sep 17 00:00:00 2001 From: balzack Date: Sat, 30 Sep 2023 21:25:20 -0700 Subject: [PATCH] translating admin dashboard strings --- app/mobile/src/constants/Strings.js | 64 ++++++++++++++++++++ app/mobile/src/dashboard/Dashboard.jsx | 42 ++++++------- app/mobile/src/dashboard/Dashboard.styled.js | 4 +- 3 files changed, 87 insertions(+), 23 deletions(-) diff --git a/app/mobile/src/constants/Strings.js b/app/mobile/src/constants/Strings.js index 7b688d40..bf123179 100644 --- a/app/mobile/src/constants/Strings.js +++ b/app/mobile/src/constants/Strings.js @@ -144,6 +144,22 @@ const Strings = [ blockTopic: 'Block Topic', reportTopic: 'Report Topic', unknown: 'unknown', + + accounts: 'Accounts', + createAccount: 'Create Account', + accessAccount: 'Access Account', + token: 'Token', + settings: 'Settings', + federatedHost: 'Federated Host', + storageLimit: 'Storage Limit (GB) / Account', + keyType: 'Account Key Type', + enableImage: 'Enable Image Queue', + enableAudio: 'Enable Audio Queue', + enableVideo: 'Enable Video Queue', + enableCalls: 'Enable WebRTC Calls', + relayUrl: 'Relay URL', + relayUsername: 'Relay Username', + relayPassword: 'Relay Password', }, { visibleRegistry: 'Visible dans le Registre', @@ -284,6 +300,22 @@ const Strings = [ blockTopic: 'Bloquer le Sujet', reportTopic: 'Signaler le Sujet', unknown: 'Inconnu', + + accounts: 'Comptes', + createAccount: 'Créer un Compte', + accessAccount: 'Accéder au Compte', + token: 'Code', + settings: 'Paramètres', + federatedHost: 'Serveur Fédéré', + storageLimit: 'Espace (Go) / Compte', + keyType: 'Type de Clé', + enableImage: 'Activer les Fichiers Image', + enableAudio: 'Activer les Fichiers Audio', + enableVideo: 'Activer les Fichiers Vidéo', + enableCalls: 'Activer les Appels', + relayUrl: 'URL de Relais', + relayUsername: 'Nom d\'Utilisateur du Relais', + relayPassword: 'Mot de Passe du Relais', }, { visibleRegistry: 'Visible en el Registro', @@ -424,6 +456,22 @@ const Strings = [ blockTopic: 'Bloquer el Tema', reportTopic: 'Reportar el Tema', unknown: 'Desconocido', + + accounts: 'Cuentas', + createAccount: 'Crear', + accessAccount: 'Acceso', + token: 'Código', + settings: 'Ajustes', + federatedHost: 'Servidor Federado', + storageLimit: 'Espacio (GB) / Cuenta', + keyType: 'Tipo de Clave', + enableImage: 'Permitir Archivos de Imagen', + enableAudio: 'Permitir Archivos de Audio', + enableVideo: 'Permitir Archivos de Vídeo', + enableCalls: 'Permitier Llamadas', + relayUrl: 'URL para Llamadas', + relayUsername: 'Nombre de Usuario para Llamadas', + relayPassword: 'Contraseña para Llamadas', }, { visibleRegistry: 'Sichtbar in der Registrierung', @@ -564,6 +612,22 @@ const Strings = [ blockTopic: 'Blockiere das Thema', reportTopic: 'Das Thema Melden', unknown: 'Unbekannt', + + accounts: 'Konten', + createAccount: 'Erstellen', + accessAccount: 'Zugang', + token: 'Code', + settings: 'Einstellungen', + federatedHost: 'Verbundname', + storageLimit: 'Raum (GB) / Konto', + keyType: 'Schlüsselart', + enableImage: 'Bilddateien Aktivieren', + enableAudio: 'Audiodateien Aktivieren', + enableVideo: 'Videodateien aktivieren', + enableCalls: 'Anrufe Ermöglichen', + relayUrl: 'URL für Anrufe', + relayUsername: 'Benutzername für Anrufe', + relayPassword: 'Passwort für Anrufe', } ]; diff --git a/app/mobile/src/dashboard/Dashboard.jsx b/app/mobile/src/dashboard/Dashboard.jsx index 9ae38632..c063a1d3 100644 --- a/app/mobile/src/dashboard/Dashboard.jsx +++ b/app/mobile/src/dashboard/Dashboard.jsx @@ -76,7 +76,7 @@ export function Dashboard(props) { return ( - Accounts + { state.strings.accounts } @@ -139,12 +139,12 @@ export function Dashboard(props) { - Settings: + { state.strings.settings } - Account Key Type: + { state.strings.keyType } actions.setKeyType('RSA2048')}> @@ -186,7 +186,7 @@ export function Dashboard(props) { actions.setPushSupported(!state.pushSupported)}> - Enable Push Notifications: + { state.strings.enableNotifications } @@ -195,19 +195,19 @@ export function Dashboard(props) { actions.setEnableImage(!state.enableImage)}> - Enable Image Queue: + { state.strings.enableImage } actions.setEnableAudio(!state.enableAudio)}> - Enable Audio Queue: + { state.strings.enableAudio } actions.setEnableVideo(!state.enableVideo)}> - Enable Video Queue: + { state.strings.enableVideo } @@ -215,13 +215,13 @@ export function Dashboard(props) { actions.setEnableIce(!state.enableIce)}> - Enable WebRTC Calls: + { state.strings.enableCalls } - Cancel + { state.strings.cancel } - Save + { state.strings.save } @@ -275,10 +275,10 @@ export function Dashboard(props) { - Create Account: + { state.strings.createAccount } - Token: + { state.strings.token } Clipboard.setString(state.createToken)}> { state.createToken } @@ -286,7 +286,7 @@ export function Dashboard(props) { - Done + { state.strings.close } @@ -306,10 +306,10 @@ export function Dashboard(props) { - Access Account: + { state.strings.accessAccount } - Token: + { state.strings.token } Clipboard.setString(state.accessToken)}> { state.accessToken } @@ -317,7 +317,7 @@ export function Dashboard(props) { - Done + { state.strings.close } diff --git a/app/mobile/src/dashboard/Dashboard.styled.js b/app/mobile/src/dashboard/Dashboard.styled.js index 325b2b8f..9f25b1f2 100644 --- a/app/mobile/src/dashboard/Dashboard.styled.js +++ b/app/mobile/src/dashboard/Dashboard.styled.js @@ -97,7 +97,7 @@ export const styles = StyleSheet.create({ borderRadius: 4, padding: 6, marginRight: 8, - width: 72, + width: 92, display: 'flex', alignItems: 'center', }, @@ -107,7 +107,7 @@ export const styles = StyleSheet.create({ borderRadius: 4, padding: 6, marginRight: 8, - width: 72, + width: 92, display: 'flex', alignItems: 'center', },