From 0a409e106cabb724302bc47f2783ef03e164e5b9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 25 Oct 2010 11:48:40 +0200 Subject: [PATCH] =?utf8?q?Show=20=E2=80=9Cconfirmation=20of=20clear-on-nex?= =?utf8?q?t-restart=E2=80=9D=20option.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/sone/web/OptionsPage.java | 1 + src/main/resources/i18n/sone.en.properties | 1 + src/main/resources/templates/options.html | 3 +++ 3 files changed, 5 insertions(+) diff --git a/src/main/java/net/pterodactylus/sone/web/OptionsPage.java b/src/main/java/net/pterodactylus/sone/web/OptionsPage.java index bbe8118..5a9e165 100644 --- a/src/main/java/net/pterodactylus/sone/web/OptionsPage.java +++ b/src/main/java/net/pterodactylus/sone/web/OptionsPage.java @@ -58,6 +58,7 @@ public class OptionsPage extends SoneTemplatePage { } template.set("insertion-delay", options.getIntegerOption("InsertionDelay").get()); template.set("clear-on-next-restart", options.getBooleanOption("ClearOnNextRestart").get()); + template.set("really-clear-on-next-restart", options.getBooleanOption("ReallyClearOnNextRestart").get()); } // diff --git a/src/main/resources/i18n/sone.en.properties b/src/main/resources/i18n/sone.en.properties index 61dcacd..507d67c 100644 --- a/src/main/resources/i18n/sone.en.properties +++ b/src/main/resources/i18n/sone.en.properties @@ -27,6 +27,7 @@ Page.Options.Page.Title=Options Page.Options.Page.Description=These options influence the runtime behaviour of the Sone plugin. Page.Options.Option.InsertionDelay.Description=The number of seconds the Sone inserter waits after a modification of a Sone before it is being inserted. Page.Options.Option.ClearOnNextRestart.Description=Resets the configuration of the Sone plugin at the next restart. Warning! {strong}This will destroy all of your Sones{/strong} so make sure you have backed up everyhing you still need! Also, you need to set the next option to true to actually do it. +Page.Options.Option.ReallyClearOnNextRestart.Description=This option needs to be set to “yes” if you really, {strong}really{/strong} want to clear the plugin configuration on the next restart. Page.Options.Button.Save=Save Page.Login.Title=Login - Sone diff --git a/src/main/resources/templates/options.html b/src/main/resources/templates/options.html index 4e2c83b..e0872bb 100644 --- a/src/main/resources/templates/options.html +++ b/src/main/resources/templates/options.html @@ -19,6 +19,9 @@

<%= Page.Options.Option.ClearOnNextRestart.Description|l10n|html|replace needle="{strong}" replacement=""|replace needle="{/strong}" replacement="">

+

<%= Page.Options.Option.ReallyClearOnNextRestart.Description|l10n|html|replace needle="{strong}" replacement=""|replace needle="{/strong}" replacement="">

+

+

-- 2.7.4