Skip to content

Commit

Permalink
Restore localisation of error messages/exceptions
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Easterbrook <jim@jim-easterbrook.me.uk>
  • Loading branch information
jim-easterbrook authored and kmilos committed Feb 16, 2024
1 parent 04207b9 commit a398500
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/error.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const char* Error::what() const noexcept {
}

void Error::setMsg(int count) {
std::string msg{errList.at(static_cast<size_t>(code_))};
std::string msg{_(errList.at(static_cast<size_t>(code_)))};
auto pos = msg.find("%0");
if (pos != std::string::npos) {
msg.replace(pos, 2, std::to_string(static_cast<int>(code_)));
Expand Down

0 comments on commit a398500

Please sign in to comment.