From f26a04216a235f585f4cb18bcf22ca28122b2a92 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 8 Sep 2024 20:36:25 +0300 Subject: [PATCH] server: Translate share page --- src/views/share/page.ejs | 10 +++++----- translations/en/server.json | 6 ++++++ translations/ro/server.json | 6 ++++++ 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/src/views/share/page.ejs b/src/views/share/page.ejs index 3ed3005e2..141995b74 100644 --- a/src/views/share/page.ejs +++ b/src/views/share/page.ejs @@ -37,15 +37,15 @@
<% if (note.parents[0].noteId !== '_share' && note.parents.length !== 0) { %> <% } %>

<%= note.title %>

<% if (note.hasLabel("pageUrl")) { %> -
This note was originally clipped from "><%= note.getLabelValue("pageUrl") %>
+
<%- t("share_page.clipped-from", { url: `${note.getLabelValue("pageUrl")}` }) %>
<% } %> <% if (!isEmpty) { %> @@ -58,7 +58,7 @@ <% } else if (isEmpty) { %> -

This note has no content.

+

<%= t("share_page.no-content") %>

<% } %>
diff --git a/translations/en/server.json b/translations/en/server.json index 0e98d705f..3d8a46e55 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 00729c6d8..b419928fe 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:" } }