diff options
author | Simon Rettberg | 2020-11-18 12:08:34 +0100 |
---|---|---|
committer | Simon Rettberg | 2020-11-18 12:08:34 +0100 |
commit | ec825b751d9b71f5983c27fe5387b0258d62864f (patch) | |
tree | 204ee4c702b59bf209a33dd2b021cb639f19e95a | |
parent | [statistics] Fix shift-click select for re-ordered table (diff) | |
download | slx-admin-ec825b751d9b71f5983c27fe5387b0258d62864f.tar.gz slx-admin-ec825b751d9b71f5983c27fe5387b0258d62864f.tar.xz slx-admin-ec825b751d9b71f5983c27fe5387b0258d62864f.zip |
[sysconfig] Screensaver: Restructure translations
5 files changed, 60 insertions, 58 deletions
diff --git a/modules-available/sysconfig/addmodule_screensaver.inc.php b/modules-available/sysconfig/addmodule_screensaver.inc.php index 889a94e5..d8c189f7 100644 --- a/modules-available/sysconfig/addmodule_screensaver.inc.php +++ b/modules-available/sysconfig/addmodule_screensaver.inc.php @@ -25,22 +25,22 @@ class Screensaver_Start extends AddModule_Base } else { $this->session_data = array( 'title' => '', - 'qss' => Dictionary::translateFileModule('sysconfig', 'template-tags', 'lang_screenQssDefault', true), + 'qss' => Dictionary::translate('saver_QssDefault', true), 'messages' => array( 'General' => array( - 'shutdown' => Dictionary::translateFileModule('sysconfig', 'template-tags', 'lang_screenMessageDefaultShutdown', true), - 'shutdown-locked' => Dictionary::translateFileModule('sysconfig', 'template-tags', 'lang_screenMessageDefaultShutdownLocked', true), - 'idle-kill' => Dictionary::translateFileModule('sysconfig', 'template-tags', 'lang_screenMessageDefaultIdleKill', true), - 'idle-kill-locked' => Dictionary::translateFileModule('sysconfig', 'template-tags', 'lang_screenMessageDefaultIdleKillLocked', true), - 'no-timeout' => Dictionary::translateFileModule('sysconfig', 'template-tags', 'lang_screenMessageDefaultNoTimeout', true), - 'no-timeout-locked' => Dictionary::translateFileModule('sysconfig', 'template-tags', 'lang_screenMessageDefaultNoTimeoutLocked', true), + 'shutdown' => Dictionary::translate('saver_MessageDefaultShutdown', true), + 'shutdown-locked' => Dictionary::translate('saver_MessageDefaultShutdownLocked', true), + 'idle-kill' => Dictionary::translate('saver_MessageDefaultIdleKill', true), + 'idle-kill-locked' => Dictionary::translate('saver_MessageDefaultIdleKillLocked', true), + 'no-timeout' => Dictionary::translate('saver_MessageDefaultNoTimeout', true), + 'no-timeout-locked' => Dictionary::translate('saver_MessageDefaultNoTimeoutLocked', true), ) ), 'texts' => array( - 'text-shutdown' => Dictionary::translateFileModule('sysconfig', 'template-tags', 'lang_screenTextDefaultShutdown', true), + 'text-shutdown' => Dictionary::translate('saver_TextDefaultShutdown', true), 'text-shutdown-locked' => '', - 'text-idle-kill' => Dictionary::translateFileModule('sysconfig', 'template-tags', 'lang_screenTextDefaultIdleKill', true), - 'text-idle-kill-locked' => Dictionary::translateFileModule('sysconfig', 'template-tags', 'lang_screenTextDefaultIdleKillLocked', true), + 'text-idle-kill' => Dictionary::translate('saver_TextDefaultIdleKill', true), + 'text-idle-kill-locked' => Dictionary::translate('saver_TextDefaultIdleKillLocked', true), 'text-no-timeout' => '', 'text-no-timeout-locked' => '', ), @@ -110,14 +110,18 @@ class Screensaver_Text extends AddModule_Base /* Prepare and translate labels for the frontend */ $data['id'] = $next; /* Convert the id to a language tag (camelCase) styled string */ - $tag = explode('-', $next); - foreach ($tag as $key => $value) { - $tag[$key] = ucwords($value); - } - $tag = implode($tag); - - $data['title'] = Dictionary::translateFileModule('sysconfig', 'template-tags', 'lang_screenTitle' . $tag, true); - $data['description'] = Dictionary::translateFileModule('sysconfig', 'template-tags', 'lang_screenDescription' . $tag, true);; + $tag = implode(array_map('ucwords', explode('-', $next))); + + /* For translate module: + * Dictionary::translate('saver_TitleNoTimeout'); + * Dictionary::translate('saver_DescriptionNoTimeout'); + * Dictionary::translate('saver_TitleIdleKill'); + * Dictionary::translate('saver_DescriptionIdleKill'); + * Dictionary::translate('saver_TitleShutdown'); + * Dictionary::translate('saver_DescriptionShutdown'); + */ + $data['title'] = Dictionary::translate('saver_Title' . $tag, true); + $data['description'] = Dictionary::translate('saver_Description' . $tag, true);; $data['msg_value'] = $this->session_data['messages']['General'][$next]; $data['msg_locked_value'] = $this->session_data['messages']['General'][$next . '-locked']; $data['text_value'] = $this->session_data['texts']['text-' . $next]; diff --git a/modules-available/sysconfig/lang/de/module.json b/modules-available/sysconfig/lang/de/module.json index 02d55e5b..1dbb268b 100644 --- a/modules-available/sysconfig/lang/de/module.json +++ b/modules-available/sysconfig/lang/de/module.json @@ -1,6 +1,5 @@ { "config-module": "Konfigurationsmodul", - "lang_clientSshConfig": "SSH-Konfiguration", "lang_configurationCompilation": "Konfiguration zusammenstellen", "lang_contentOf": "Inhalt von", "lang_moduleAdd": "Modul hinzuf\u00fcgen", @@ -8,5 +7,21 @@ "lang_noModuleFromThisGroup": "(Kein Modul dieser Gruppe)", "lang_unknwonTaskManager": "Unbekannter Taskmanager-Fehler", "module_name": "Lokalisierung + Integration", - "page_title": "Lokalisierung + Integration" -}
\ No newline at end of file + "page_title": "Lokalisierung + Integration", + "saver_MessageDefaultIdleKill": "Diese Sitzung wird bei Inaktivit\u00e4t in %1 beendet.", + "saver_MessageDefaultIdleKillLocked": "Diese Sitzung wird in %1 beendet, wenn sie nicht entsperrt wird.", + "saver_MessageDefaultNoTimeout": "Dieser Bildschirm wird gerade geschont.", + "saver_MessageDefaultNoTimeoutLocked": "Dieser Rechner ist gesperrt.", + "saver_MessageDefaultShutdown": "Achtung: Rechner wird in %1 heruntergefahren!", + "saver_MessageDefaultShutdownLocked": "Achtung: Rechner wird in %1 heruntergefahren!", + "saver_QssDefault": "#Saver {\r\n background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #443, stop:1 #000)\r\n}\r\n\r\nQLabel {\r\n color: #f64;\r\n}\r\n\r\n#lblClock {\r\n color: #999;\r\n font-size: 20pt;\r\n}\r\n\r\n#lblHeader {\r\n font-size: 20pt;\r\n}\r\n", + "saver_DescriptionIdleKill": "Ein Bildschirmschoner mit Timeout, nach dessen Ablauf alle Anwendungen ohne weitere Nachfragen geschlossen werden und der Nutzer ausgeloggt wird.", + "saver_DescriptionNoTimeout": "Ein Bildschirmschoner ohne Timeout.", + "saver_DescriptionShutdown": "Ein Bildschirmschoner mit Timeout, nach dessen Ablauf alle Anwendungen ohne weitere Nachfragen geschlossen werden und der PC heruntergefahren oder neugestartet wird.", + "saver_TitleIdleKill": "Idle Kill", + "saver_TitleNoTimeout": "Ohne Timeout", + "saver_TitleShutdown": "Herunterfahren", + "saver_TextDefaultIdleKill": "<html><body>Keine Nutzeraktivit\u00e4t festgestellt. <br>Zum oben angegebenen Zeitpunkt wird die aktuell laufende Sitzung beendet, wenn der Rechner nicht mehr verwendet wird. <br>Alle noch laufenden Programme <br>werden ohne Nachfrage geschlossen. Stellen Sie daher sicher, bis zum angegebenen Zeitpunkt <br>s\u00e4mtliche sich in Bearbeitung befindlichen Daten abzuspeichern. <br><br>Dies dient dazu zu vermeiden, dass ein Rechner stundenlang gesperrt wird und somit <br>anderen Nutzern nicht zur Verf\u00fcgung steht.<\/body><\/html>", + "saver_TextDefaultIdleKillLocked": "<html><body><br>Zum oben angegebenen Zeitpunkt wird die aktuell laufende Sitzung beendet, wenn sie zuvor nicht wieder entsperrt wird. <br>Alle noch laufenden Programme werden ohne Nachfrage geschlossen. <br>Stellen Sie daher sicher, bis zum angegebenen Zeitpunkt <br>s\u00e4mtliche sich in Bearbeitung befindlichen Daten abzuspeichern, bzw. die Sitzung wieder zu entsperren. <br><br>Dies dient dazu zu vermeiden, dass ein Rechner stundenlang gesperrt wird und somit<br>anderen Nutzern nicht zur Verf\u00fcgung steht.<\/body><\/html>", + "saver_TextDefaultShutdown": "<html><body>Achtung: Zum oben angegebenen Zeitpunkt wird der Computer heruntergefahren bzw. neugestartet. <br>Alle noch laufenden Programme werden ohne Nachfrage beendet. Stellen Sie daher sicher, bis <br>zum angegebenen Zeitpunkt s\u00e4mtliche Daten abzuspeichern und die Sitzung zu verlassen.<\/body><\/html>" +} diff --git a/modules-available/sysconfig/lang/de/template-tags.json b/modules-available/sysconfig/lang/de/template-tags.json index b8452ed0..7832d469 100644 --- a/modules-available/sysconfig/lang/de/template-tags.json +++ b/modules-available/sysconfig/lang/de/template-tags.json @@ -108,29 +108,13 @@ "lang_screenBackgroundDescription": " - Ein Hintergrund, bestehend aus einem zweifarbigem Gradienten.", "lang_screenClock": "Uhr", "lang_screenColor": "Farbe", - "lang_screenDescriptionIdleKill": "Ein Bildschirmschoner mit Timeout, nach dessen Ablauf alle Anwendungen ohne weitere Nachfragen geschlossen werden und der Nutzer ausgeloggt wird.", - "lang_screenDescriptionNoTimeout": "Ein Bildschirmschoner ohne Timeout.", - "lang_screenDescriptionShutdown": "Ein Bildschirmschoner mit Timeout, nach dessen Ablauf alle Anwendungen ohne weitere Nachfragen geschlossen werden und der PC heruntergefahren oder neugestartet wird.", "lang_screenHeader": "Header", "lang_screenLabel": "Label", "lang_screenLocked": "Sperrbildschirm", - "lang_screenMessageDefaultIdleKill": "Diese Sitzung wird bei Inaktivit\u00e4t in %1 beendet.", - "lang_screenMessageDefaultIdleKillLocked": "Diese Sitzung wird in %1 beendet, wenn sie nicht entsperrt wird.", - "lang_screenMessageDefaultNoTimeout": "Dieser Bildschirm wird gerade geschont.", - "lang_screenMessageDefaultNoTimeoutLocked": "Dieser Rechner ist gesperrt.", - "lang_screenMessageDefaultShutdown": "Achtung: Rechner wird in %1 heruntergefahren!", - "lang_screenMessageDefaultShutdownLocked": "Achtung: Rechner wird in %1 heruntergefahren!", "lang_screenQss": "QSS", - "lang_screenQssDefault": "#Saver {\r\n background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #443, stop:1 #000)\r\n}\r\n\r\nQLabel {\r\n color: #f64;\r\n}\r\n\r\n#lblClock {\r\n color: #999;\r\n font-size: 20pt;\r\n}\r\n\r\n#lblHeader {\r\n font-size: 20pt;\r\n}\r\n", "lang_screenSize": "Gr\u00f6\u00dfe", "lang_screenText": "Inhaltstext Bearbeiten", - "lang_screenTextDefaultIdleKill": "<html><body>Keine Nutzeraktivit\u00e4t festgestellt. <br>Zum oben angegebenen Zeitpunkt wird die aktuell laufende Sitzung beendet, wenn der Rechner nicht mehr verwendet wird. <br>Alle noch laufenden Programme <br>werden ohne Nachfrage geschlossen. Stellen Sie daher sicher, bis zum angegebenen Zeitpunkt <br>s\u00e4mtliche sich in Bearbeitung befindlichen Daten abzuspeichern. <br><br>Dies dient dazu zu vermeiden, dass ein Rechner stundenlang gesperrt wird und somit <br>anderen Nutzern nicht zur Verf\u00fcgung steht.<\/body><\/html>", - "lang_screenTextDefaultIdleKillLocked": "<html><body><br>Zum oben angegebenen Zeitpunkt wird die aktuell laufende Sitzung beendet, wenn sie zuvor nicht wieder entsperrt wird. <br>Alle noch laufenden Programme werden ohne Nachfrage geschlossen. <br>Stellen Sie daher sicher, bis zum angegebenen Zeitpunkt <br>s\u00e4mtliche sich in Bearbeitung befindlichen Daten abzuspeichern, bzw. die Sitzung wieder zu entsperren. <br><br>Dies dient dazu zu vermeiden, dass ein Rechner stundenlang gesperrt wird und somit<br>anderen Nutzern nicht zur Verf\u00fcgung steht.<\/body><\/html>", - "lang_screenTextDefaultShutdown": "<html><body>Achtung: Zum oben angegebenen Zeitpunkt wird der Computer heruntergefahren bzw. neugestartet. <br>Alle noch laufenden Programme werden ohne Nachfrage beendet. Stellen Sie daher sicher, bis <br>zum angegebenen Zeitpunkt s\u00e4mtliche Daten abzuspeichern und die Sitzung zu verlassen.<\/body><\/html>", "lang_screenTextInherit": "Werte Erben", - "lang_screenTitleIdleKill": "Idle Kill", - "lang_screenTitleNoTimeout": "Ohne Timeout", - "lang_screenTitleShutdown": "Herunterfahren", "lang_screenUnlocked": "Bildschirmschoner", "lang_searchBase": "Suchbasis", "lang_selectFile": "Bitte w\u00e4hlen Sie ein Archiv", @@ -175,4 +159,4 @@ "lang_user_all": "Alle Nutzer", "lang_user_root_only": "Nur root", "lang_user_user_only": "Alle au\u00dfer root" -}
\ No newline at end of file +} diff --git a/modules-available/sysconfig/lang/en/module.json b/modules-available/sysconfig/lang/en/module.json index 278de8ed..b49cc1cf 100644 --- a/modules-available/sysconfig/lang/en/module.json +++ b/modules-available/sysconfig/lang/en/module.json @@ -1,6 +1,5 @@ { "config-module": "Config module", - "lang_clientSshConfig": "SSH configuration", "lang_configurationCompilation": "Compile configuration", "lang_contentOf": "Content of", "lang_moduleAdd": "Add Module", @@ -8,5 +7,21 @@ "lang_noModuleFromThisGroup": "(No module from this group)", "lang_unknwonTaskManager": "Unknown Task Manager error", "module_name": "Localization", - "page_title": "Localize and integrate" -}
\ No newline at end of file + "page_title": "Localize and integrate", + "saver_MessageDefaultIdleKill": "This session will end in %1 when inactive.", + "saver_MessageDefaultIdleKillLocked": "This session will end in %1 if the session is not unlocked.", + "saver_MessageDefaultNoTimeout": "This screen is in saving mode.", + "saver_MessageDefaultNoTimeoutLocked": "This computer is locked.", + "saver_MessageDefaultShutdown": "Caution: Computer will shutdown in %1!", + "saver_MessageDefaultShutdownLocked": "Caution: Computer will shutdown in %1!", + "saver_QssDefault": "#Saver {\r\n background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #443, stop:1 #000)\r\n}\r\n\r\nQLabel {\r\n color: #f64;\r\n}\r\n\r\n#lblClock {\r\n color: #999;\r\n font-size: 20pt;\r\n}\r\n\r\n#lblHeader {\r\n font-size: 20pt;\r\n}\r\n", + "saver_DescriptionIdleKill": "A screensaver with a timeout which on it's expiration will close all running applications without further requests and logout the user.", + "saver_DescriptionNoTimeout": "A screensaver without a timeout.", + "saver_DescriptionShutdown": "A screensaver with a timeout which on it's expiration the PC will shutdown or restart. All applications will be closed without further requests.", + "saver_TitleIdleKill": "Idle Kill", + "saver_TitleNoTimeout": "No Timeout", + "saver_TitleShutdown": "Shutdown", + "saver_TextDefaultIdleKill": "<html><body>No user activity detected. <br>If the computer is not used until the time specified above, the session will end. <br> All running applications <br>will be closed without further requests. Make sure that all files and changes are saved <br> before the time runs out. <br><br>It prevents computers from beeing locked for hours and <br>not beeing available for other users.<\/body><\/html>", + "saver_TextDefaultIdleKillLocked": "<html><body><br>The current session will end by the time specified above if the computer isn't unlocked before. <br>All running applications will be closed without further requests. <br>Make sure that all files and changes are saved <br>or the session is unlocked before the time runs out. <br><br>It prevents computers from beeing locked for hours and <br>not beeing available for other users.<\/body><\/html>", + "saver_TextDefaultShutdown": "<html><body>Caution: The computer will shutdown or restart respectively at the specified time above. <br>All running applications will be closed without further requests. Make sure to save all files and changes and leave the session<br>before the time runs out.<\/body><\/html>" +} diff --git a/modules-available/sysconfig/lang/en/template-tags.json b/modules-available/sysconfig/lang/en/template-tags.json index a9da2086..6bb2accb 100644 --- a/modules-available/sysconfig/lang/en/template-tags.json +++ b/modules-available/sysconfig/lang/en/template-tags.json @@ -108,29 +108,13 @@ "lang_screenBackgroundDescription": " - A background consisting of a gradient with two colors.", "lang_screenClock": "Clock", "lang_screenColor": "Color", - "lang_screenDescriptionIdleKill": "A screensaver with a timeout which on it's expiration will close all running applications without further requests and logout the user.", - "lang_screenDescriptionNoTimeout": "A screensaver without a timeout.", - "lang_screenDescriptionShutdown": "A screensaver with a timeout which on it's expiration the PC will shutdown or restart. All applications will be closed without further requests.", "lang_screenHeader": "Header", "lang_screenLabel": "Label", "lang_screenLocked": "Lockscreen", - "lang_screenMessageDefaultIdleKill": "This session will end in %1 when inactive.", - "lang_screenMessageDefaultIdleKillLocked": "This session will end in %1 if the session is not unlocked.", - "lang_screenMessageDefaultNoTimeout": "This screen is in saving mode.", - "lang_screenMessageDefaultNoTimeoutLocked": "This computer is locked.", - "lang_screenMessageDefaultShutdown": "Caution: Computer will shutdown in %1!", - "lang_screenMessageDefaultShutdownLocked": "Caution: Computer will shutdown in %1!", "lang_screenQss": "QSS", - "lang_screenQssDefault": "#Saver {\r\n background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #443, stop:1 #000)\r\n}\r\n\r\nQLabel {\r\n color: #f64;\r\n}\r\n\r\n#lblClock {\r\n color: #999;\r\n font-size: 20pt;\r\n}\r\n\r\n#lblHeader {\r\n font-size: 20pt;\r\n}\r\n", "lang_screenSize": "Size", "lang_screenText": "Edit Contenttext", - "lang_screenTextDefaultIdleKill": "<html><body>No user activity detected. <br>If the computer is not used until the time specified above, the session will end. <br> All running applications <br>will be closed without further requests. Make sure that all files and changes are saved <br> before the time runs out. <br><br>It prevents computers from beeing locked for hours and <br>not beeing available for other users.<\/body><\/html>", - "lang_screenTextDefaultIdleKillLocked": "<html><body><br>The current session will end by the time specified above if the computer isn't unlocked before. <br>All running applications will be closed without further requests. <br>Make sure that all files and changes are saved <br>or the session is unlocked before the time runs out. <br><br>It prevents computers from beeing locked for hours and <br>not beeing available for other users.<\/body><\/html>", - "lang_screenTextDefaultShutdown": "<html><body>Caution: The computer will shutdown or restart respectively at the specified time above. <br>All running applications will be closed without further requests. Make sure to save all files and changes and leave the session<br>before the time runs out.<\/body><\/html>", "lang_screenTextInherit": "Inherit Values", - "lang_screenTitleIdleKill": "Idle Kill", - "lang_screenTitleNoTimeout": "No Timeout", - "lang_screenTitleShutdown": "Shutdown", "lang_screenUnlocked": "Screensaver", "lang_searchBase": "Search Base", "lang_selectFile": "Please select an archive", @@ -176,4 +160,4 @@ "lang_user_all": "Everyone", "lang_user_root_only": "Only root", "lang_user_user_only": "Everyone except root" -}
\ No newline at end of file +} |