show_popup(dialog, utf8(_("Sorry, destination directory can't contain non simple alphanumeric characters.")))
dest.grab_focus
elsif File.directory?(destdir) && Dir.entries(destdir).size > 2
- keepon = !show_popup(dialog, utf8(_("The destination directory already exists. Are you sure you want to continue?")), { :okcancel => true })
+ keepon = !show_popup(dialog, utf8(_("The destination directory already exists. All existing files and directories
+inside it will be permanently removed before creating the web-album!
+Are you sure you want to continue?")), { :okcancel => true })
dest.grab_focus
elsif File.exists?(destdir) && !File.directory?(destdir)
show_popup(dialog, utf8(_("There is already a file by the name of the destination directory. Please choose another one.")))
[ '--version', '-V', GetoptLong::NO_ARGUMENT, _("Print version and exit") ],
[ '--source', '-s', GetoptLong::REQUIRED_ARGUMENT, _("Directory which contains original images/videos as files or subdirs") ],
- [ '--destination', '-d', GetoptLong::REQUIRED_ARGUMENT, _("Directory which will contain the web-album") ],
+ [ '--destination', '-d', GetoptLong::REQUIRED_ARGUMENT, _("Directory which will contain the web-album; if it already exits, then all existing files and directories inside it will be removed!") ],
[ '--theme', '-t', GetoptLong::REQUIRED_ARGUMENT, _("Select HTML theme to use") ],
[ '--config', '-C', GetoptLong::REQUIRED_ARGUMENT, _("File containing config listing images and videos within directories with captions") ],
Directory which contains original images/videos as files or subdirs
.TP
\fB-d\fR \fIDIR\fR, \fB--destination\fR \fIDIR\fR
-Directory which will contain the web-album
+Directory which will contain the web-album; if it already exits, then all existing files and directories inside it will be removed!
.TP
\fB-t\fR \fITHEME\fR, \fB--theme\fR \fITHEME\fR
Select HTML theme to use