mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 14:37:59 +01:00
check for already existing folder at renaming
This commit is contained in:
parent
09231c516c
commit
9b8420e9d1
9 changed files with 13 additions and 0 deletions
|
@ -40,6 +40,11 @@ class RenameDirectoryDialog(val activity: SimpleActivity, val dir: File, val lis
|
|||
updatedFiles.add(dir.absolutePath)
|
||||
val newDir = File(dir.parent, newDirName)
|
||||
|
||||
if (newDir.exists()) {
|
||||
context.toast(R.string.rename_folder_exists)
|
||||
return@setOnClickListener
|
||||
}
|
||||
|
||||
if (context.needsStupidWritePermissions(dir.absolutePath)) {
|
||||
if (activity.isShowingPermDialog(dir))
|
||||
return@setOnClickListener
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<string name="rename_file_error">Konnte die Datei nicht umbenennen</string>
|
||||
<string name="rename_folder_error">Konnte den Ordner nicht umbenennen</string>
|
||||
<string name="rename_folder_empty">Ordnername darf nicht leer sein</string>
|
||||
<string name="rename_folder_exists">A folder with that name already exists</string>
|
||||
<string name="rename_folder_ok">Ordner erfolgreich umbenannt</string>
|
||||
<string name="renaming_folder">Benenne Ordner um</string>
|
||||
<string name="filename_cannot_be_empty">Dateiname darf nicht leer sein</string>
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<string name="rename_file_error">No se pudo renombrar el archivo</string>
|
||||
<string name="rename_folder_error">No se pudo renombrar la carpeta</string>
|
||||
<string name="rename_folder_empty">El nombre de carpeta no puede estar vacío</string>
|
||||
<string name="rename_folder_exists">A folder with that name already exists</string>
|
||||
<string name="rename_folder_ok">Carpeta renombrada correctamente</string>
|
||||
<string name="renaming_folder">Renombrando carpeta</string>
|
||||
<string name="filename_cannot_be_empty">El nombre de archivo no puede estar vacío</string>
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<string name="rename_file_error">Impossibile rinominare il file</string>
|
||||
<string name="rename_folder_error">Impossibile rinominare la cartella</string>
|
||||
<string name="rename_folder_empty">Il nome della cartella non deve essere vuoto</string>
|
||||
<string name="rename_folder_exists">A folder with that name already exists</string>
|
||||
<string name="rename_folder_ok">Cartella rinominata correttamente</string>
|
||||
<string name="renaming_folder">Rinominazione cartella</string>
|
||||
<string name="filename_cannot_be_empty">Il nome del file non deve essere vuoto</string>
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<string name="rename_file_error">ファイルの名前を変更できませんでした</string>
|
||||
<string name="rename_folder_error">フォルダーの名前を変更できませんでした</string>
|
||||
<string name="rename_folder_empty">フォルダー名は空にできません</string>
|
||||
<string name="rename_folder_exists">A folder with that name already exists</string>
|
||||
<string name="rename_folder_ok">フォルダーの名前を正常に変更しました</string>
|
||||
<string name="renaming_folder">フォルダーの名前を変更中</string>
|
||||
<string name="filename_cannot_be_empty">ファイル名は空にできません</string>
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<string name="rename_file_error">Não foi possível renomear o ficheiro</string>
|
||||
<string name="rename_folder_error">Não foi possível renomear a pasta</string>
|
||||
<string name="rename_folder_empty">O nome da pasta não pode estar vazio</string>
|
||||
<string name="rename_folder_exists">A folder with that name already exists</string>
|
||||
<string name="rename_folder_ok">A pasta foi renomeada com sucesso</string>
|
||||
<string name="renaming_folder">A renomear pasta</string>
|
||||
<string name="filename_cannot_be_empty">O nome do ficheiro não pode estar vazio</string>
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<string name="rename_file_error">Det gick inte att döpa om filen</string>
|
||||
<string name="rename_folder_error">Det gick inte att döpa om mappen</string>
|
||||
<string name="rename_folder_empty">Du måste ange ett mappnamn</string>
|
||||
<string name="rename_folder_exists">A folder with that name already exists</string>
|
||||
<string name="rename_folder_ok">Mappen döptes om</string>
|
||||
<string name="renaming_folder">Döper om mappen</string>
|
||||
<string name="filename_cannot_be_empty">Du måste ange ett filnamn</string>
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<string name="rename_file_error">文件不能重命名</string>
|
||||
<string name="rename_folder">重命名文件夹</string>
|
||||
<string name="rename_folder_empty">文件夹名不能为空</string>
|
||||
<string name="rename_folder_exists">A folder with that name already exists</string>
|
||||
<string name="rename_folder_error">文件夹不能重命名</string>
|
||||
<string name="rename_folder_ok">文件夹重命名成功</string>
|
||||
<string name="renaming_folder">重命名中..</string>
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<string name="rename_file_error">Could not rename the file</string>
|
||||
<string name="rename_folder_error">Could not rename the folder</string>
|
||||
<string name="rename_folder_empty">Folder name must not be empty</string>
|
||||
<string name="rename_folder_exists">A folder with that name already exists</string>
|
||||
<string name="rename_folder_ok">Folder renamed successfully</string>
|
||||
<string name="renaming_folder">Renaming folder</string>
|
||||
<string name="filename_cannot_be_empty">Filename cannot be empty</string>
|
||||
|
|
Loading…
Reference in a new issue