Add some comments for translators.
[dcpomatic.git] / src / lib / ffmpeg_content.cc
index 53982db10f6068478ec6b9395a89f48366cd6ab0..6df97a48535f1e8b56f65a94cc8a55f51d9015c6 100644 (file)
@@ -38,10 +38,11 @@ extern "C" {
 }
 #include <libxml++/libxml++.h>
 #include <boost/foreach.hpp>
+#include <iostream>
 
 #include "i18n.h"
 
-#define LOG_GENERAL(...) film->log()->log (String::compose (__VA_ARGS__), Log::TYPE_GENERAL);
+#define LOG_GENERAL(...) film->log()->log (String::compose (__VA_ARGS__), LogEntry::TYPE_GENERAL);
 
 using std::string;
 using std::vector;
@@ -375,12 +376,18 @@ FFmpegContent::add_properties (list<pair<string, string> >& p) const
 
                switch (_color_range) {
                case AVCOL_RANGE_UNSPECIFIED:
+                       /// TRANSLATORS: this means that the range of pixel values used in this
+                       /// file is unknown (not specified in the file).
                        p.push_back (make_pair (_("Colour range"), _("Unspecified")));
                        break;
                case AVCOL_RANGE_MPEG:
+                       /// TRANSLATORS: this means that the range of pixel values used in this
+                       /// file is limited, so that not all possible values are valid.
                        p.push_back (make_pair (_("Colour range"), String::compose (_("Limited (%1-%2)"), (total - sub) / 2, (total + sub) / 2)));
                        break;
                case AVCOL_RANGE_JPEG:
+                       /// TRANSLATORS: this means that the range of pixel values used in this
+                       /// file is full, so that all possible pixel values are valid.
                        p.push_back (make_pair (_("Colour range"), String::compose (_("Full (0-%1)"), total)));
                        break;
                default:
@@ -389,12 +396,18 @@ FFmpegContent::add_properties (list<pair<string, string> >& p) const
        } else {
                switch (_color_range) {
                case AVCOL_RANGE_UNSPECIFIED:
+                       /// TRANSLATORS: this means that the range of pixel values used in this
+                       /// file is unknown (not specified in the file).
                        p.push_back (make_pair (_("Colour range"), _("Unspecified")));
                        break;
                case AVCOL_RANGE_MPEG:
+                       /// TRANSLATORS: this means that the range of pixel values used in this
+                       /// file is limited, so that not all possible values are valid.
                        p.push_back (make_pair (_("Colour range"), _("Limited")));
                        break;
                case AVCOL_RANGE_JPEG:
+                       /// TRANSLATORS: this means that the range of pixel values used in this
+                       /// file is full, so that all possible pixel values are valid.
                        p.push_back (make_pair (_("Colour range"), _("Full")));
                        break;
                default: