diff -r 1a4342d80de7 -r 654661eab7f3 src/parser.cpp --- a/src/parser.cpp Wed Jun 08 20:41:21 2022 +0300 +++ b/src/parser.cpp Wed Jun 08 22:29:44 2022 +0300 @@ -193,7 +193,7 @@ const int code = tokens[0].toInt(&ok_code); if (not ok_code) { - throw BodyParseError{"line type was not an integer"}; + throw BodyParseError{QObject::tr("line type was not an integer")}; } switch (code) { @@ -225,7 +225,7 @@ return Colored{cedge, pair.second}; } default: - throw BodyParseError{format("bad line type '%1'", code)}; + throw BodyParseError{QObject::tr("bad line type '%1'").arg(code)}; } } catch(const BodyParseError& error)