summaryrefslogtreecommitdiff
path: root/src/lib/text_content.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-12-23 21:53:32 +0100
committerCarl Hetherington <cth@carlh.net>2024-12-26 00:27:08 +0100
commit8caf013a9b8d709ed7c3d5e9febee0067e6fcf1f (patch)
tree40da87cb357e8b1c54a1464bdbac2d014640e30c /src/lib/text_content.cc
parentcec6ff92aef45c687085ecfc1059004407c18c57 (diff)
Replace String::compose with fmt::format().
Diffstat (limited to 'src/lib/text_content.cc')
-rw-r--r--src/lib/text_content.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/text_content.cc b/src/lib/text_content.cc
index 15e1d4055..3c5eb5527 100644
--- a/src/lib/text_content.cc
+++ b/src/lib/text_content.cc
@@ -27,6 +27,7 @@
#include "variant.h"
#include <libcxml/cxml.h>
#include <libxml++/libxml++.h>
+#include <fmt/format.h>
#include <iostream>
#include "i18n.h"
@@ -245,9 +246,9 @@ TextContent::TextContent (Content* parent, cxml::ConstNodePtr node, int version,
*/
if (version <= 37) {
if (!lang->content().empty()) {
- notes.push_back(String::compose(
- _("A subtitle or closed caption file in this project is marked with the language '%1', "
- "which %2 does not recognise. The file's language has been cleared."), lang->content(), variant::dcpomatic()));
+ notes.push_back(fmt::format(
+ _("A subtitle or closed caption file in this project is marked with the language '{}', "
+ "which {} does not recognise. The file's language has been cleared."), lang->content(), variant::dcpomatic()));
}
} else {
throw;