From 6862dd04ab621442486e6041b978f0ddb58ff9be Mon Sep 17 00:00:00 2001 From: tomasz1986 Date: Sat, 12 Mar 2022 22:44:56 +0100 Subject: [PATCH] gui: Allow to translate calendar buttons in Restore Versions modal (#8213) --- gui/default/assets/lang/lang-en.json | 1 + gui/default/syncthing/core/syncthingController.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/gui/default/assets/lang/lang-en.json b/gui/default/assets/lang/lang-en.json index 2223e8efd..843b41612 100644 --- a/gui/default/assets/lang/lang-en.json +++ b/gui/default/assets/lang/lang-en.json @@ -28,6 +28,7 @@ "An external command handles the versioning. It has to remove the file from the shared folder. If the path to the application contains spaces, it should be quoted.": "An external command handles the versioning. It has to remove the file from the shared folder. If the path to the application contains spaces, it should be quoted.", "Anonymous Usage Reporting": "Anonymous Usage Reporting", "Anonymous usage report format has changed. Would you like to move to the new format?": "Anonymous usage report format has changed. Would you like to move to the new format?", + "Apply": "Apply", "Are you sure you want to continue?": "Are you sure you want to continue?", "Are you sure you want to override all remote changes?": "Are you sure you want to override all remote changes?", "Are you sure you want to permanently delete all these files?": "Are you sure you want to permanently delete all these files?", diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index d3a3d2355..e528f0f0e 100755 --- a/gui/default/syncthing/core/syncthingController.js +++ b/gui/default/syncthing/core/syncthingController.js @@ -2624,6 +2624,8 @@ angular.module('syncthing.core') maxDate: maxDate, ranges: ranges, locale: { + applyLabel: $translate.instant("Apply"), + cancelLabel: $translate.instant("Cancel"), customRangeLabel: $translate.instant("Custom Range"), format: 'YYYY/MM/DD HH:mm:ss', }