X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fuploader.cc;h=bfee5ecbbcd92ab161e88f9e0e5b415fbb1cb0f1;hp=b6b23ed8e5794445594714cf5e055e418ad3d8d1;hb=a5be11a965c2c38442e4e069874e7e21b5b43a5c;hpb=b00389305af83dfd1e3b41ab3b108cb591f18c5d diff --git a/src/lib/uploader.cc b/src/lib/uploader.cc index b6b23ed8e..bfee5ecbb 100644 --- a/src/lib/uploader.cc +++ b/src/lib/uploader.cc @@ -1,34 +1,38 @@ /* Copyright (C) 2015 Carl Hetherington - This program is free software; you can redistribute it and/or modify + This file is part of DCP-o-matic. + + DCP-o-matic is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, + DCP-o-matic is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + along with DCP-o-matic. If not, see . */ #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 +70,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); } }