src/parser.cpp

changeset 206
654661eab7f3
parent 201
5d201ee4a9c3
child 242
16855456992d
--- 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<ConditionalEdge>{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)

mercurial