diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-12-23 21:53:32 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-12-26 00:27:08 +0100 |
| commit | 8caf013a9b8d709ed7c3d5e9febee0067e6fcf1f (patch) | |
| tree | 40da87cb357e8b1c54a1464bdbac2d014640e30c /src/lib/text_content.cc | |
| parent | cec6ff92aef45c687085ecfc1059004407c18c57 (diff) | |
Replace String::compose with fmt::format().
Diffstat (limited to 'src/lib/text_content.cc')
| -rw-r--r-- | src/lib/text_content.cc | 7 |
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; |
