gui: Translate fancytree messages in Versions modal (#8149)

* gui: Translate fancytree messages in Versions modal

Currently, the default fancytree info/error messages are used. This
means that a) they are English-only, and b) they are very generic. With
this commit, the messages are added to the translatable strings, and
they are also more specifically related to file versioning.

On a side note, the "moreData" string has been left out on purpose, as
it is not used in the current code. It can be added later if needed.

Signed-off-by: Tomasz Wilczyński <twilczynski@naver.com>
This commit is contained in:
tomasz1986
2022-01-30 07:56:36 +01:00
committed by GitHub
parent 8763fb05ec
commit 80d4bc1cea
2 changed files with 7 additions and 0 deletions
@@ -2530,6 +2530,11 @@ angular.module('syncthing.core')
table: {
indentation: 24,
},
strings: {
loading: $translate.instant("Loading..."),
loadError: $translate.instant("Failed to load file versions."),
noData: $translate.instant("There are no file versions to restore.")
},
// Set to '1' to silence errors after pressing arrow keys on file nodes.
// Happens on the official option cofiguration from the developer's site
// too, so probably a bug?