/*
- Copyright (C) 2013 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2013-2018 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
#include <libxml++/libxml++.h>
#include <libcxml/cxml.h>
+#include "i18n.h"
+
using std::max;
using std::min;
using std::string;
node->add_child("BottomCrop")->add_child_text (raw_convert<string> (bottom));
}
-CaptionType
+TextType
string_to_caption_type (string s)
{
if (s == "open") {
}
string
-caption_type_to_string (CaptionType t)
+caption_type_to_string (TextType t)
{
switch (t) {
case CAPTION_OPEN:
}
}
+string
+caption_type_to_name (TextType t)
+{
+ switch (t) {
+ case CAPTION_OPEN:
+ return _("Subtitles");
+ case CAPTION_CLOSED:
+ return _("Closed captions");
+ default:
+ DCPOMATIC_ASSERT (false);
+ }
+}
+
string
video_frame_type_to_string (VideoFrameType t)
{