瀏覽代碼

gui: Allow to translate calendar buttons in Restore Versions modal (#8213)

tomasz1986 3 年之前
父節點
當前提交
6862dd04ab
共有 2 個文件被更改,包括 3 次插入0 次删除
  1. 1 0
      gui/default/assets/lang/lang-en.json
  2. 2 0
      gui/default/syncthing/core/syncthingController.js

+ 1 - 0
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?",

+ 2 - 0
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',
                                 }