mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
server: Translate share page
This commit is contained in:
parent
e565d29490
commit
f26a04216a
@ -37,15 +37,15 @@
|
|||||||
<div id="main">
|
<div id="main">
|
||||||
<% if (note.parents[0].noteId !== '_share' && note.parents.length !== 0) { %>
|
<% if (note.parents[0].noteId !== '_share' && note.parents.length !== 0) { %>
|
||||||
<nav id="parentLink">
|
<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>
|
class="type-<%= note.parents[0].type %>"><%= note.parents[0].title %></a>
|
||||||
</nav>
|
</nav>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
<h1 id="title"><%= note.title %></h1>
|
<h1 id="title"><%= note.title %></h1>
|
||||||
|
|
||||||
<% if (note.hasLabel("pageUrl")) { %>
|
<% 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) { %>
|
<% if (!isEmpty) { %>
|
||||||
@ -58,7 +58,7 @@
|
|||||||
<nav id="childLinks" class="<% if (isEmpty) { %>grid<% } else { %>list<% } %>">
|
<nav id="childLinks" class="<% if (isEmpty) { %>grid<% } else { %>list<% } %>">
|
||||||
<% if (!isEmpty) { %>
|
<% if (!isEmpty) { %>
|
||||||
<hr>
|
<hr>
|
||||||
<span>Child notes: </span>
|
<span><%= t("share_page.child-notes") %> </span>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
@ -76,7 +76,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
<% } else if (isEmpty) { %>
|
<% } else if (isEmpty) { %>
|
||||||
<p>This note has no content.</p>
|
<p><%= t("share_page.no-content") %></p>
|
||||||
<% } %>
|
<% } %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -151,5 +151,11 @@
|
|||||||
"share_404": {
|
"share_404": {
|
||||||
"title": "Not found",
|
"title": "Not found",
|
||||||
"heading": "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."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -154,5 +154,11 @@
|
|||||||
"share_404": {
|
"share_404": {
|
||||||
"heading": "Pagină negăsită",
|
"heading": "Pagină negăsită",
|
||||||
"title": "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:"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user