server: Translate share page

This commit is contained in:
Elian Doran 2024-09-08 20:36:25 +03:00
parent e565d29490
commit f26a04216a
No known key found for this signature in database
3 changed files with 17 additions and 5 deletions

View File

@ -37,7 +37,7 @@
<div id="main">
<% if (note.parents[0].noteId !== '_share' && note.parents.length !== 0) { %>
<nav id="parentLink">
parent: <a href="<%= note.parents[0].shareId %>"
<%= t("share_page.parent") %> <a href="<%= note.parents[0].shareId %>"
class="type-<%= note.parents[0].type %>"><%= note.parents[0].title %></a>
</nav>
<% } %>
@ -45,7 +45,7 @@
<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>

View File

@ -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."
}
}

View File

@ -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:"
}
}