From 4893513800786e5b8c20ff2c070a2f5acab57f4d Mon Sep 17 00:00:00 2001 From: tomasz1986 Date: Mon, 18 Apr 2022 06:41:26 +0200 Subject: [PATCH] gui: Improve Latest Change translation string for better multilanguage support (#8290) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently, the "Latest Change" translation string is hard-coded to use the English-like word order of V ("deleted") + N ("file"). As such, it is incompatible with languages that require to use a different word order, e.g. Korean or Japanese. In other words, a proper translation of the string to those languages is currently impossible. This commit changes the translation string, so that it includes the file variable, and thanks to this, it can be easily adopted to languages with different word order than English. Signed-off-by: Tomasz WilczyƄski --- gui/default/assets/lang/lang-en.json | 4 ++-- gui/default/index.html | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/gui/default/assets/lang/lang-en.json b/gui/default/assets/lang/lang-en.json index b1e2909bd..827b5e82d 100644 --- a/gui/default/assets/lang/lang-en.json +++ b/gui/default/assets/lang/lang-en.json @@ -78,7 +78,7 @@ "Defaults": "Defaults", "Delete": "Delete", "Delete Unexpected Items": "Delete Unexpected Items", - "Deleted": "Deleted", + "Deleted {%file%}": "Deleted {{file}}", "Deselect All": "Deselect All", "Deselect devices to stop sharing this folder with.": "Deselect devices to stop sharing this folder with.", "Deselect folders to stop sharing with this device.": "Deselect folders to stop sharing with this device.", @@ -409,7 +409,7 @@ "Unshared Folders": "Unshared Folders", "Untrusted": "Untrusted", "Up to Date": "Up to Date", - "Updated": "Updated", + "Updated {%file%}": "Updated {{file}}", "Upgrade": "Upgrade", "Upgrade To {%version%}": "Upgrade To {{version}}", "Upgrading": "Upgrading", diff --git a/gui/default/index.html b/gui/default/index.html index cbcfb47c9..415d55cb5 100644 --- a/gui/default/index.html +++ b/gui/default/index.html @@ -547,9 +547,8 @@  Latest Change - Updated - Deleted - {{folderStats[folder.id].lastFile.filename | basename}} + Updated {%file%} + Deleted {%file%}