Skip to content

Build your personal knowledge base with Trilium Notes

server: Translate share page

Elian Doranf26a04216a23
diff --git a/src/views/share/page.ejs b/src/views/share/page.ejs
index 3ed3005e23..141995b741 100644
--- a/src/views/share/page.ejs
+++ b/src/views/share/page.ejs
@@ -37,15 +37,15 @@
<div id="main">
<% if (note.parents[0].noteId !== '_share' && note.parents.length !== 0) { %>
<nav id="parentLink">
- parent: <a href="<%= note.parents[0].shareId %>"
- class="type-<%= note.parents[0].type %>"><%= note.parents[0].title %></a>
+ <%= t("share_page.parent") %> <a href="<%= note.parents[0].shareId %>"
+ class="type-<%= note.parents[0].type %>"><%= note.parents[0].title %></a>
</nav>
<% } %>
<h1 id="title"><%= note.title %></h1>
<% if (note.hasLabel("pageUrl")) { %>
- <div id="noteClippedFrom">This note was originally clipped from <a href="<%= note.getLabelValue("pageUrl") %>"><%= note.getLabelValue("pageUrl") %></a></div>
+ <div id="noteClippedFrom"><%- t("share_page.clipped-from", { url: `<a href="${note.getLabelValue("pageUrl")}">${note.getLabelValue("pageUrl")}</a>` }) %></div>
<% } %>
<% if (!isEmpty) { %>
@@ -58,7 +58,7 @@
<nav id="childLinks" class="<% if (isEmpty) { %>grid<% } else { %>list<% } %>">
<% if (!isEmpty) { %>
<hr>
- <span>Child notes: </span>
+ <span><%= t("share_page.child-notes") %> </span>
<% } %>
<ul>
@@ -76,7 +76,7 @@
</ul>
</nav>
<% } else if (isEmpty) { %>
- <p>This note has no content.</p>
+ <p><%= t("share_page.no-content") %></p>
<% } %>
</div>
diff --git a/translations/en/server.json b/translations/en/server.json
index 0e98d705f2..3d8a46e55c 100644
--- a/translations/en/server.json
+++ b/translations/en/server.json
@@ -151,5 +151,11 @@
"share_404": {
"title": "Not found",
"heading": "Not found"
+ },
+ "share_page": {
+ "parent": "parent:",
+ "clipped-from": "This note was originally clipped from {{- url}}",
+ "child-notes": "Child notes:",
+ "no-content": "This note has no content."
}
}
diff --git a/translations/ro/server.json b/translations/ro/server.json
index 00729c6d8d..b419928fe9 100644
--- a/translations/ro/server.json
+++ b/translations/ro/server.json
@@ -154,5 +154,11 @@
"share_404": {
"heading": "Pagină negăsită",
"title": "Pagină negăsită"
+ },
+ "share_page": {
+ "child-notes": "Subnotițe:",
+ "clipped-from": "Această notiță a fost decupată inițial de pe {{- url}}",
+ "no-content": "Această notiță nu are conținut.",
+ "parent": "părinte:"
}
}