hook up to translations

This commit is contained in:
Zlatin Balevsky
2019-12-14 21:18:43 +00:00
parent e30a4666cb
commit 918549f164
2 changed files with 34 additions and 17 deletions

View File

@ -24,6 +24,9 @@ public class Util {
private static final String[] jsStrings = {
// alphabetical please
_x("Actions"),
_x("Allow browsing"),
_x("Allow only trusted connections"),
_x("Allow others to view my trust list"),
_x("Browse"),
_x("Browsing"),
_x("Cancel"),
@ -43,11 +46,15 @@ public class Util {
_x("Host"),
_x("Import"),
_x("Imported"),
_x("Inbound tunnel length"),
_x("Inbound tunnel quantity"),
_x("Last Updated"),
_x("Mark Distrusted"),
_x("Mark Neutral"),
_x("Mark Trusted"),
_x("Name"),
_x("Outbound tunnel length"),
_x("Outbound tunnel quantity"),
_x("Pause"),
_x("Progress"),
_x("Query"),
@ -58,21 +65,31 @@ public class Util {
_x("Results from {0}"),
_x("Resume"),
_x("Retry"),
_x("Retry failed downloads every (seconds)"),
_x("Save"),
_x("Save downloaded files to"),
_x("Search"),
_x("Search extra hop"),
_x("Search in comments"),
_x("Sender"),
_x("Senders"),
_x("Share downloaded files"),
_x("Share hidden files"),
_x("Shared Files"),
_x("Show Comment"),
_x("Size"),
_x("Speed"),
_x("State"),
_x("Status"),
_x("Store incomplete files in"),
_x("Subscribe"),
_x("Subscribed"),
_x("Total upload slots (-1 means unlimited)"),
_x("Trust"),
_x("Unshare"),
_x("Unsubscribe"),
_x("Update trust lists every (hours)"),
_x("Upload slots per user (-1 means unlimited)"),
_x("User"),
_x("View {0} Certificates"),
_x("Your Trust"),

View File

@ -35,11 +35,11 @@ String outboundQuantity = core.getI2pOptions().getProperty("outbound.quantity");
<div class="configuration-section">
<table>
<tr>
<td>Search in comments</td>
<td><%=Util._t("Search in comments")%></td>
<td><p align="right"><input type="checkbox" <% if (core.getMuOptions().getSearchComments()) out.write("checked"); %> name="searchComments" value="true"></p></td>
</tr>
<tr>
<td>Allow browsing</td>
<td><%=Util._t("Allow browsing")%></td>
<td><p align="right"><input type="checkbox" <% if (core.getMuOptions().getBrowseFiles()) out.write("checked"); %> name="browseFiles" value="true"></p></td>
</tr>
</table>
@ -47,15 +47,15 @@ String outboundQuantity = core.getI2pOptions().getProperty("outbound.quantity");
<div class="configuration-section">
<table>
<tr>
<td>Retry failed downloads every (seconds)</td>
<td><%=Util._t("Retry failed downloads every (seconds)")%></td>
<td><p align="right"><input type="text" size="1" name="downloadRetryInterval" value="<%= core.getMuOptions().getDownloadRetryInterval()%>"></p></td>
</tr>
<tr>
<td>Save downloaded files to</td>
<td><%=Util._t("Save downloaded files to")%></td>
<td><p align="right"><input type="text" size="30" name="downloadLocation" value="<%= core.getMuOptions().getDownloadLocation().getAbsoluteFile()%>"></p></td>
</tr>
<tr>
<td>Store incomplete files in</td>
<td><%=Util._t("Store incomplete files in")%></td>
<td><p align="right"><input type="text" size="30" name="incompleteLocation" value="<%= core.getMuOptions().getIncompleteLocation().getAbsoluteFile()%>"></p></td>
</tr>
</table>
@ -63,11 +63,11 @@ String outboundQuantity = core.getI2pOptions().getProperty("outbound.quantity");
<div class="configuration-section">
<table>
<tr>
<td>Total upload slots (-1 means unlimited)</td>
<td><%=Util._t("Total upload slots (-1 means unlimited)")%></td>
<td><p align="right"><input type="text" size="1" name="totalUploadSlots" value="<%= core.getMuOptions().getTotalUploadSlots() %>"></p></td>
</tr>
<tr>
<td>Upload slots per user (-1 means unlimited)</td>
<td><%=Util._t("Upload slots per user (-1 means unlimited)")%></td>
<td><p align="right"><input type="text" size="1" name="uploadSlotsPerUser" value="<%= core.getMuOptions().getUploadSlotsPerUser() %>"></p></td>
</tr>
</table>
@ -75,11 +75,11 @@ String outboundQuantity = core.getI2pOptions().getProperty("outbound.quantity");
<div class="configuration-section">
<table>
<tr>
<td>Share downloaded files</td>
<td><%=Util._t("Share downloaded files")%></td>
<td><p align="right"><input type="checkbox" <% if (core.getMuOptions().getShareDownloadedFiles()) out.write("checked"); %> name="shareDownloadedFiles" value="true"></p></td>
</tr>
<tr>
<td>Share hidden files</td>
<td><%=Util._t("Share hidden files")%></td>
<td><p align="right"><input type="checkbox" <% if (core.getMuOptions().getShareHiddenFiles()) out.write("checked"); %> name="shareHiddenFiles" value="true"></p></td>
</tr>
</table>
@ -87,19 +87,19 @@ String outboundQuantity = core.getI2pOptions().getProperty("outbound.quantity");
<div class="configuration-section">
<table>
<tr>
<td>Allow only trusted connections</td>
<td><%=Util._t("Allow only trusted connections")%></td>
<td><p align="right"><input type="checkbox" <% if (!core.getMuOptions().getAllowUntrusted()) out.write("checked"); %> name="allowUntrusted" value="true"></p></td>
</tr>
<tr>
<td>Search extra hop</td>
<td><%=Util._t("Search extra hop")%></td>
<td><p align="right"><input type="checkbox" <% if (core.getMuOptions().getSearchExtraHop()) out.write("checked"); %> name="searchExtraHop" value="true"></p></td>
</tr>
<tr>
<td>Allow others to view my trust list</td>
<td><%=Util._t("Allow others to view my trust list")%></td>
<td><p align="right"><input type="checkbox" <% if (core.getMuOptions().getAllowTrustLists()) out.write("checked"); %> name="allowTrustLists" value="true"></p></td>
</tr>
<tr>
<td>Update trust lists every (hours)</td>
<td><%=Util._t("Update trust lists every (hours)")%></td>
<td><p align="right"><input type="text" size="1" name="trustListInterval" value="<%= core.getMuOptions().getTrustListInterval() %>"></p></td>
</tr>
</table>
@ -107,19 +107,19 @@ String outboundQuantity = core.getI2pOptions().getProperty("outbound.quantity");
<div class="configuration-section">
<table>
<tr>
<td>Inbound tunnel length</td>
<td><%=Util._t("Inbound tunnel length")%></td>
<td><p align="right"><input type="text" size="1" name="inbound.length" value="<%=inboundLength%>"></p></td>
</tr>
<tr>
<td>Inbound tunnel quantity</td>
<td><%=Util._t("Inbound tunnel quantity")%></td>
<td><p align="right"><input type="text" size="1" name="inbound.quantity" value="<%=inboundQuantity%>"></p></td>
</tr>
<tr>
<td>Outbound tunnel length</td>
<td><%=Util._t("Outbound tunnel length")%></td>
<td><p align="right"><input type="text" size="1" name="outbound.length" value="<%=outboundLength%>"></p></td>
</tr>
<tr>
<td>Outbound tunnel quantity</td>
<td><%=Util._t("Outbound tunnel quantity")%></td>
<td><p align="right"><input type="text" size="1" name="outbound.quantity" value="<%=outboundQuantity%>"></p></td>
</tr>
</table>