From 05d6d0405fb46d83a1d5632ce95ac35767372bc7 Mon Sep 17 00:00:00 2001 From: reger24 <11603289+reger24@users.noreply.github.com> Date: Tue, 8 Feb 2022 22:42:11 +0100 Subject: [PATCH] Move sub-menu UI Translations from public Status to secure Sys Administration - as UI Translation (TransNews_p.html) is a secured page - it uses for publishing internal News system but belongs not really to "Community Data" --- htroot/Bookmarks.html | 4 ++-- htroot/TransNews_p.html | 2 +- htroot/Translator_p.html | 2 +- htroot/api/bookmarks/xbel/xbel.java | 2 ++ htroot/api/bookmarks/xbel/xbel.xml | 1 + htroot/env/templates/submenuComputation.template | 1 - htroot/env/templates/submenuConfig.template | 1 + 7 files changed, 8 insertions(+), 5 deletions(-) diff --git a/htroot/Bookmarks.html b/htroot/Bookmarks.html index 9a283a3de..c98540779 100644 --- a/htroot/Bookmarks.html +++ b/htroot/Bookmarks.html @@ -256,7 +256,7 @@ To see a list of all APIs, please visit the #(/public)# - #[title]# + #[title]#

#[description]#

#(hasquery)#::

query=#[query]#

#(/hasquery)# @@ -266,7 +266,7 @@ To see a list of all APIs, please visit the Delete / - Info + Info #(hasquery)#:: / search diff --git a/htroot/TransNews_p.html b/htroot/TransNews_p.html index 840764502..596607844 100644 --- a/htroot/TransNews_p.html +++ b/htroot/TransNews_p.html @@ -6,7 +6,7 @@ #%env/templates/header.template%# - #%env/templates/submenuComputation.template%# + #%env/templates/submenuConfig.template%#

Translation News for Language #[currentlang]#

diff --git a/htroot/Translator_p.html b/htroot/Translator_p.html index e4925791e..b8551ba97 100644 --- a/htroot/Translator_p.html +++ b/htroot/Translator_p.html @@ -8,7 +8,7 @@ #%env/templates/header.template%# - #%env/templates/submenuDesign.template%# + #%env/templates/submenuConfig.template%#

Translation Editor

Translate untranslated text of the user interface (current language). The modified translation file is stored in DATA/LOCALE directory.

diff --git a/htroot/api/bookmarks/xbel/xbel.java b/htroot/api/bookmarks/xbel/xbel.java index 0baee31c1..4b779a4fb 100644 --- a/htroot/api/bookmarks/xbel/xbel.java +++ b/htroot/api/bookmarks/xbel/xbel.java @@ -8,6 +8,7 @@ import net.yacy.cora.protocol.RequestHeader; import net.yacy.data.BookmarkHelper; import net.yacy.data.BookmarksDB; import net.yacy.document.parser.html.CharacterCoding; +import net.yacy.peers.operation.yacyBuildProperties; import net.yacy.search.Switchboard; import net.yacy.server.serverObjects; import net.yacy.server.serverSwitch; @@ -60,6 +61,7 @@ public class xbel { R = root.replaceAll("[^/]","").length() - 1; count = recurseFolders(BookmarkHelper.getFolderList(root, switchboard.bookmarksDB.getTagIterator(isAdmin)),root,0,true,""); prop.put("xbel", count); + prop.put("yacyversion", yacyBuildProperties.getVersion()); return prop; // return from serverObjects respond() } diff --git a/htroot/api/bookmarks/xbel/xbel.xml b/htroot/api/bookmarks/xbel/xbel.xml index 69b9a7b45..a3db3ea28 100644 --- a/htroot/api/bookmarks/xbel/xbel.xml +++ b/htroot/api/bookmarks/xbel/xbel.xml @@ -1,6 +1,7 @@ #(style)#::#(/style)# + #{xbel}# #[elements]# diff --git a/htroot/env/templates/submenuComputation.template b/htroot/env/templates/submenuComputation.template index 777ff3780..b6062bcf8 100644 --- a/htroot/env/templates/submenuComputation.template +++ b/htroot/env/templates/submenuComputation.template @@ -33,7 +33,6 @@ diff --git a/htroot/env/templates/submenuConfig.template b/htroot/env/templates/submenuConfig.template index c4e2b6c4e..ad5451fc5 100644 --- a/htroot/env/templates/submenuConfig.template +++ b/htroot/env/templates/submenuConfig.template @@ -5,5 +5,6 @@
  • Performance Settings of Busy Queues
  • Viewer and administration for database tables
  • Advanced Properties
  • +
  • UI Translations
  • \ No newline at end of file