src/eric7/RemoteServerInterface/EricServerFileDialog.py

branch
eric7
changeset 10785
82d8a5606135
parent 10722
b74d46513011
child 10794
cd93fbb75019
--- a/src/eric7/RemoteServerInterface/EricServerFileDialog.py	Fri Jun 14 11:23:45 2024 +0200
+++ b/src/eric7/RemoteServerInterface/EricServerFileDialog.py	Fri Jun 14 14:01:18 2024 +0200
@@ -615,7 +615,7 @@
         newName, ok = QInputDialog.getText(
             self,
             title,
-            self.tr("<p>Enter the new name <b>{0}</b>:</p>").format(item.text(0)),
+            self.tr("<p>Enter the new name for <b>{0}</b>:</p>").format(item.text(0)),
             QLineEdit.EchoMode.Normal,
             item.text(0),
         )
@@ -657,16 +657,12 @@
         isDir = item.data(0, EricServerFileDialog.IsDirectoryRole)
         if isDir:
             title = self.tr("Delete Directory")
-            itemType = self.tr("directory")
+            question = self.tr("Shall the selected directory really be deleted?")
         else:
             title = self.tr("Delete File")
-            itemType = self.tr("file")
+            question = self.tr("Shall the selected file really be deleted?")
 
-        yes = EricMessageBox.yesNo(
-            self,
-            title,
-            self.tr("Shall the selected {0} really be deleted?").format(itemType),
-        )
+        yes = EricMessageBox.yesNo(self, title, question)
         if yes:
             ok, error = (
                 self.__fsInterface.rmdir(self.__getFullPath(item.text(0)))

eric ide

mercurial