X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fuploader.cc;h=fe15c5d8376e67b89cec9db8ccb99faaae32a81b;hb=267e21bfb78593bcb87eb24ce01b88d0859566f7;hp=b6b23ed8e5794445594714cf5e055e418ad3d8d1;hpb=b00389305af83dfd1e3b41ab3b108cb591f18c5d;p=dcpomatic.git diff --git a/src/lib/uploader.cc b/src/lib/uploader.cc index b6b23ed8e..fe15c5d83 100644 --- a/src/lib/uploader.cc +++ b/src/lib/uploader.cc @@ -19,16 +19,19 @@ #include "uploader.h" #include "dcpomatic_assert.h" +#include "compose.hpp" + +#include "i18n.h" using std::string; using boost::shared_ptr; using boost::function; Uploader::Uploader (function set_status, function set_progress) - : _set_status (set_status) - , _set_progress (set_progress) + : _set_progress (set_progress) + , _set_status (set_status) { - + _set_status (_("connecting")); } boost::uintmax_t @@ -66,6 +69,7 @@ Uploader::upload_directory (boost::filesystem::path base, boost::filesystem::pat if (is_directory (i->path ())) { upload_directory (base, i->path (), transferred, total_size); } else { + _set_status (String::compose (_("copying %1"), i->path().leaf ())); upload_file (i->path (), remove_prefix (base, i->path ()), transferred, total_size); } }