summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-01-04 21:04:09 +0100
committerCarl Hetherington <cth@carlh.net>2026-01-05 12:23:26 +0100
commit8585a4cae42f6be5025b4cbdae399d57633c699f (patch)
tree184c83e6b6432f902477b86a6185cf160a7aa64d /src/lib
parentddfeed4cbb8b9dfe3a6e77ef7e9e99532dfa3056 (diff)
Fix some untranslatable strings, spotted by Rob van Nieuwkerk.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/dcp_content.cc2
-rw-r--r--src/lib/dcp_examiner.cc2
-rw-r--r--src/lib/exceptions.cc7
-rw-r--r--src/lib/exceptions.h4
4 files changed, 10 insertions, 5 deletions
diff --git a/src/lib/dcp_content.cc b/src/lib/dcp_content.cc
index d26b726c2..effa3cb40 100644
--- a/src/lib/dcp_content.cc
+++ b/src/lib/dcp_content.cc
@@ -192,7 +192,7 @@ DCPContent::read_directory(boost::filesystem::path p)
if (!have_assetmap) {
if (!have_metadata) {
- throw DCPError("No ASSETMAP or ASSETMAP.xml file found: is this a DCP?");
+ throw DCPError(_("No ASSETMAP or ASSETMAP.xml file found: is this a DCP?"));
} else {
throw ProjectFolderError();
}
diff --git a/src/lib/dcp_examiner.cc b/src/lib/dcp_examiner.cc
index 4e8f611de..a5180822a 100644
--- a/src/lib/dcp_examiner.cc
+++ b/src/lib/dcp_examiner.cc
@@ -112,7 +112,7 @@ DCPExaminer::DCPExaminer(shared_ptr<const DCPContent> content, bool tolerant)
}
if (!selected_cpl) {
- throw DCPError("No CPLs found in DCP");
+ throw DCPError(_("No CPLs found in DCP"));
}
if (content->kdm()) {
diff --git a/src/lib/exceptions.cc b/src/lib/exceptions.cc
index e2e7fc4bc..cbab29430 100644
--- a/src/lib/exceptions.cc
+++ b/src/lib/exceptions.cc
@@ -190,3 +190,10 @@ SQLError::get_filename(SQLiteDatabase& db)
return {};
}
+
+
+CPLNotFoundError::CPLNotFoundError(string id)
+ : DCPError(fmt::format(_("CPL {} not found"), id))
+{
+
+}
diff --git a/src/lib/exceptions.h b/src/lib/exceptions.h
index 212d002e2..e6f795975 100644
--- a/src/lib/exceptions.h
+++ b/src/lib/exceptions.h
@@ -342,9 +342,7 @@ public:
class CPLNotFoundError : public DCPError
{
public:
- CPLNotFoundError(std::string id)
- : DCPError(fmt::format("CPL {} not found", id))
- {}
+ CPLNotFoundError(std::string id);
};