From ed94137c34dc47eac4fa5110b156ce76c0873849 Mon Sep 17 00:00:00 2001 From: aljawaid <10233708+aljawaid@users.noreply.github.com> Date: Mon, 18 Sep 2023 20:15:44 +0100 Subject: [PATCH] FIX: Migrate Code - `user-config.php` - #24 --- Locale/de_DE/translations.php | 23 ++++++----- Locale/en_GB/translations.php | 23 ++++++----- Locale/es_ES/translations.php | 23 ++++++----- Locale/fr_FR/translations.php | 23 ++++++----- Locale/translations-starter-template.php | 23 ++++++----- Template/config/support.php | 51 +----------------------- Template/config_sections/user-config.php | 50 +++++++++++++++++++++++ 7 files changed, 116 insertions(+), 100 deletions(-) create mode 100644 Template/config_sections/user-config.php diff --git a/Locale/de_DE/translations.php b/Locale/de_DE/translations.php index 27520ed..d8c7623 100644 --- a/Locale/de_DE/translations.php +++ b/Locale/de_DE/translations.php @@ -119,16 +119,6 @@ // 'Application Configuration' => 'Konfiguration der Anwendung', 'This page shows all default and custom values from the configuration file stored in %s combined with application-specific settings detected from your server.' => 'Auf dieser Seite werden alle Standard- und benutzerdefinierten Werte aus der in %s gespeicherten Konfigurationsdatei zusammen mit den von Ihrem Server erkannten anwendungsspezifischen Einstellungen angezeigt.', - 'User Configuration' => 'Benutzer-Konfiguration', - 'Your Profile Full Name' => 'Ihr vollständiger Profilname', - 'Your User ID' => 'Ihre Benutzer-ID', - 'Your Role' => 'Ihre Rolle', - 'Your IP Address' => 'Ihre IP-Adresse', - 'Opens in a new window' => 'Öffnet in einem neuen Fenster', - 'Lookup IP' => 'IP nachschlagen', - 'Current Page' => 'Aktuelle Seite', - 'Your Browser Name' => 'Ihr Browsername', - 'Your Browser' => 'Ihr Browser', 'Data Privacy' => 'Daten Datenschutz', 'This page shows sensitive data. Hide selective information before sharing.' => 'Diese Seite zeigt sensible Daten. Blenden Sie ausgewählte Informationen aus, bevor Sie sie weitergeben.', 'Screenshot friendly' => 'Screenshot-freundlich', @@ -279,4 +269,17 @@ 'Webhook Examples' => 'Webhook-Beispiele', 'HTTP Request Example' => 'HTTP-Anfrage Beispiel', 'Event Payload Examples' => 'Beispiele für Ereignis-Payloads', + // + // Template/config_sections/user-config.php + // + 'User Configuration' => 'Benutzer-Konfiguration', + 'Your Profile Full Name' => 'Ihr vollständiger Profilname', + 'Your User ID' => 'Ihre Benutzer-ID', + 'Your Role' => 'Ihre Rolle', + 'Your IP Address' => 'Ihre IP-Adresse', + 'Opens in a new window' => 'Öffnet in einem neuen Fenster', + 'Lookup IP' => 'IP nachschlagen', + 'Current Page' => 'Aktuelle Seite', + 'Your Browser Name' => 'Ihr Browsername', + 'Your Browser' => 'Ihr Browser', ); diff --git a/Locale/en_GB/translations.php b/Locale/en_GB/translations.php index b896d0c..5ff974d 100644 --- a/Locale/en_GB/translations.php +++ b/Locale/en_GB/translations.php @@ -119,16 +119,6 @@ // 'Application Configuration' => 'Application Configuration', 'This page shows all default and custom values from the configuration file stored in %s combined with application-specific settings detected from your server.' => 'This page shows all default and custom values from the configuration file stored in %s combined with application-specific settings detected from your server.', - 'User Configuration' => 'User Configuration', - 'Your Profile Full Name' => 'Your Profile Full Name', - 'Your User ID' => 'Your User ID', - 'Your Role' => 'Your Role', - 'Your IP Address' => 'Your IP Address', - 'Opens in a new window' => 'Opens in a new window', - 'Lookup IP' => 'Lookup IP', - 'Current Page' => 'Current Page', - 'Your Browser Name' => 'Your Browser Name', - 'Your Browser' => 'Your Browser', 'Data Privacy' => 'Data Privacy', 'This page shows sensitive data. Hide selective information before sharing.' => 'This page shows sensitive data. Hide selective information before sharing.', 'Screenshot friendly' => 'Screenshot friendly', @@ -279,4 +269,17 @@ 'Webhook Examples' => 'Webhook Examples', 'HTTP Request Example' => 'HTTP Request Example', 'Event Payload Examples' => 'Event Payload Examples', + // + // Template/config_sections/user-config.php + // + 'User Configuration' => 'User Configuration', + 'Your Profile Full Name' => 'Your Profile Full Name', + 'Your User ID' => 'Your User ID', + 'Your Role' => 'Your Role', + 'Your IP Address' => 'Your IP Address', + 'Opens in a new window' => 'Opens in a new window', + 'Lookup IP' => 'Lookup IP', + 'Current Page' => 'Current Page', + 'Your Browser Name' => 'Your Browser Name', + 'Your Browser' => 'Your Browser', ); diff --git a/Locale/es_ES/translations.php b/Locale/es_ES/translations.php index fc2db3f..5f9fe65 100644 --- a/Locale/es_ES/translations.php +++ b/Locale/es_ES/translations.php @@ -119,16 +119,6 @@ // 'Application Configuration' => 'Configuración de la aplicación', 'This page shows all default and custom values from the configuration file stored in %s combined with application-specific settings detected from your server.' => 'Esta página muestra todos los valores predeterminados y personalizados del archivo de configuración almacenado en %s combinados con los ajustes específicos de la aplicación detectados desde su servidor.', - 'User Configuration' => 'Configuración de usuario', - 'Your Profile Full Name' => 'Nombre completo de su perfil', - 'Your User ID' => 'Su ID de usuario', - 'Your Role' => 'Su rol', - 'Your IP Address' => 'Su dirección IP', - 'Opens in a new window' => 'Se abre en una nueva ventana', - 'Lookup IP' => 'Buscar IP', - 'Current Page' => 'Página actual', - 'Your Browser Name' => 'Nombre de su navegador', - 'Your Browser' => 'Tu navegador', 'Data Privacy' => 'Privacidad de Datos', 'This page shows sensitive data. Hide selective information before sharing.' => 'Esta página muestra datos sensibles. Oculta información selectiva antes de compartirla.', 'Screenshot friendly' => 'Compatible con capturas de pantalla', @@ -279,4 +269,17 @@ 'Webhook Examples' => 'Ejemplos de Webhooks', 'HTTP Request Example' => 'Ejemplo de Petición HTTP', 'Event Payload Examples' => 'Ejemplos de Carga de Evento', + // + // Template/config_sections/user-config.php + // + 'User Configuration' => 'Configuración de usuario', + 'Your Profile Full Name' => 'Nombre completo de su perfil', + 'Your User ID' => 'Su ID de usuario', + 'Your Role' => 'Su rol', + 'Your IP Address' => 'Su dirección IP', + 'Opens in a new window' => 'Se abre en una nueva ventana', + 'Lookup IP' => 'Buscar IP', + 'Current Page' => 'Página actual', + 'Your Browser Name' => 'Nombre de su navegador', + 'Your Browser' => 'Tu navegador', ); diff --git a/Locale/fr_FR/translations.php b/Locale/fr_FR/translations.php index 3c77898..daee5db 100644 --- a/Locale/fr_FR/translations.php +++ b/Locale/fr_FR/translations.php @@ -119,16 +119,6 @@ // 'Application Configuration' => 'Configuration de l\'application', 'This page shows all default and custom values from the configuration file stored in %s combined with application-specific settings detected from your server.' => 'Cette page affiche toutes les valeurs par défaut et personnalisées du fichier de configuration stocké dans %s, ainsi que les paramètres spécifiques à l\'application détectés sur votre serveur.', - 'User Configuration' => 'Configuration de l\'utilisateur', - 'Your Profile Full Name' => 'Nom complet de votre profil', - 'Your User ID' => 'Votre ID utilisateur', - 'Your Role' => 'Votre rôle', - 'Your IP Address' => 'Votre adresse IP', - 'Opens in a new window' => 'S\'ouvre dans une nouvelle fenêtre', - 'Lookup IP' => 'Rechercher l\'IP', - 'Current Page' => 'Page actuelle', - 'Your Browser Name' => 'Nom de votre navigateur', - 'Your Browser' => 'Votre navigateur', 'Data Privacy' => 'Confidentialité de Données', 'This page shows sensitive data. Hide selective information before sharing.' => 'Cette page contient des données sensibles. Masquez certaines informations avant de les partager.', 'Screenshot friendly' => 'Compatible avec les captures d\'écran', @@ -279,4 +269,17 @@ 'Webhook Examples' => 'Exemples de Webhook', 'HTTP Request Example' => 'Exemple de requête HTTP', 'Event Payload Examples' => 'Exemples de charge utile d\'événement', + // + // Template/config_sections/user-config.php + // + 'User Configuration' => 'Configuration de l\'utilisateur', + 'Your Profile Full Name' => 'Nom complet de votre profil', + 'Your User ID' => 'Votre ID utilisateur', + 'Your Role' => 'Votre rôle', + 'Your IP Address' => 'Votre adresse IP', + 'Opens in a new window' => 'S\'ouvre dans une nouvelle fenêtre', + 'Lookup IP' => 'Rechercher l\'IP', + 'Current Page' => 'Page actuelle', + 'Your Browser Name' => 'Nom de votre navigateur', + 'Your Browser' => 'Votre navigateur', ); diff --git a/Locale/translations-starter-template.php b/Locale/translations-starter-template.php index 7b70943..c8365a4 100644 --- a/Locale/translations-starter-template.php +++ b/Locale/translations-starter-template.php @@ -128,16 +128,6 @@ // 'Application Configuration' => '', 'This page shows all default and custom values from the configuration file stored in %s combined with application-specific settings detected from your server.' => '', - 'User Configuration' => '', - 'Your Profile Full Name' => '', - 'Your User ID' => '', - 'Your Role' => '', - 'Your IP Address' => '', - 'Opens in a new window' => '', - 'Lookup IP' => '', - 'Current Page' => '', - 'Your Browser Name' => '', - 'Your Browser' => '', 'Data Privacy' => '', 'This page shows sensitive data. Hide selective information before sharing.' => '', 'Screenshot friendly' => '', @@ -288,4 +278,17 @@ 'Webhook Examples' => '', 'HTTP Request Example' => '', 'Event Payload Examples' => '', + // + // Template/config_sections/user-config.php + // + 'User Configuration' => '', + 'Your Profile Full Name' => '', + 'Your User ID' => '', + 'Your Role' => '', + 'Your IP Address' => '', + 'Opens in a new window' => '', + 'Lookup IP' => '', + 'Current Page' => '', + 'Your Browser Name' => '', + 'Your Browser' => '', ); diff --git a/Template/config/support.php b/Template/config/support.php index d1cbbdf..fa59d1e 100644 --- a/Template/config/support.php +++ b/Template/config/support.php @@ -27,56 +27,7 @@
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- helper->supportHelper->embedSVGIcon('user-icon') ?> -
- url->link($this->user->getFullname(), 'UserViewController', 'show', array('user_id' => $this->user->getId()), false, 'user-profile-link', t('View Profile')) ?> - user->getId() ?>
user->getRoleName() ?>
- user->isAdmin()): ?> - - - - - - helper->supportHelper->maskIPAddress($_SERVER['REMOTE_ADDR']) ?> - -
helper->supportHelper->getBrowser() ?>
text->e($user_agent) ?>
-
+ render('KanboardSupport:config_sections/user-config', array('user_agent' => $user_agent)) ?>
diff --git a/Template/config_sections/user-config.php b/Template/config_sections/user-config.php new file mode 100644 index 0000000..9eda160 --- /dev/null +++ b/Template/config_sections/user-config.php @@ -0,0 +1,50 @@ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ helper->supportHelper->embedSVGIcon('user-icon') ?> +
+ url->link($this->user->getFullname(), 'UserViewController', 'show', array('user_id' => $this->user->getId()), false, 'user-profile-link', t('View Profile')) ?> + user->getId() ?>
user->getRoleName() ?>
+ user->isAdmin()): ?> + + + + + + helper->supportHelper->maskIPAddress($_SERVER['REMOTE_ADDR']) ?> + +
helper->supportHelper->getBrowser() ?>
text->e($user_agent) ?>
+