From 78d6fccb6660e4d4c5dbd896c7ab6d3084e2091d Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 25 Oct 2010 08:22:39 +0200 Subject: [PATCH] =?utf8?q?Show=20the=20first=20of=20the=20two=20=E2=80=9Cc?= =?utf8?q?lear=20on=20next=20restart=E2=80=9D=20options=20on=20the=20Optio?= =?utf8?q?ns=20page.?= 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 | 4 ++++ src/main/resources/templates/options.html | 3 +++ 3 files changed, 8 insertions(+) diff --git a/src/main/java/net/pterodactylus/sone/web/OptionsPage.java b/src/main/java/net/pterodactylus/sone/web/OptionsPage.java index 1a5fa6a..71de2d3 100644 --- a/src/main/java/net/pterodactylus/sone/web/OptionsPage.java +++ b/src/main/java/net/pterodactylus/sone/web/OptionsPage.java @@ -55,6 +55,7 @@ public class OptionsPage extends SoneTemplatePage { options.getIntegerOption("InsertionDelay").set(insertionDelay); } template.set("insertion-delay", options.getIntegerOption("InsertionDelay").get()); + template.set("clear-on-next-restart", options.getBooleanOption("ClearOnNextRestart").get()); } // diff --git a/src/main/resources/i18n/sone.en.properties b/src/main/resources/i18n/sone.en.properties index 5d74a57..61dcacd 100644 --- a/src/main/resources/i18n/sone.en.properties +++ b/src/main/resources/i18n/sone.en.properties @@ -26,6 +26,7 @@ Page.Options.Title=Options - Sone 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.Button.Save=Save Page.Login.Title=Login - Sone @@ -196,3 +197,6 @@ WebInterface.DefaultText.BirthYear=Year WebInterface.DefaultText.Option.InsertionDelay=Time to wait after a Sone is modified before insert (in seconds) WebInterface.Confirmation.DeletePostButton=Yes, delete! WebInterface.Confirmation.DeleteReplyButton=Yes, delete! +WebInterface.SelectBox.Choose=Choose… +WebInterface.SelectBox.Yes=Yes +WebInterface.SelectBox.No=No diff --git a/src/main/resources/templates/options.html b/src/main/resources/templates/options.html index 0e8181c..4e2c83b 100644 --- a/src/main/resources/templates/options.html +++ b/src/main/resources/templates/options.html @@ -16,6 +16,9 @@

<%= Page.Options.Option.InsertionDelay.Description|l10n|html>

+

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

+

+

-- 2.7.4