Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

include translation news service in status submenue + display translation proposal news only for current language (in TransNews servlet)

regera2777903d64f
diff --git a/htroot/News.html b/htroot/News.html
index 1c2b83507..320717d3d 100644
--- a/htroot/News.html
+++ b/htroot/News.html
@@ -43,6 +43,10 @@
A change in the personal profile will create a news entry. You can see recently made changes of
profile entries on the Network page, where that profile change is visualized with a '*' beside the 'P' (profile) - selector.
</li>
+ <li>
+ Publishing of added or modified translation for the user interface. Other peers may include it in their local translation list.
+ To publish a translation, use the integrated <a href="Translator_p.html">translation editor</a> to add a translation and publish it afterwards.
+ </li>
</ul>
<p>
More news services will follow.
diff --git a/htroot/TransNews_p.html b/htroot/TransNews_p.html
index d5b755c02..7e69deedb 100644
--- a/htroot/TransNews_p.html
+++ b/htroot/TransNews_p.html
@@ -6,7 +6,7 @@
</head>
<body>
#%env/templates/header.template%#
-
+ #%env/templates/submenuComputation.template%#
<h2 class="yacy">Translation News for Language #[currentlang]#</h2>
<form method="post" enctype="multipart/form-data">
diff --git a/htroot/TransNews_p.java b/htroot/TransNews_p.java
index 468d92adc..d570cf363 100644
--- a/htroot/TransNews_p.java
+++ b/htroot/TransNews_p.java
@@ -200,6 +200,7 @@ public class TransNews_p {
continue;
}
+ if (!lang.equals(currentlang)) continue;
String existingtarget = null; //transMgr.getTranslation(filename, source);
Map<String, String> tmpMap = localTrans.get(filename);
diff --git a/htroot/env/templates/submenuComputation.template b/htroot/env/templates/submenuComputation.template
index b6062bcf8..5a112d2ce 100644
--- a/htroot/env/templates/submenuComputation.template
+++ b/htroot/env/templates/submenuComputation.template
@@ -33,6 +33,7 @@
<ul class="SubMenu">
<li><a href="Surftips.html" class="MenuItemLink">Surftips</a></li>
<li><a href="Wiki.html?display=1" class="MenuItemLink">Local Peer Wiki</a></li>
+ <li><a href="TransNews_p.html" class="MenuItemLink">UI Translations</a></li>
</ul>
</div>
</div>
diff --git a/locales/master.lng.xlf b/locales/master.lng.xlf
index 47d038e9a..fec0c7550 100644
--- a/locales/master.lng.xlf
+++ b/locales/master.lng.xlf
@@ -5966,6 +5966,21 @@
<trans-unit id="49006831" xml:space="preserve" approved="no" translate="yes">
<source>profile entries on the Network page, where that profile change is visualized with a '*' beside the 'P' (profile) - selector.</source>
</trans-unit>
+ <trans-unit id="80e8551f" xml:space="preserve" approved="no" translate="yes">
+ <source>Publishing of added or modified translation for the user interface.</source>
+ </trans-unit>
+ <trans-unit id="aff2f3ce" xml:space="preserve" approved="no" translate="yes">
+ <source>Other peers may include it in their local translation list.</source>
+ </trans-unit>
+ <trans-unit id="304f12eb" xml:space="preserve" approved="no" translate="yes">
+ <source>To publish a translation, use the integrated</source>
+ </trans-unit>
+ <trans-unit id="f7855dbc" xml:space="preserve" approved="no" translate="yes">
+ <source>translation editor</source>
+ </trans-unit>
+ <trans-unit id="7e95942a" xml:space="preserve" approved="no" translate="yes">
+ <source>to add a translation and publish it afterwards.</source>
+ </trans-unit>
<trans-unit id="ac7ecc34" xml:space="preserve" approved="no" translate="yes">
<source>Above you can see four menues:</source>
</trans-unit>
@@ -10124,6 +10139,9 @@
<trans-unit id="a66de681" xml:space="preserve" approved="no" translate="yes">
<source>&gt;Local Peer Wiki&lt;</source>
</trans-unit>
+ <trans-unit id="cf394e0e" xml:space="preserve" approved="no" translate="yes">
+ <source>UI Translations</source>
+ </trans-unit>
</body>
</file>