From feb441d642ccd064ec054122f2b2f663aa7538a1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 8 Apr 2011 06:15:47 +0200 Subject: [PATCH] Show default texts in the trust-related settings on the options page. --- src/main/resources/i18n/sone.en.properties | 3 +++ src/main/resources/templates/options.html | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/src/main/resources/i18n/sone.en.properties b/src/main/resources/i18n/sone.en.properties index 282e9b7..bdf3e72 100644 --- a/src/main/resources/i18n/sone.en.properties +++ b/src/main/resources/i18n/sone.en.properties @@ -268,6 +268,9 @@ WebInterface.DefaultText.BirthYear=Year WebInterface.DefaultText.FieldName=Field name WebInterface.DefaultText.Option.InsertionDelay=Time to wait after a Sone is modified before insert (in seconds) WebInterface.DefaultText.Option.PostsPerPage=Number of posts to show on a page +WebInterface.DefaultText.Option.PositiveTrust=The positive trust to assign +WebInterface.DefaultText.Option.NegativeTrust=The negative trust to assign +WebInterface.DefaultText.Option.TrustComment=The comment to set in the web of trust WebInterface.DefaultText.Search=What are you looking for? WebInterface.Confirmation.DeletePostButton=Yes, delete! WebInterface.Confirmation.DeleteReplyButton=Yes, delete! diff --git a/src/main/resources/templates/options.html b/src/main/resources/templates/options.html index 76cbfc4..7e71d32 100644 --- a/src/main/resources/templates/options.html +++ b/src/main/resources/templates/options.html @@ -8,6 +8,15 @@ getTranslation("WebInterface.DefaultText.Option.PostsPerPage", function(postsPerPageText) { registerInputTextareaSwap("#sone #options input[name=posts-per-page]", postsPerPageText, "posts-per-page", true, true); }); + getTranslation("WebInterface.DefaultText.Option.PositiveTrust", function(positiveTrustText) { + registerInputTextareaSwap("#sone #options input[name=positive-trust]", positiveTrustText, "positive-trust", true, true); + }); + getTranslation("WebInterface.DefaultText.Option.NegativeTrust", function(negativeTrustText) { + registerInputTextareaSwap("#sone #options input[name=negative-trust]", negativeTrustText, "negative-trust", true, true); + }); + getTranslation("WebInterface.DefaultText.Option.TrustComment", function(trustCommentText) { + registerInputTextareaSwap("#sone #options input[name=trust-comment]", trustCommentText, "trust-comment", true, true); + }); }); -- 2.7.4