diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-02-11 12:04:27 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-02-11 12:04:27 +0000 |
| commit | 8aeb741ccbe2edb528e98a431bf55459a6836a9b (patch) | |
| tree | a14569b531d9867683a1ac1c94c8e0eb406906a8 /src/tools | |
| parent | 4ba8772aef261da209bbb882325fd61a8b479fd7 (diff) | |
| parent | 22f2cd94132f93a159c2ce9fe263771cb5a5dbdf (diff) | |
Merge master.
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/dcpomatic.cc | 4 | ||||
| -rw-r--r-- | src/tools/dcpomatic_create.cc | 52 | ||||
| -rw-r--r-- | src/tools/po/it_IT.po | 38 | ||||
| -rw-r--r-- | src/tools/server_test.cc | 14 | ||||
| -rw-r--r-- | src/tools/wscript | 8 |
5 files changed, 65 insertions, 51 deletions
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index 1e60d9690..70e675e40 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -474,8 +474,10 @@ private: shared_ptr<Job> (new SendKDMEmailJob (film, d->screens (), d->dcp (), d->from (), d->until ())) ); } - } catch (KDMError& e) { + } catch (exception& e) { error_dialog (this, e.what ()); + } catch (...) { + error_dialog (this, _("An unknown exeception occurred.")); } d->Destroy (); diff --git a/src/tools/dcpomatic_create.cc b/src/tools/dcpomatic_create.cc index 8be468b30..8dc4de50e 100644 --- a/src/tools/dcpomatic_create.cc +++ b/src/tools/dcpomatic_create.cc @@ -20,6 +20,7 @@ #include <string> #include <iostream> #include <cstdlib> +#include <stdexcept> #include <getopt.h> #include <boost/filesystem.hpp> #include "lib/version.h" @@ -34,6 +35,7 @@ using std::string; using std::cout; using std::cerr; using std::list; +using std::exception; using boost::shared_ptr; static void @@ -98,31 +100,37 @@ main (int argc, char* argv[]) dcpomatic_setup (); ui_signaller = new UISignaller (); - shared_ptr<Film> film (new Film (output)); - if (!name.empty ()) { - film->set_name (name); - } - - for (int i = optind; i < argc; ++i) { - film->examine_and_add_content (content_factory (film, argv[i])); - } - - JobManager* jm = JobManager::instance (); - while (jm->work_to_do ()) { - ui_signaller->ui_idle (); - } - - if (jm->errors ()) { - list<shared_ptr<Job> > jobs = jm->get (); - for (list<shared_ptr<Job> >::iterator i = jobs.begin(); i != jobs.end(); ++i) { - if ((*i)->finished_in_error ()) { - cerr << (*i)->error_summary () << "\n" - << (*i)->error_details () << "\n"; + try { + shared_ptr<Film> film (new Film (output)); + if (!name.empty ()) { + film->set_name (name); + } + + for (int i = optind; i < argc; ++i) { + film->examine_and_add_content (content_factory (film, argv[i])); + } + + JobManager* jm = JobManager::instance (); + while (jm->work_to_do ()) { + ui_signaller->ui_idle (); + } + + if (jm->errors ()) { + list<shared_ptr<Job> > jobs = jm->get (); + for (list<shared_ptr<Job> >::iterator i = jobs.begin(); i != jobs.end(); ++i) { + if ((*i)->finished_in_error ()) { + cerr << (*i)->error_summary () << "\n" + << (*i)->error_details () << "\n"; + } } + exit (EXIT_FAILURE); } + + film->write_metadata (); + } catch (exception& e) { + cerr << argv[0] << ": " << e.what() << "\n"; exit (EXIT_FAILURE); } - - film->write_metadata (); + return 0; } diff --git a/src/tools/po/it_IT.po b/src/tools/po/it_IT.po index f63169721..15276515b 100644 --- a/src/tools/po/it_IT.po +++ b/src/tools/po/it_IT.po @@ -8,18 +8,18 @@ msgstr "" "Project-Id-Version: IT VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2014-01-30 21:51+0000\n" -"PO-Revision-Date: 2013-04-28 10:31+0100\n" -"Last-Translator: Maci <macibro@gmail.com>\n" +"PO-Revision-Date: 2014-02-03 09:36+0100\n" +"Last-Translator: William Fanelli <william.f@impronte.com>\n" "Language-Team: \n" -"Language: Italiano\n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 1.5.5\n" +"X-Generator: Poedit 1.6.3\n" #: src/tools/dcpomatic.cc:366 msgid "%1 already exists as a file, so you cannot use it for a new film." -msgstr "" +msgstr "%1 esiste già il file, non è possibile usarlo per un nuovo film" #: src/tools/dcpomatic.cc:241 msgid "&Edit" @@ -27,7 +27,7 @@ msgstr "&Modifica" #: src/tools/dcpomatic.cc:208 msgid "&Exit" -msgstr "" +msgstr "&Esci" #: src/tools/dcpomatic.cc:239 msgid "&File" @@ -71,20 +71,19 @@ msgstr "&Invia DCP a TMS" #: src/tools/dcpomatic.cc:244 msgid "&Tools" -msgstr "" +msgstr "&Strumenti" #: src/tools/dcpomatic.cc:236 msgid "About" msgstr "Informazioni" #: src/tools/dcpomatic.cc:234 -#, fuzzy msgid "About DCP-o-matic" -msgstr "DVD-o-matic" +msgstr "Su DVD-o-matic" #: src/tools/dcpomatic.cc:230 msgid "Check for updates" -msgstr "" +msgstr "Controlla aggiornamenti" #: src/tools/dcpomatic.cc:633 msgid "Could not load film %1 (%2)" @@ -105,9 +104,8 @@ msgstr "" #: src/tools/dcpomatic.cc:337 src/tools/dcpomatic.cc:591 #: src/tools/dcpomatic.cc:644 -#, fuzzy msgid "DCP-o-matic" -msgstr "DVD-o-matic" +msgstr "DCP-o-matic" #: src/tools/dcpomatic.cc:229 msgid "Encoding servers..." @@ -119,7 +117,7 @@ msgstr "Film modificato" #: src/tools/dcpomatic.cc:228 msgid "Hints..." -msgstr "" +msgstr "Suggerimenti..." #: src/tools/dcpomatic.cc:223 msgid "Make &KDMs..." @@ -148,34 +146,38 @@ msgid "" "The DCP for this film will take up about %.1f Gb, and the disk that you are " "using only has %.1f Gb available. Do you want to continue anyway?" msgstr "" +"Il DCP di questo film occupa %.1f Gb, ma il disco che stai usando dispone di " +"%.1f Gb liberi. Vuoi continuare ugualmente?" #: src/tools/dcpomatic.cc:728 msgid "The DCP-o-matic download server could not be contacted." -msgstr "" +msgstr "Il download server di DCP-o-matic non può essere contattato." #: src/tools/dcpomatic.cc:356 msgid "" "The directory %1 already exists and is not empty. Are you sure you want to " "use it?" -msgstr "" +msgstr "La cartella %1 esiste già e non è vuota. Sei sicuro di volerla usare?" #: src/tools/dcpomatic.cc:723 msgid "There are no new versions of DCP-o-matic available." -msgstr "" +msgstr "Non ci sono nuove versioni di DCP-o-matic disponibili." #: src/tools/dcpomatic.cc:553 msgid "There are unfinished jobs; are you sure you want to quit?" -msgstr "" +msgstr "C'è un processo in corso: sei sicuro di voler uscire?" #: src/tools/dcpomatic.cc:554 msgid "Unfinished jobs" -msgstr "" +msgstr "Processo in corso" #: src/tools/dcpomatic.cc:395 msgid "" "You did not select a folder. Make sure that you select a folder before " "clicking Open." msgstr "" +"Non hai selezionato una cartella. Assicurati di selezionare una cartella " +"prima di cliccare Apri." #~ msgid "&Analyse audio" #~ msgstr "&Analizza audio" diff --git a/src/tools/server_test.cc b/src/tools/server_test.cc index 38e4704b7..9b725cb86 100644 --- a/src/tools/server_test.cc +++ b/src/tools/server_test.cc @@ -142,14 +142,14 @@ main (int argc, char* argv[]) dcpomatic_setup (); - server = new ServerDescription (server_host, 1); - film.reset (new Film (film_dir)); - film->read_metadata (); - - shared_ptr<Player> player = film->make_player (); - player->disable_audio (); - try { + server = new ServerDescription (server_host, 1); + film.reset (new Film (film_dir)); + film->read_metadata (); + + shared_ptr<Player> player = film->make_player (); + player->disable_audio (); + player->Video.connect (boost::bind (process_video, _1, _2, _3, _5)); bool done = false; while (!done) { diff --git a/src/tools/wscript b/src/tools/wscript index 0fd336676..131d02b81 100644 --- a/src/tools/wscript +++ b/src/tools/wscript @@ -11,17 +11,19 @@ def configure(conf): def build(bld): for t in ['dcpomatic_cli', 'dcpomatic_server_cli', 'server_test', 'dcpomatic_kdm', 'dcpomatic_create']: obj = bld(features = 'cxx cxxprogram') - obj.uselib = 'BOOST_THREAD OPENJPEG DCP CXML AVFORMAT AVFILTER AVCODEC AVUTIL SWSCALE POSTPROC WXWIDGETS QUICKMAIL' + obj.uselib = 'BOOST_THREAD BOOST_DATETIME OPENJPEG DCP CXML AVFORMAT AVFILTER AVCODEC AVUTIL SWSCALE POSTPROC WXWIDGETS QUICKMAIL' obj.includes = ['..'] obj.use = ['libdcpomatic'] obj.source = '%s.cc' % t obj.target = t + if t == 'server_test': + obj.install_path = None if not bld.env.DISABLE_GUI: for t in ['dcpomatic', 'dcpomatic_batch', 'dcpomatic_server']: obj = bld(features = 'cxx cxxprogram') - obj.uselib = 'DCP OPENJPEG AVFORMAT AVFILTER AVCODEC AVUTIL SWSCALE POSTPROC CXML WXWIDGETS QUICKMAIL' - if bld.env.STATIC: + obj.uselib = 'BOOST_THREAD BOOST_DATETIME OPENJPEG DCP CXML AVFORMAT AVFILTER AVCODEC AVUTIL SWSCALE POSTPROC CXML WXWIDGETS QUICKMAIL' + if bld.env.BUILD_STATIC: obj.uselib += ' GTK' obj.includes = ['..'] obj.use = ['libdcpomatic', 'libdcpomatic-wx'] |
