diff --git a/CHANGELOG.md b/CHANGELOG.md
index bcf85bb..e7f6605 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,8 +1,14 @@
## [Unreleased]
+## 1.27.0
+### Added
+- hide personal settings access when settings are forced by the administrator
+### Fixed
+- improve German translations
+
## 1.26.0
### Added
-- add czech translation
+- add Czech translation
## 1.25.2
### Fixed
diff --git a/appinfo/info.xml b/appinfo/info.xml
index 6ae1aed..7ce5afb 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -26,7 +26,7 @@ If you like this application and if you want to support the development:
* [Donate with liberapay](https://liberapay.com/deblan)
* [Leave a comment](https://apps.nextcloud.com/apps/side_menu#comments)
]]>
- 1.26.0
+ 1.27.0
agpl
Simon Vieille
SideMenu
diff --git a/lib/Settings/PersonalSection.php b/lib/Settings/PersonalSection.php
index 101d95f..58a773f 100644
--- a/lib/Settings/PersonalSection.php
+++ b/lib/Settings/PersonalSection.php
@@ -19,6 +19,7 @@
namespace OCA\SideMenu\Settings;
use OCA\SideMenu\AppInfo\Application;
+use OCA\SideMenu\Service\ConfigProxy;
use OCP\IL10N;
use OCP\IURLGenerator;
use OCP\Settings\IIconSection;
@@ -35,10 +36,16 @@ class PersonalSection implements IIconSection
*/
private $url;
- public function __construct(IURLGenerator $url, IL10N $l)
+ /**
+ * @var ConfigProxy
+ */
+ private $configProxy;
+
+ public function __construct(IURLGenerator $url, IL10N $l, ConfigProxy $configProxy)
{
$this->url = $url;
$this->l = $l;
+ $this->configProxy = $configProxy;
}
/**
@@ -49,6 +56,10 @@ class PersonalSection implements IIconSection
*/
public function getID()
{
+ if ($this->configProxy->getAppValueBool('force', '0')) {
+ return '';
+ }
+
return Application::APP_ID;
}
@@ -60,6 +71,10 @@ class PersonalSection implements IIconSection
*/
public function getName()
{
+ if ($this->configProxy->getAppValueBool('force', '0')) {
+ return '';
+ }
+
return $this->l->t(Application::APP_NAME);
}
@@ -72,6 +87,10 @@ class PersonalSection implements IIconSection
*/
public function getPriority()
{
+ if ($this->configProxy->getAppValueBool('force', '0')) {
+ return null;
+ }
+
return 70;
}
diff --git a/src/l10n/fixtures/de.yaml b/src/l10n/fixtures/de.yaml
index 254e5b7..e67d0fc 100644
--- a/src/l10n/fixtures/de.yaml
+++ b/src/l10n/fixtures/de.yaml
@@ -1,31 +1,31 @@
"Custom menu": "Benutzerdefiniertes Menü"
-"Enable the custom menu": "Aktiviere das Benutzerdefiniertes Menü"
+"Enable the custom menu": "Benutzerdefiniertes Menü aktivieren"
"No": "Nein"
"Yes": "Ja"
"Menu": "Menü"
'Use the shortcut Ctrl+o to open and to hide the side menu. Use tab to navigate.': 'Verwende die Tastenkombination Strg+o, um das Seitenmenü ein- und auszublenden. Verwende tab zum Navigieren.'
-"Top menu": "Hauptmenü"
-"Apps that not must be moved in the side menu": "Apps, die nicht ins Seitenmenü verschoben werden müssen"
+"Top menu": "Obere Navigationsleiste"
+"Apps that not must be moved in the side menu": "Anwendungen, die nicht ins Seitenmenü verschoben werden sollen"
"If there is no selection then the global configuration is applied.": "Wenn keine Auswahl vorhanden ist, wird die globale Konfiguration angewendet."
"Experimental": "Experimentell"
"Save": "Speichern"
-"You like this app and you want to support me?": "Du magst diese App und möchtest mich unterstützen?"
-"Buy me a coffee ☕": "Gib mir einen Kaffee ☕"
-"Hidden": "Versteckt"
+"You like this app and you want to support me?": "Du magst diese Anwendung und möchtest mich unterstützen?"
+"Buy me a coffee ☕": "Gib mir einen Kaffee aus ☕"
+"Hidden": "Ausblenden"
"Small": "Klein"
"Normal": "Normal"
"Big": "Groß"
"Colors": "Farben"
"Background color": "Hintergrundfarbe"
-"Background color of current app": "Hintergrundfarbe der aktuellen App"
+"Background color of current app": "Hintergrundfarbe der aktuellen Anwendung"
"Text color": "Textfarbe"
"Loader": "Ladestandanzeige"
"Icon": "Symbol"
"Same color": "Selbe Farbe"
"Opposite color": "Gegenfarbe"
"Transparent": "Transparent"
-"Opaque": "Undurchsichtig"
-"Opener": "Öffner"
+"Opaque": "Nicht transparent"
+"Opener": "Menü-Symbol"
"Default": "Standard"
"Default (dark)": "Standard (dunkel)"
"Hamburger": "Hamburger"
@@ -35,44 +35,44 @@
"Before the logo": "Vor dem Logo"
"After the logo": "Nach dem Logo"
"Position": "Position"
-"Show only the opener (hidden logo)": "Nur den Öffner anzeigen (verstecktes Logo)"
-"Do not display the side menu and the opener if there is no application (eg: public pages).": "Zeige das Seitenmenü und den Öffner nicht an, wenn keine Anwendung vorhanden ist (z.B. bei öffentlichen Seiten)."
+"Show only the opener (hidden logo)": "Nur das Menü-Symbol anzeigen (Logo wird ausgeblendet)"
+"Do not display the side menu and the opener if there is no application (eg: public pages).": "Zeige das Seitenmenü und das Menü-Symbol nicht an, wenn keine Anwendung vorhanden ist (z.B. bei öffentlichen Seiten)."
"Panel": "Panel"
-"Open the menu when the mouse is hover the opener (automatically disabled on touch screens)": "Öffne das Menü, wenn die Maus über den Öffner bewegt wird (auf Touchscreens automatisch deaktiviert)."
+"Open the menu when the mouse is hover the opener (automatically disabled on touch screens)": "Öffne das Menü, wenn die Maus über das Menü-Symbol bewegt wird (auf Touchscreens automatisch deaktiviert)."
"Display the big menu": "Großes Menü anzeigen"
-"The big menu is not compatible with AppOrder.": "Das große Menü ist nicht mit AppOrder kompatibel."
+"The big menu is not compatible with AppOrder.": "Das große Menü ist nicht mit AppOrder
kompatibel."
"Display the logo": "Logo anzeigen"
-"This feature is not compatible with the big menu
display.": "Diese Funktion ist nicht mit großes Menü
kompatibel."
+"This feature is not compatible with the big menu
display.": "Diese Funktion ist nicht mit dem großen Menü
kompatibel."
"Icons and texts": "Symbole und Texte"
-"Loader enabled": "Loader aktiviert"
+"Loader enabled": "Ladestandanzeige aktiviert"
"Tips": "Tipps"
-"Always displayed": "Wird immer angezeigt"
+"Always displayed": "Immer anzeigen"
"The logo will be hidden when the menu is always displayed.": "Das Logo wird ausgeblendet, wenn das Menü immer angezeigt wird."
"This is the automatic behavior when the menu is always displayed.": "Dies ist das automatische Verhalten, wenn das Menü immer angezeigt wird."
"Not compatible with touch screens.": "Nicht kompatibel mit Touchscreens."
"Big menu": "Großes Menü"
-"Live preview": "Live Vorschau"
-"Open apps in new tab": "Öffne Apps in einem neuen Tab"
+"Live preview": "Live-Vorschau"
+"Open apps in new tab": "Öffne Anwendungen in einem neuen Tab"
"Use the global setting": "Verwende die globale Einstellung"
"Use my selection": "Verwende meine Auswahl"
"Show and hide the list of applications": "Ein- und Ausblenden der Anwendungsliste"
-"Use the avatar instead of the logo": "Verwenden Sie den Avatar anstelle des Logos"
-"You do not have permission to change the settings.": "Sie haben keine Berechtigung zum Ändern der Einstellungen."
-"Force this configuration to users": "Erzwingen Sie diese Konfiguration für Benutzer"
-"Export the configuration": "Exportieren Sie die Konfiguration"
-"Purge the cache": "Leeren Sie den Cache"
-"Show the link to settings": "Zeigen Sie den Link zu den Einstellungen an"
-"The menu is enabled by default for users": "Das Menü ist standardmäßig für Benutzer aktiviert"
-"Except when the configuration is forced.": "Außer wenn die Konfiguration erzwungen wird."
-"Apps that should not be displayed in the menu": "Apps, die nicht im Menü angezeigt werden sollen"
-"This feature is only compatible with the big menu
display.": "Kompatibel mit der Anzeige Großes Menü code>."
+"Use the avatar instead of the logo": "Avatar anstelle des Logos anzeigen"
+"You do not have permission to change the settings.": "Du hast keine Berechtigung, die Einstellungen dieser Anwendung zu ändern."
+"Force this configuration to users": "Konfiguration für alle Benutzer erzwingen"
+"Export the configuration": "Konfiguration exportieren"
+"Purge the cache": "Cache leeren"
+"Show the link to settings": "Link zu den Einstellungen anzeigen"
+"The menu is enabled by default for users": "Das Menü ist standardmäßig für alle Benutzer aktiviert"
+"Except when the configuration is forced.": "Gilt nicht, wenn die Konfiguration erzwungen wird."
+"Apps that should not be displayed in the menu": "Anwendungen, die nicht im Menü angezeigt werden sollen"
+"This feature is only compatible with the big menu
display.": "Kompatibel mit dem großen Menü
."
"The logo is a link to the default app": "Das Logo ist ein Link zur Standard-App"
"Others": "Andere"
"Categories": "Kategorien"
"Customize sorting": "Sortierung anpassen"
"Order by": "Sortieren nach"
"Name": "Name"
-"Customed": "Kundenspezifisch"
+"Customed": "Benutzerdefiniert"
"Show and hide the list of categories": "Liste der Kategorien ein- und ausblenden"
-"This parameters are used when Dark theme or Breeze Dark Theme are enabled.": "Diese Parameter werden verwendet, wenn Dark Theme oder Breeze Dark Theme aktiviert sind."
-"Dark mode colors": "Dunkle Modusfarben"
+"This parameters are used when Dark theme or Breeze Dark Theme are enabled.": "Diese Optionen werden auf Dark Theme
oder Breeze Dark Theme
angewendet."
+"Dark mode colors": "Farben für den dunklen Modus"