From 8cd77510d383c0ca8160136f87e1f8ce99deb410 Mon Sep 17 00:00:00 2001 From: Moritz Strohm <strohm@data-quest.de> Date: Wed, 9 Aug 2023 17:48:59 +0200 Subject: [PATCH] improved two text strings --- controllers/configure.php | 2 +- views/configure/myarea.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/configure.php b/controllers/configure.php index 46803c7..9ee1a16 100755 --- a/controllers/configure.php +++ b/controllers/configure.php @@ -16,7 +16,7 @@ class ConfigureController extends PluginController $config->unsetValue("NEXTCLOUD_REFRESH_TOKEN"); $config->unsetValue("NEXTCLOUD_ACTIVATED"); $config->unsetValue("NEXTCLOUD_ACCESS_TOKEN_EXPIRES"); - PageLayout::postSuccess(dgettext('NextcloudPlugin', "Die Zugangsdaten zur Nextcloud wurden gelöscht.")); + PageLayout::postSuccess(sprintf(dgettext('NextcloudPlugin', "Die Zugangsdaten zu %s wurden gelöscht."), Config::get()->NEXTCLOUD_NAME)); $this->redirect(URLHelper::getURL("dispatch.php/files")); return; } diff --git a/views/configure/myarea.php b/views/configure/myarea.php index 57cb10f..b722724 100755 --- a/views/configure/myarea.php +++ b/views/configure/myarea.php @@ -53,7 +53,7 @@ <div data-dialog-button> <?= \Studip\Button::create(dgettext('NextcloudPlugin', "Speichern")) ?> <? if (\Nextcloud\OAuth::isReady()) : ?> - <?= \Studip\Button::create(dgettext('NextcloudPlugin', "Zugang aufheben"), "remove", ['data-confirm' => dgettext('NextcloudPlugin', "Wirklich den Zugang zur Owncloud aufheben?")]) ?> + <?= \Studip\Button::create(dgettext('NextcloudPlugin', 'Verbindung trennen'), "remove", ['data-confirm' => sprintf(dgettext('NextcloudPlugin', "Soll die Verbindung zu %s wirklich getrennt werden?"), Config::get()->NEXTCLOUD_NAME)]) ?> <? endif ?> </div> </form> -- GitLab