Skip to content

Commit

Permalink
PR #696: Call build_i18n_before warnings, errors or messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert McLay committed Mar 11, 2024
1 parent adda3df commit b4f55e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/MainControl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,7 @@ end
-- Print msgs to stderr.
-- @param self A MainControl object.
function M.message(self, ...)
build_i18n_messages()
if (quiet()) then
return
end
Expand All @@ -826,6 +827,7 @@ end
-- Print msgs, traceback then set warning flag.
-- @param self A MainControl object.
function M.warning(self, ...)
build_i18n_messages()
if (not quiet() and haveWarnings()) then
local label = colorize("red", i18n("warnTitle",{}))
local sA = l_generateMsg("lmodwarning", label, ...)
Expand All @@ -841,6 +843,7 @@ end
-- Print msgs, traceback then exit.
-- @param self A MainControl object.
function M.error(self, ...)
build_i18n_messages()
-- Check for user loads that failed.
if (next(s_missingModuleT) ~= nil) then
local aa = {}
Expand Down

0 comments on commit b4f55e2

Please sign in to comment.