gui: Allow to translate "unknown device" (#9229)
The string is currently hard-coded in English, so allow to translate it into other languages. It appears mainly in the browser title bar before logging in into the GUI or when the GUI is still loading. Signed-off-by: Tomasz Wilczyński <twilczynski@naver.com>
This commit is contained in:
@@ -1378,7 +1378,7 @@ angular.module('syncthing.core')
|
||||
$scope.thisDeviceName = function () {
|
||||
var device = $scope.thisDevice();
|
||||
if (typeof device === 'undefined') {
|
||||
return "(unknown device)";
|
||||
return '(' + $translate.instant("unknown device") + ')';
|
||||
}
|
||||
if (device.name) {
|
||||
return device.name;
|
||||
|
||||
Reference in New Issue
Block a user