Browse Source

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

tomasz1986 3 years ago
parent
commit
6862dd04ab

+ 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.",
    "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 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?",
    "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 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 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?",
    "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,
                                 maxDate: maxDate,
                                 ranges: ranges,
                                 ranges: ranges,
                                 locale: {
                                 locale: {
+                                    applyLabel: $translate.instant("Apply"),
+                                    cancelLabel: $translate.instant("Cancel"),
                                     customRangeLabel: $translate.instant("Custom Range"),
                                     customRangeLabel: $translate.instant("Custom Range"),
                                     format: 'YYYY/MM/DD HH:mm:ss',
                                     format: 'YYYY/MM/DD HH:mm:ss',
                                 }
                                 }