Remove translation fallbacks

pull/1/head
ClemDee 5 years ago
parent 27502c61b1
commit f2063f3748

@ -3590,15 +3590,15 @@ define([
} else if (manager.isFolder(el)) { // Folder } else if (manager.isFolder(el)) { // Folder
// if folder already contains SF // if folder already contains SF
if (manager.isInSharedFolder(paths[0].path)) { if (manager.isInSharedFolder(paths[0].path)) {
UI.alert(Messages.convertFolderToSF_SFParent || "Sharing this folder can't be done because it already in a Shared Folder. Please, move this folder elsewhere in order to continue", undefined, true); UI.alert(Messages.convertFolderToSF_SFParent, undefined, true);
} }
// if folder is inside SF // if folder is inside SF
else if (manager.hasSubSharedFolder(el)) { else if (manager.hasSubSharedFolder(el)) {
UI.alert(Messages.convertFolderToSF_SFChildren || "Sharing this folder can't be done because it already contains one ore more Shared Folders. Please, remove those from this folder in order to continue.", undefined, true); UI.alert(Messages.convertFolderToSF_SFChildren, undefined, true);
} }
// if folder does not contains SF // if folder does not contains SF
else { else {
UI.confirm(Messages.convertFolderToSF_confirm || "In order to be shared, this folder must be converted into a shared folder. Proceed ?", function(res) { UI.confirm(Messages.convertFolderToSF_confirm, function(res) {
if (!res) { return; } if (!res) { return; }
if (paths[0].path.length <= 1) { return; } // if root if (paths[0].path.length <= 1) { return; } // if root
manager.convertFolderToSharedFolder(paths[0].path, refresh); manager.convertFolderToSharedFolder(paths[0].path, refresh);

Loading…
Cancel
Save