Skip to content
Snippets Groups Projects
Commit 8cd77510 authored by Moritz Strohm's avatar Moritz Strohm
Browse files

improved two text strings

parent 73131821
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment