[SHELL32] Improve the displayed error on file copy / displacement + simplify code.

Also update the corresponding french translations, see CORE-16572.
And fix a regression introduced in 257e7307 that allowed again copying
or moving a directory into its sub-tree...

I also personally think that these checks must also be done within the
copy_files() / move_files() helpers instead?
This commit is contained in:
Hermès Bélusca-Maïto 2019-12-24 18:28:05 +01:00
parent 2828ea2e06
commit 16f64a9533
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
36 changed files with 202 additions and 143 deletions

View file

@ -773,12 +773,14 @@ BEGIN
IDS_OPENFILELOCATION "Open f&ile location"
IDS_DESKLINK "Desktop (Create shortcut)"
IDS_SENDTO_MENU "Se&nd To"
IDS_MOVEERRORTITLE "Error Moving File or Folder"
IDS_COPYERRORTITLE "Error Copying File or Folder"
IDS_MOVEERRORSAME "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAMEFOLDER "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAME "Cannot move '%s': The source and destination file names are the same."
IDS_COPYERRORSAME "Cannot copy '%s': The source and destination file names are the same."
IDS_MOVEERRORSUBF "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBF "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_MOVEERRORSUBFOLDER "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBFOLDER "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_CREATEFOLDER_DENIED "Unable to create the folder '%1'"
IDS_CREATEFOLDER_CAPTION "Unable to create folder"

View file

@ -772,12 +772,14 @@ BEGIN
IDS_OPENFILELOCATION "Open f&ile location"
IDS_DESKLINK "Desktop (Create shortcut)"
IDS_SENDTO_MENU "Se&nd To"
IDS_MOVEERRORTITLE "Error Moving File or Folder"
IDS_COPYERRORTITLE "Error Copying File or Folder"
IDS_MOVEERRORSAME "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAMEFOLDER "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAME "Cannot move '%s': The source and destination file names are the same."
IDS_COPYERRORSAME "Cannot copy '%s': The source and destination file names are the same."
IDS_MOVEERRORSUBF "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBF "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_MOVEERRORSUBFOLDER "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBFOLDER "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_CREATEFOLDER_DENIED "Unable to create the folder '%1'"
IDS_CREATEFOLDER_CAPTION "Unable to create folder"

View file

@ -778,12 +778,14 @@ BEGIN
IDS_OPENFILELOCATION "Open f&ile location"
IDS_DESKLINK "Desktop (Create shortcut)"
IDS_SENDTO_MENU "Se&nd To"
IDS_MOVEERRORTITLE "Error Moving File or Folder"
IDS_COPYERRORTITLE "Error Copying File or Folder"
IDS_MOVEERRORSAME "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAMEFOLDER "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAME "Cannot move '%s': The source and destination file names are the same."
IDS_COPYERRORSAME "Cannot copy '%s': The source and destination file names are the same."
IDS_MOVEERRORSUBF "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBF "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_MOVEERRORSUBFOLDER "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBFOLDER "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_CREATEFOLDER_DENIED "Složku '%1' nebylo možné vytvořit"
IDS_CREATEFOLDER_CAPTION "Složku nebylo možné vytvořit"

View file

@ -778,12 +778,14 @@ BEGIN
IDS_OPENFILELOCATION "Open f&ile location"
IDS_DESKLINK "Desktop (Create shortcut)"
IDS_SENDTO_MENU "Se&nd To"
IDS_MOVEERRORTITLE "Error Moving File or Folder"
IDS_COPYERRORTITLE "Error Copying File or Folder"
IDS_MOVEERRORSAME "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAMEFOLDER "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAME "Cannot move '%s': The source and destination file names are the same."
IDS_COPYERRORSAME "Cannot copy '%s': The source and destination file names are the same."
IDS_MOVEERRORSUBF "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBF "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_MOVEERRORSUBFOLDER "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBFOLDER "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_CREATEFOLDER_DENIED "Unable to create the folder '%1'"
IDS_CREATEFOLDER_CAPTION "Unable to create folder"

View file

@ -773,12 +773,14 @@ BEGIN
IDS_OPENFILELOCATION "Open f&ile location"
IDS_DESKLINK "Desktop (Create shortcut)"
IDS_SENDTO_MENU "Se&nd To"
IDS_MOVEERRORTITLE "Error Moving File or Folder"
IDS_COPYERRORTITLE "Error Copying File or Folder"
IDS_MOVEERRORSAME "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAMEFOLDER "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAME "Cannot move '%s': The source and destination file names are the same."
IDS_COPYERRORSAME "Cannot copy '%s': The source and destination file names are the same."
IDS_MOVEERRORSUBF "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBF "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_MOVEERRORSUBFOLDER "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBFOLDER "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_CREATEFOLDER_DENIED " Der Ordner kann nicht erstellt werden '%1'"
IDS_CREATEFOLDER_CAPTION " Der Ordner kann nicht erstellt werden."

View file

@ -772,12 +772,14 @@ BEGIN
IDS_OPENFILELOCATION "Open f&ile location"
IDS_DESKLINK "Desktop (Create shortcut)"
IDS_SENDTO_MENU "Se&nd To"
IDS_MOVEERRORTITLE "Error Moving File or Folder"
IDS_COPYERRORTITLE "Error Copying File or Folder"
IDS_MOVEERRORSAME "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAMEFOLDER "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAME "Cannot move '%s': The source and destination file names are the same."
IDS_COPYERRORSAME "Cannot copy '%s': The source and destination file names are the same."
IDS_MOVEERRORSUBF "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBF "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_MOVEERRORSUBFOLDER "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBFOLDER "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_CREATEFOLDER_DENIED "Unable to create the folder '%1'"
IDS_CREATEFOLDER_CAPTION "Unable to create folder"

View file

@ -772,12 +772,14 @@ BEGIN
IDS_OPENFILELOCATION "Open f&ile location"
IDS_DESKLINK "Desktop (Create shortcut)"
IDS_SENDTO_MENU "Se&nd To"
IDS_MOVEERRORTITLE "Error Moving File or Folder"
IDS_COPYERRORTITLE "Error Copying File or Folder"
IDS_MOVEERRORSAME "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAMEFOLDER "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAME "Cannot move '%s': The source and destination file names are the same."
IDS_COPYERRORSAME "Cannot copy '%s': The source and destination file names are the same."
IDS_MOVEERRORSUBF "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBF "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_MOVEERRORSUBFOLDER "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBFOLDER "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_CREATEFOLDER_DENIED "Unable to create the folder '%1'"
IDS_CREATEFOLDER_CAPTION "Unable to create folder"

View file

@ -772,12 +772,14 @@ BEGIN
IDS_OPENFILELOCATION "Open f&ile location"
IDS_DESKLINK "Desktop (Create shortcut)"
IDS_SENDTO_MENU "Se&nd To"
IDS_MOVEERRORTITLE "Error Moving File or Folder"
IDS_COPYERRORTITLE "Error Copying File or Folder"
IDS_MOVEERRORSAME "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAMEFOLDER "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAME "Cannot move '%s': The source and destination file names are the same."
IDS_COPYERRORSAME "Cannot copy '%s': The source and destination file names are the same."
IDS_MOVEERRORSUBF "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBF "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_MOVEERRORSUBFOLDER "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBFOLDER "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_CREATEFOLDER_DENIED "Unable to create the folder '%1'"
IDS_CREATEFOLDER_CAPTION "Unable to create folder"

View file

@ -780,12 +780,14 @@ BEGIN
IDS_OPENFILELOCATION "Open f&ile location"
IDS_DESKLINK "Desktop (Create shortcut)"
IDS_SENDTO_MENU "Se&nd To"
IDS_MOVEERRORTITLE "Error Moving File or Folder"
IDS_COPYERRORTITLE "Error Copying File or Folder"
IDS_MOVEERRORSAME "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAMEFOLDER "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAME "Cannot move '%s': The source and destination file names are the same."
IDS_COPYERRORSAME "Cannot copy '%s': The source and destination file names are the same."
IDS_MOVEERRORSUBF "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBF "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_MOVEERRORSUBFOLDER "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBFOLDER "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_CREATEFOLDER_DENIED "No se pudo crear la carpeta '%1'"
IDS_CREATEFOLDER_CAPTION "No se pudo crear la carpeta"

View file

@ -779,12 +779,14 @@ BEGIN
IDS_OPENFILELOCATION "Open f&ile location"
IDS_DESKLINK "Desktop (Create shortcut)"
IDS_SENDTO_MENU "Se&nd To"
IDS_MOVEERRORTITLE "Error Moving File or Folder"
IDS_COPYERRORTITLE "Error Copying File or Folder"
IDS_MOVEERRORSAME "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAMEFOLDER "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAME "Cannot move '%s': The source and destination file names are the same."
IDS_COPYERRORSAME "Cannot copy '%s': The source and destination file names are the same."
IDS_MOVEERRORSUBF "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBF "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_MOVEERRORSUBFOLDER "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBFOLDER "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_CREATEFOLDER_DENIED "Ei saa luua kausta '%1'"
IDS_CREATEFOLDER_CAPTION "Ei saa kausta luua"

View file

@ -772,12 +772,14 @@ BEGIN
IDS_OPENFILELOCATION "Open f&ile location"
IDS_DESKLINK "Desktop (Create shortcut)"
IDS_SENDTO_MENU "Se&nd To"
IDS_MOVEERRORTITLE "Error Moving File or Folder"
IDS_COPYERRORTITLE "Error Copying File or Folder"
IDS_MOVEERRORSAME "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAMEFOLDER "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAME "Cannot move '%s': The source and destination file names are the same."
IDS_COPYERRORSAME "Cannot copy '%s': The source and destination file names are the same."
IDS_MOVEERRORSUBF "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBF "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_MOVEERRORSUBFOLDER "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBFOLDER "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_CREATEFOLDER_DENIED "Unable to create the folder '%1'"
IDS_CREATEFOLDER_CAPTION "Unable to create folder"

View file

@ -769,15 +769,17 @@ BEGIN
IDS_PASTE "Insérer"
IDS_EJECT "Éjecter"
IDS_DISCONNECT "Déconnecter"
IDS_OPENFILELOCATION "Open f&ile location"
IDS_DESKLINK "Desktop (Create shortcut)"
IDS_SENDTO_MENU "Se&nd To"
IDS_MOVEERRORTITLE "Error Moving File or Folder"
IDS_COPYERRORTITLE "Error Copying File or Folder"
IDS_MOVEERRORSAME "Cannot move '%s': The destination folder is the same as the source folder."
IDS_COPYERRORSAME "Cannot copy '%s': The source and destination file names are the same."
IDS_MOVEERRORSUBF "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBF "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_OPENFILELOCATION "Ouvrir l'empla&cement du fichier"
IDS_DESKLINK "Bureau (Créer un raccourci)"
IDS_SENDTO_MENU "Envo&yer vers"
IDS_MOVEERRORTITLE "Erreur lors du déplacement du fichier ou du dossier"
IDS_COPYERRORTITLE "Erreur lors de la copie du fichier ou du dossier"
IDS_MOVEERRORSAMEFOLDER "Impossible de déplacer '%s' : Le dossier de destination est identique au dossier source."
IDS_MOVEERRORSAME "Impossible de déplacer '%s' : Les noms des fichiers source et destination sont identiques."
IDS_COPYERRORSAME "Impossible de copier '%s' : Les noms des fichiers source et destination sont identiques."
IDS_MOVEERRORSUBFOLDER "Impossible de déplacer '%s' : Le dossier de destination est un sous-dossier du dossier source."
IDS_COPYERRORSUBFOLDER "Impossible de copier '%s' : Le dossier de destination est un sous-dossier du dossier source."
IDS_CREATEFOLDER_DENIED "Impossible de créer le dossier '%1'"
IDS_CREATEFOLDER_CAPTION "Impossible de créer un dossier"

View file

@ -774,12 +774,14 @@ BEGIN
IDS_OPENFILELOCATION "&פתח מיקום קובץ"
IDS_DESKLINK "שולחן העבודה (צור קיצור דרך)"
IDS_SENDTO_MENU "&שלח אל"
IDS_MOVEERRORTITLE "Error Moving File or Folder"
IDS_COPYERRORTITLE "Error Copying File or Folder"
IDS_MOVEERRORSAME "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAMEFOLDER "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAME "Cannot move '%s': The source and destination file names are the same."
IDS_COPYERRORSAME "Cannot copy '%s': The source and destination file names are the same."
IDS_MOVEERRORSUBF "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBF "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_MOVEERRORSUBFOLDER "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBFOLDER "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_CREATEFOLDER_DENIED "Unable to create the folder '%1'"
IDS_CREATEFOLDER_CAPTION "Unable to create folder"

View file

@ -772,12 +772,14 @@ BEGIN
IDS_OPENFILELOCATION "Open f&ile location"
IDS_DESKLINK "Desktop (Create shortcut)"
IDS_SENDTO_MENU "Se&nd To"
IDS_MOVEERRORTITLE "Error Moving File or Folder"
IDS_COPYERRORTITLE "Error Copying File or Folder"
IDS_MOVEERRORSAME "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAMEFOLDER "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAME "Cannot move '%s': The source and destination file names are the same."
IDS_COPYERRORSAME "Cannot copy '%s': The source and destination file names are the same."
IDS_MOVEERRORSUBF "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBF "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_MOVEERRORSUBFOLDER "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBFOLDER "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_CREATEFOLDER_DENIED "फ़ोल्डर '%1' बनाने में असमर्थ"
IDS_CREATEFOLDER_CAPTION "फ़ोल्डर बनाने में असमर्थ"

View file

@ -772,12 +772,14 @@ BEGIN
IDS_OPENFILELOCATION "Open f&ile location"
IDS_DESKLINK "Desktop (Create shortcut)"
IDS_SENDTO_MENU "Se&nd To"
IDS_MOVEERRORTITLE "Error Moving File or Folder"
IDS_COPYERRORTITLE "Error Copying File or Folder"
IDS_MOVEERRORSAME "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAMEFOLDER "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAME "Cannot move '%s': The source and destination file names are the same."
IDS_COPYERRORSAME "Cannot copy '%s': The source and destination file names are the same."
IDS_MOVEERRORSUBF "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBF "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_MOVEERRORSUBFOLDER "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBFOLDER "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_CREATEFOLDER_DENIED "Unable to create the folder '%1'"
IDS_CREATEFOLDER_CAPTION "Unable to create folder"

View file

@ -772,12 +772,14 @@ BEGIN
IDS_OPENFILELOCATION "Open f&ile location"
IDS_DESKLINK "Desktop (Create shortcut)"
IDS_SENDTO_MENU "Se&nd To"
IDS_MOVEERRORTITLE "Error Moving File or Folder"
IDS_COPYERRORTITLE "Error Copying File or Folder"
IDS_MOVEERRORSAME "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAMEFOLDER "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAME "Cannot move '%s': The source and destination file names are the same."
IDS_COPYERRORSAME "Cannot copy '%s': The source and destination file names are the same."
IDS_MOVEERRORSUBF "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBF "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_MOVEERRORSUBFOLDER "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBFOLDER "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_CREATEFOLDER_DENIED "Tidak bisa membuat folder folder '%1'"
IDS_CREATEFOLDER_CAPTION "Tidak bisa membuat folder"

View file

@ -772,12 +772,14 @@ BEGIN
IDS_OPENFILELOCATION "Open f&ile location"
IDS_DESKLINK "Desktop (Create shortcut)"
IDS_SENDTO_MENU "Se&nd To"
IDS_MOVEERRORTITLE "Error Moving File or Folder"
IDS_COPYERRORTITLE "Error Copying File or Folder"
IDS_MOVEERRORSAME "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAMEFOLDER "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAME "Cannot move '%s': The source and destination file names are the same."
IDS_COPYERRORSAME "Cannot copy '%s': The source and destination file names are the same."
IDS_MOVEERRORSUBF "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBF "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_MOVEERRORSUBFOLDER "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBFOLDER "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_CREATEFOLDER_DENIED "Unable to create the folder '%1'"
IDS_CREATEFOLDER_CAPTION "Unable to create folder"

View file

@ -769,12 +769,14 @@ BEGIN
IDS_OPENFILELOCATION "ファイルの場所を開く(&I)"
IDS_DESKLINK "デスクトップ (ショートカットの作成)"
IDS_SENDTO_MENU "送る(&N)"
IDS_MOVEERRORTITLE "ファイルまたはフォルダの移動のエラー"
IDS_COPYERRORTITLE "ファイルまたはフォルダのコピーのエラー"
IDS_MOVEERRORSAME "移動できません '%s': 移動先のフォルダは移動元のフォルダと同じです。"
IDS_MOVEERRORSAMEFOLDER "移動できません '%s': 移動先のフォルダは移動元のフォルダと同じです。"
IDS_MOVEERRORSAME "移動できません '%s': コピー元とコピー先のファイル名が同じです。"
IDS_COPYERRORSAME "コピーできません '%s': コピー元とコピー先のファイル名が同じです。"
IDS_MOVEERRORSUBF "移動できません '%s': 移動先のフォルダは移動元のフォルダのサブフォルダです。"
IDS_COPYERRORSUBF "コピーできません '%s': コピー先のフォルダはコピー元のフォルダのサブフォルダです。"
IDS_MOVEERRORSUBFOLDER "移動できません '%s': 移動先のフォルダは移動元のフォルダのサブフォルダです。"
IDS_COPYERRORSUBFOLDER "コピーできません '%s': コピー先のフォルダはコピー元のフォルダのサブフォルダです。"
IDS_CREATEFOLDER_DENIED "フォルダ '%1' を作成できません"
IDS_CREATEFOLDER_CAPTION "フォルダを作成できません"

View file

@ -772,12 +772,14 @@ BEGIN
IDS_OPENFILELOCATION "Open f&ile location"
IDS_DESKLINK "Desktop (Create shortcut)"
IDS_SENDTO_MENU "Se&nd To"
IDS_MOVEERRORTITLE "Error Moving File or Folder"
IDS_COPYERRORTITLE "Error Copying File or Folder"
IDS_MOVEERRORSAME "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAMEFOLDER "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAME "Cannot move '%s': The source and destination file names are the same."
IDS_COPYERRORSAME "Cannot copy '%s': The source and destination file names are the same."
IDS_MOVEERRORSUBF "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBF "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_MOVEERRORSUBFOLDER "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBFOLDER "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_CREATEFOLDER_DENIED "Unable to create the folder '%1'"
IDS_CREATEFOLDER_CAPTION "Unable to create folder"

View file

@ -772,12 +772,14 @@ BEGIN
IDS_OPENFILELOCATION "Open f&ile location"
IDS_DESKLINK "Desktop (Create shortcut)"
IDS_SENDTO_MENU "Se&nd To"
IDS_MOVEERRORTITLE "Error Moving File or Folder"
IDS_COPYERRORTITLE "Error Copying File or Folder"
IDS_MOVEERRORSAME "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAMEFOLDER "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAME "Cannot move '%s': The source and destination file names are the same."
IDS_COPYERRORSAME "Cannot copy '%s': The source and destination file names are the same."
IDS_MOVEERRORSUBF "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBF "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_MOVEERRORSUBFOLDER "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBFOLDER "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_CREATEFOLDER_DENIED "Unable to create the folder '%1'"
IDS_CREATEFOLDER_CAPTION "Unable to create folder"

View file

@ -772,12 +772,14 @@ BEGIN
IDS_OPENFILELOCATION "Open f&ile location"
IDS_DESKLINK "Desktop (Create shortcut)"
IDS_SENDTO_MENU "Se&nd To"
IDS_MOVEERRORTITLE "Error Moving File or Folder"
IDS_COPYERRORTITLE "Error Copying File or Folder"
IDS_MOVEERRORSAME "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAMEFOLDER "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAME "Cannot move '%s': The source and destination file names are the same."
IDS_COPYERRORSAME "Cannot copy '%s': The source and destination file names are the same."
IDS_MOVEERRORSUBF "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBF "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_MOVEERRORSUBFOLDER "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBFOLDER "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_CREATEFOLDER_DENIED "Unable to create the folder '%1'"
IDS_CREATEFOLDER_CAPTION "Unable to create folder"

View file

@ -777,12 +777,14 @@ BEGIN
IDS_OPENFILELOCATION "Open f&ile location"
IDS_DESKLINK "Desktop (Create shortcut)"
IDS_SENDTO_MENU "Se&nd To"
IDS_MOVEERRORTITLE "Error Moving File or Folder"
IDS_COPYERRORTITLE "Error Copying File or Folder"
IDS_MOVEERRORSAME "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAMEFOLDER "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAME "Cannot move '%s': The source and destination file names are the same."
IDS_COPYERRORSAME "Cannot copy '%s': The source and destination file names are the same."
IDS_MOVEERRORSUBF "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBF "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_MOVEERRORSUBFOLDER "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBFOLDER "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_CREATEFOLDER_DENIED "Nie można utworzyć folderu '%1'"
IDS_CREATEFOLDER_CAPTION "Nie można utworzyć folderu"

View file

@ -772,12 +772,14 @@ BEGIN
IDS_OPENFILELOCATION "Open f&ile location"
IDS_DESKLINK "Desktop (Create shortcut)"
IDS_SENDTO_MENU "Se&nd To"
IDS_MOVEERRORTITLE "Error Moving File or Folder"
IDS_COPYERRORTITLE "Error Copying File or Folder"
IDS_MOVEERRORSAME "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAMEFOLDER "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAME "Cannot move '%s': The source and destination file names are the same."
IDS_COPYERRORSAME "Cannot copy '%s': The source and destination file names are the same."
IDS_MOVEERRORSUBF "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBF "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_MOVEERRORSUBFOLDER "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBFOLDER "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_CREATEFOLDER_DENIED "Unable to create the folder '%1'"
IDS_CREATEFOLDER_CAPTION "Unable to create folder"

View file

@ -772,12 +772,14 @@ BEGIN
IDS_OPENFILELOCATION "Abrir localização do f&icheiro"
IDS_DESKLINK "Área de trabalho (Criar atalho)"
IDS_SENDTO_MENU "&Enviar para"
IDS_MOVEERRORTITLE "Erro ao mover pasta ou ficheiro"
IDS_COPYERRORTITLE "Erro ao copiar pasta ou ficheiro"
IDS_MOVEERRORSAME "Impossivel mover '%s': A paste de destino é a mesma da origem."
IDS_MOVEERRORSAMEFOLDER "Impossivel mover '%s': A paste de destino é a mesma da origem."
IDS_MOVEERRORSAME "Impossivel mover '%s': Os nomes dos arquivos de origem e de destino são os mesmos."
IDS_COPYERRORSAME "Impossivel copiar '%s': Os nomes dos arquivos de origem e de destino são os mesmos."
IDS_MOVEERRORSUBF "Impossivel mover '%s': A pasta de destino é uma subpasta da pasta de origem."
IDS_COPYERRORSUBF "Impossivel copiar '%s': A pasta de destino é uma subpasta da pasta de origem."
IDS_MOVEERRORSUBFOLDER "Impossivel mover '%s': A pasta de destino é uma subpasta da pasta de origem."
IDS_COPYERRORSUBFOLDER "Impossivel copiar '%s': A pasta de destino é uma subpasta da pasta de origem."
IDS_CREATEFOLDER_DENIED "Impossivel criar pasta '%1'"
IDS_CREATEFOLDER_CAPTION "Impossivel criar pasta"

View file

@ -774,12 +774,14 @@ BEGIN
IDS_OPENFILELOCATION "Open f&ile location"
IDS_DESKLINK "Desktop (Create shortcut)"
IDS_SENDTO_MENU "Se&nd To"
IDS_MOVEERRORTITLE "Error Moving File or Folder"
IDS_COPYERRORTITLE "Error Copying File or Folder"
IDS_MOVEERRORSAME "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAMEFOLDER "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAME "Cannot move '%s': The source and destination file names are the same."
IDS_COPYERRORSAME "Cannot copy '%s': The source and destination file names are the same."
IDS_MOVEERRORSUBF "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBF "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_MOVEERRORSUBFOLDER "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBFOLDER "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_CREATEFOLDER_DENIED "Nu poate fi creat un dosar cu numele „%1”"
IDS_CREATEFOLDER_CAPTION "Nu poate fi creat dosar"

View file

@ -779,12 +779,14 @@ BEGIN
IDS_OPENFILELOCATION "Open f&ile location"
IDS_DESKLINK "Desktop (Create shortcut)"
IDS_SENDTO_MENU "Se&nd To"
IDS_MOVEERRORTITLE "Error Moving File or Folder"
IDS_COPYERRORTITLE "Error Copying File or Folder"
IDS_MOVEERRORSAME "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAMEFOLDER "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAME "Cannot move '%s': The source and destination file names are the same."
IDS_COPYERRORSAME "Cannot copy '%s': The source and destination file names are the same."
IDS_MOVEERRORSUBF "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBF "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_MOVEERRORSUBFOLDER "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBFOLDER "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_CREATEFOLDER_DENIED "Невозможно создать папку '%1'"
IDS_CREATEFOLDER_CAPTION "Невозможно создать папку"

View file

@ -772,12 +772,14 @@ BEGIN
IDS_OPENFILELOCATION "Open f&ile location"
IDS_DESKLINK "Desktop (Create shortcut)"
IDS_SENDTO_MENU "Se&nd To"
IDS_MOVEERRORTITLE "Error Moving File or Folder"
IDS_COPYERRORTITLE "Error Copying File or Folder"
IDS_MOVEERRORSAME "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAMEFOLDER "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAME "Cannot move '%s': The source and destination file names are the same."
IDS_COPYERRORSAME "Cannot copy '%s': The source and destination file names are the same."
IDS_MOVEERRORSUBF "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBF "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_MOVEERRORSUBFOLDER "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBFOLDER "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_CREATEFOLDER_DENIED "Unable to create the folder '%1'"
IDS_CREATEFOLDER_CAPTION "Unable to create folder"

View file

@ -772,12 +772,14 @@ BEGIN
IDS_OPENFILELOCATION "Open f&ile location"
IDS_DESKLINK "Desktop (Create shortcut)"
IDS_SENDTO_MENU "Se&nd To"
IDS_MOVEERRORTITLE "Error Moving File or Folder"
IDS_COPYERRORTITLE "Error Copying File or Folder"
IDS_MOVEERRORSAME "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAMEFOLDER "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAME "Cannot move '%s': The source and destination file names are the same."
IDS_COPYERRORSAME "Cannot copy '%s': The source and destination file names are the same."
IDS_MOVEERRORSUBF "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBF "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_MOVEERRORSUBFOLDER "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBFOLDER "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_CREATEFOLDER_DENIED "Unable to create the folder '%1'"
IDS_CREATEFOLDER_CAPTION "Unable to create folder"

View file

@ -776,12 +776,14 @@ BEGIN
IDS_OPENFILELOCATION "Open f&ile location"
IDS_DESKLINK "Desktop (Create shortcut)"
IDS_SENDTO_MENU "Se&nd To"
IDS_MOVEERRORTITLE "Error Moving File or Folder"
IDS_COPYERRORTITLE "Error Copying File or Folder"
IDS_MOVEERRORSAME "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAMEFOLDER "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAME "Cannot move '%s': The source and destination file names are the same."
IDS_COPYERRORSAME "Cannot copy '%s': The source and destination file names are the same."
IDS_MOVEERRORSUBF "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBF "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_MOVEERRORSUBFOLDER "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBFOLDER "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_CREATEFOLDER_DENIED "Unable to create the folder '%1'"
IDS_CREATEFOLDER_CAPTION "Unable to create folder"

View file

@ -772,12 +772,14 @@ BEGIN
IDS_OPENFILELOCATION "Open f&ile location"
IDS_DESKLINK "Desktop (Create shortcut)"
IDS_SENDTO_MENU "Se&nd To"
IDS_MOVEERRORTITLE "Error Moving File or Folder"
IDS_COPYERRORTITLE "Error Copying File or Folder"
IDS_MOVEERRORSAME "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAMEFOLDER "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAME "Cannot move '%s': The source and destination file names are the same."
IDS_COPYERRORSAME "Cannot copy '%s': The source and destination file names are the same."
IDS_MOVEERRORSUBF "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBF "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_MOVEERRORSUBFOLDER "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBFOLDER "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_CREATEFOLDER_DENIED "Kunde inte skapa mappen '%1'"
IDS_CREATEFOLDER_CAPTION "Kunde inte skapa mapp"

View file

@ -774,12 +774,14 @@ BEGIN
IDS_OPENFILELOCATION "Open f&ile location"
IDS_DESKLINK "Desktop (Create shortcut)"
IDS_SENDTO_MENU "Se&nd To"
IDS_MOVEERRORTITLE "Error Moving File or Folder"
IDS_COPYERRORTITLE "Error Copying File or Folder"
IDS_MOVEERRORSAME "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAMEFOLDER "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAME "Cannot move '%s': The source and destination file names are the same."
IDS_COPYERRORSAME "Cannot copy '%s': The source and destination file names are the same."
IDS_MOVEERRORSUBF "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBF "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_MOVEERRORSUBFOLDER "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBFOLDER "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_CREATEFOLDER_DENIED """%1"" dizini oluşturulamıyor."
IDS_CREATEFOLDER_CAPTION "Dizin Oluşturulamıyor"

View file

@ -772,12 +772,14 @@ BEGIN
IDS_OPENFILELOCATION "Open f&ile location"
IDS_DESKLINK "Desktop (Create shortcut)"
IDS_SENDTO_MENU "Se&nd To"
IDS_MOVEERRORTITLE "Error Moving File or Folder"
IDS_COPYERRORTITLE "Error Copying File or Folder"
IDS_MOVEERRORSAME "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAMEFOLDER "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAME "Cannot move '%s': The source and destination file names are the same."
IDS_COPYERRORSAME "Cannot copy '%s': The source and destination file names are the same."
IDS_MOVEERRORSUBF "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBF "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_MOVEERRORSUBFOLDER "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBFOLDER "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_CREATEFOLDER_DENIED "Не вдалося створити папку '%1'"
IDS_CREATEFOLDER_CAPTION "Не вдалося створити папку"

View file

@ -780,12 +780,14 @@ BEGIN
IDS_OPENFILELOCATION "Open f&ile location"
IDS_DESKLINK "Desktop (Create shortcut)"
IDS_SENDTO_MENU "Se&nd To"
IDS_MOVEERRORTITLE "Error Moving File or Folder"
IDS_COPYERRORTITLE "Error Copying File or Folder"
IDS_MOVEERRORSAME "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAMEFOLDER "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAME "Cannot move '%s': The source and destination file names are the same."
IDS_COPYERRORSAME "Cannot copy '%s': The source and destination file names are the same."
IDS_MOVEERRORSUBF "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBF "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_MOVEERRORSUBFOLDER "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBFOLDER "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_CREATEFOLDER_DENIED "无法创建文件夹 '%1'"
IDS_CREATEFOLDER_CAPTION "无法创建文件夹"

View file

@ -781,12 +781,14 @@ BEGIN
IDS_OPENFILELOCATION "Open f&ile location"
IDS_DESKLINK "Desktop (Create shortcut)"
IDS_SENDTO_MENU "Se&nd To"
IDS_MOVEERRORTITLE "Error Moving File or Folder"
IDS_COPYERRORTITLE "Error Copying File or Folder"
IDS_MOVEERRORSAME "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAMEFOLDER "Cannot move '%s': The destination folder is the same as the source folder."
IDS_MOVEERRORSAME "Cannot move '%s': The source and destination file names are the same."
IDS_COPYERRORSAME "Cannot copy '%s': The source and destination file names are the same."
IDS_MOVEERRORSUBF "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBF "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_MOVEERRORSUBFOLDER "Cannot move '%s': The destination folder is a subfolder of the source folder."
IDS_COPYERRORSUBFOLDER "Cannot copy '%s': The destination folder is a subfolder of the source folder."
IDS_CREATEFOLDER_DENIED "無法建立資料夾 '%1'"
IDS_CREATEFOLDER_CAPTION "無法建立資料夾"

View file

@ -1812,22 +1812,12 @@ static void check_flags(FILEOP_FLAGS fFlags)
#ifdef __REACTOS__
/* Error codes could be pre-Win32 */
#define DE_SAMEFILE 0x71
#define DE_MANYSRC1DEST 0x72
#define DE_DIFFDIR 0x73
#define DE_OPCANCELLED 0x75
#define DE_DESTSUBTREE 0x76
#define DE_INVALIDFILES 0x7C
#define DE_DESTSAMETREE 0x7D
#define DE_FLDDESTISFILE 0x7E
#define DE_FILEDESTISFLD 0x80
static DWORD
validate_operation(LPSHFILEOPSTRUCTW lpFileOp, FILE_LIST *flFrom, FILE_LIST *flTo)
{
DWORD i, k, dwNumDest;
WCHAR szFrom[MAX_PATH], szTo[MAX_PATH], szText[MAX_PATH];
WCHAR szFrom[MAX_PATH], szTo[MAX_PATH];
CStringW strTitle, strText;
const FILE_ENTRY *feFrom;
const FILE_ENTRY *feTo;
UINT wFunc = lpFileOp->wFunc;
@ -1845,7 +1835,6 @@ validate_operation(LPSHFILEOPSTRUCTW lpFileOp, FILE_LIST *flFrom, FILE_LIST *flT
{
feFrom = &flFrom->feFiles[i];
StringCbCopyW(szFrom, sizeof(szFrom), feFrom->szFullPath);
StringCbCopyW(szTo, sizeof(szTo), feTo->szFullPath);
if (IsAttribDir(feTo->attributes))
{
@ -1860,18 +1849,20 @@ validate_operation(LPSHFILEOPSTRUCTW lpFileOp, FILE_LIST *flFrom, FILE_LIST *flT
{
if (wFunc == FO_MOVE)
{
CStringW strTitle(MAKEINTRESOURCEW(IDS_MOVEERRORTITLE));
CStringW strText(MAKEINTRESOURCEW(IDS_MOVEERRORSAME));
StringCchPrintfW(szText, sizeof(szText), strText, feFrom->szFilename);
MessageBoxW(hwnd, szText, strTitle, MB_ICONERROR);
strTitle.LoadStringW(IDS_MOVEERRORTITLE);
if (IsAttribDir(feFrom->attributes))
strText.Format(IDS_MOVEERRORSAMEFOLDER, feFrom->szFilename);
else
strText.Format(IDS_MOVEERRORSAME, feFrom->szFilename);
}
else
{
CStringW strTitle(MAKEINTRESOURCEW(IDS_COPYERRORTITLE));
CStringW strText(MAKEINTRESOURCEW(IDS_COPYERRORSAME));
StringCchPrintfW(szText, sizeof(szText), strText, feFrom->szFilename);
MessageBoxW(hwnd, szText, strTitle, MB_ICONERROR);
strTitle.LoadStringW(IDS_COPYERRORTITLE);
strText.Format(IDS_COPYERRORSAME, feFrom->szFilename);
return ERROR_SUCCESS;
}
MessageBoxW(hwnd, strText, strTitle, MB_ICONERROR);
return DE_SAMEFILE;
}
return DE_OPCANCELLED;
}
@ -1894,20 +1885,18 @@ validate_operation(LPSHFILEOPSTRUCTW lpFileOp, FILE_LIST *flFrom, FILE_LIST *flT
{
if (wFunc == FO_MOVE)
{
CStringW strTitle(MAKEINTRESOURCEW(IDS_MOVEERRORTITLE));
CStringW strText(MAKEINTRESOURCEW(IDS_MOVEERRORSUBF));
StringCchPrintfW(szText, sizeof(szText), strText, feFrom->szFilename);
MessageBoxW(hwnd, szText, strTitle, MB_ICONERROR);
strTitle.LoadStringW(IDS_MOVEERRORTITLE);
strText.Format(IDS_MOVEERRORSUBFOLDER, feFrom->szFilename);
}
else
{
CStringW strTitle(MAKEINTRESOURCEW(IDS_COPYERRORTITLE));
CStringW strText(MAKEINTRESOURCEW(IDS_COPYERRORSUBF));
StringCchPrintfW(szText, sizeof(szText), strText, feFrom->szFilename);
MessageBoxW(hwnd, szText, strTitle, MB_ICONERROR);
strTitle.LoadStringW(IDS_COPYERRORTITLE);
strText.Format(IDS_COPYERRORSUBFOLDER, feFrom->szFilename);
}
MessageBoxW(hwnd, strText, strTitle, MB_ICONERROR);
return DE_DESTSUBTREE;
}
return ERROR_SUCCESS;
return DE_OPCANCELLED;
}
}
}

View file

@ -217,7 +217,7 @@
#define IDS_DESCRIPTION 331
#define IDS_COPY_OF 332
/* Strings for file operations*/
/* Strings for file operations */
#define IDS_FILEOOP_COPYING 333
#define IDS_FILEOOP_MOVING 334
#define IDS_FILEOOP_DELETING 335
@ -231,12 +231,14 @@
#define IDS_OPENFILELOCATION 341
#define IDS_DESKLINK 342
#define IDS_SENDTO_MENU 343
#define IDS_MOVEERRORTITLE 344
#define IDS_COPYERRORTITLE 345
#define IDS_MOVEERRORSAME 346
#define IDS_COPYERRORSAME 347
#define IDS_MOVEERRORSUBF 348
#define IDS_COPYERRORSUBF 349
#define IDS_MOVEERRORSAMEFOLDER 346
#define IDS_MOVEERRORSAME 347
#define IDS_COPYERRORSAME 348
#define IDS_MOVEERRORSUBFOLDER 349
#define IDS_COPYERRORSUBFOLDER 350
#define IDS_MENU_EMPTY 34561