+2004-11-07 Georg Baum <Georg.Baum@post.rwth-aachen.de>
+
+ * converter.C (move): don't lie in the error message
+ * converter.h (isReachable, move): document
+
2004-11-07 Lars Gullik Bjonnes <larsbj@gullik.net>
* buffer.C: remove unused using lyx::support::atoi
}
-// If from = /path/file.ext and to = /path2/file2.ext2 then this method
-// moves each /path/file*.ext file to /path2/file2*.ext2'
bool Converters::move(string const & fmt,
string const & from, string const & to, bool copy)
{
: mover.rename(from2, to2);
if (!moved && no_errors) {
Alert::error(_("Cannot convert file"),
- bformat(_("Could not move a temporary file from %1$s to %2$s."),
+ bformat(copy ?
+ _("Could not copy a temporary file from %1$s to %2$s.") :
+ _("Could not move a temporary file from %1$s to %2$s."),
from2, to2));
no_errors = false;
}
std::vector<Format const *> const
getReachable(std::string const & from, bool only_viewable,
bool clear_visited);
- ///
+ /// Does a conversion path from format \p from to format \p to exist?
bool isReachable(std::string const & from, std::string const & to);
///
Graph::EdgePath const getPath(std::string const & from, std::string const & to);
ConverterList converterlist_;
///
std::string latex_command_;
- ///
+ /// If \p from = /path/file.ext and \p to = /path2/file2.ext2 then
+ /// this method moves each /path/file*.ext file to /path2/file2*.ext2
bool move(std::string const & fmt,
std::string const & from, std::string const & to,
bool copy);