Skip to content

Commit

Permalink
The phrase "Lmod Warning: " can now be translated.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert McLay committed Jan 8, 2017
1 parent efbfd97 commit 6d56937
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4 deletions.
2 changes: 2 additions & 0 deletions messageDir/de.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
return {
de = {
errTitle = "Lmod hat den folgenden Fehler erkannt: ",
warnTitle = "Lmod Warning: ",

--------------------------------------------------------------------------
-- LmodError messages
--------------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion messageDir/en.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
return {
en = {
errTitle = "Lmod has detected the following error: ",
errTitle = "Lmod has detected the following error: ",
warnTitle = "Lmod Warning: ",
--------------------------------------------------------------------------
-- LmodError messages
--------------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion messageDir/es.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
return {
es = {
errTitle = "Lmod ha detectado el siguiente error: ",
errTitle = "Lmod ha detectado el siguiente error: ",
warnTitle = "Lmod Warning: ",
--------------------------------------------------------------------------
-- LmodError messages
--------------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion messageDir/fr.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
return {
fr = {
errTitle = "Lmod a détecté l'erreur suivante : ",
errTitle = "Lmod a détecté l'erreur suivante : ",
warnTitle = "Lmod Warning: ",
--------------------------------------------------------------------------
-- LmodError messages
--------------------------------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions messageDir/zh.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
return {
zh = {
errTitle = "Lmod has detected the following error: ",
warnTitle = "Lmod Warning: ",
--------------------------------------------------------------------------
-- LmodError messages
--------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/MasterControl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ end
-- @param self A MasterControl object.
function M.warning(self, ...)
if (not quiet() and haveWarnings()) then
local label = colorize("red", "Lmod Warning: ")
local label = colorize("red", i18n("warnTitle",{}))
local sA = l_generateMsg("lmodwarning", label, ...)
sA[#sA+1] = "\n"
sA[#sA+1] = moduleStackTraceBack()
Expand Down

0 comments on commit 6d56937

Please sign in to comment.