#include <boost/weak_ptr.hpp>
#include <boost/bind.hpp>
#include <boost/signals/trackable.hpp>
+#include "BoostFormat.h"
#include <algorithm> // For the std::max
Systemcall one;
one.startscript(Systemcall::Wait, command);
if (!IsFileReadable(ChangeExtension(outfile_base, to)))
+#if USE_BOOST_FORMAT
Alert::alert(_("Cannot convert Image (not existing file?)"),
- _("No information for converting from ")
- + from + _(" to ") + to);
+ boost::io::str(boost::format(_("No information for converting from %1$s to %2$s"))
+ % from % to));
+#else
+ Alert::alert(_("Cannot convert Image (not existing file?)"),
+ _("No information for converting from ") + from + " to " + to);
+#endif
}
return RemoveExtension(temp_file);
// 1. Convert file to ascii using gifscii
// 2. Read ascii output file and add it to the output stream.
// at least we send the filename
- os << '<' << _("Graphic file:") << params().filename << ">\n";
+#if USE_BOOST_FORMAT
+ os << '<'
+ << boost::format(_("Graphic file: %1$s")) % params().filename
+ << ">\n";
+#else
+ os << '<'
+ << _("Graphic file: ") << params().filename
+ << ">\n";
+#endif
return 0;
}