Fix Grammar
@see https://www.filebot.net/forums/viewtopic.php?f=6&p=25866#p25866
This commit is contained in:
parent
899a4f836e
commit
e41540341c
|
@ -142,6 +142,27 @@ public enum StandardRenameAction implements RenameAction {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getDisplayVerb() {
|
||||||
|
switch (this) {
|
||||||
|
case MOVE:
|
||||||
|
return "Moving";
|
||||||
|
case COPY:
|
||||||
|
return "Copying";
|
||||||
|
case KEEPLINK:
|
||||||
|
return "Moving and symlinking";
|
||||||
|
case SYMLINK:
|
||||||
|
return "Symlinking";
|
||||||
|
case HARDLINK:
|
||||||
|
return "Hardlinking";
|
||||||
|
case DUPLICATE:
|
||||||
|
return "Duplicating";
|
||||||
|
case REFLINK:
|
||||||
|
return "Reflinking";
|
||||||
|
default:
|
||||||
|
return "Testing";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static StandardRenameAction forName(String action) {
|
public static StandardRenameAction forName(String action) {
|
||||||
for (StandardRenameAction it : values()) {
|
for (StandardRenameAction it : values()) {
|
||||||
if (it.name().equalsIgnoreCase(action))
|
if (it.name().equalsIgnoreCase(action))
|
||||||
|
|
|
@ -87,7 +87,7 @@ class RenameAction extends AbstractAction {
|
||||||
} else {
|
} else {
|
||||||
// call and wait
|
// call and wait
|
||||||
StandardRenameWorker worker = new StandardRenameWorker(renameMap, renameLog, action);
|
StandardRenameWorker worker = new StandardRenameWorker(renameMap, renameLog, action);
|
||||||
String message = String.format("%sing %d %s. This may take a while.", action.getDisplayName(), renameMap.size(), renameMap.size() == 1 ? "file" : "files");
|
String message = String.format("%s %d %s. This may take a while.", action.getDisplayVerb(), renameMap.size(), renameMap.size() == 1 ? "file" : "files");
|
||||||
ProgressMonitor.runTask(action.getDisplayName(), message, worker).get();
|
ProgressMonitor.runTask(action.getDisplayName(), message, worker).get();
|
||||||
}
|
}
|
||||||
} catch (CancellationException e) {
|
} catch (CancellationException e) {
|
||||||
|
|
Loading…
Reference in New Issue