diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-07-22 00:41:03 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-07-22 00:41:03 +0100 |
| commit | dea824f6ff41384a5e17e23de5434cf84eccff29 (patch) | |
| tree | a40207882d506417cb5f456135b9ba4394535d00 /src/lib/types.cc | |
| parent | 9cbe57dda759fccfa9dec8a0820114d7d8583a36 (diff) | |
Display only required tabs, including subs / ccap.
Diffstat (limited to 'src/lib/types.cc')
| -rw-r--r-- | src/lib/types.cc | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/lib/types.cc b/src/lib/types.cc index 97373b24e..5474b609a 100644 --- a/src/lib/types.cc +++ b/src/lib/types.cc @@ -1,5 +1,5 @@ /* - 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. @@ -25,6 +25,8 @@ #include <libxml++/libxml++.h> #include <libcxml/cxml.h> +#include "i18n.h" + using std::max; using std::min; using std::string; @@ -117,6 +119,19 @@ caption_type_to_string (CaptionType t) } string +caption_type_to_name (CaptionType 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) { switch (t) { |
