From 6d56937f32487293adcc189e419e050c32eb660b Mon Sep 17 00:00:00 2001 From: Robert McLay Date: Sun, 8 Jan 2017 09:32:27 -0600 Subject: [PATCH] The phrase "Lmod Warning: " can now be translated. --- messageDir/de.lua | 2 ++ messageDir/en.lua | 3 ++- messageDir/es.lua | 3 ++- messageDir/fr.lua | 3 ++- messageDir/zh.lua | 2 ++ src/MasterControl.lua | 2 +- 6 files changed, 11 insertions(+), 4 deletions(-) diff --git a/messageDir/de.lua b/messageDir/de.lua index dc9f4ffca..7a02a38ff 100644 --- a/messageDir/de.lua +++ b/messageDir/de.lua @@ -1,6 +1,8 @@ return { de = { errTitle = "Lmod hat den folgenden Fehler erkannt: ", + warnTitle = "Lmod Warning: ", + -------------------------------------------------------------------------- -- LmodError messages -------------------------------------------------------------------------- diff --git a/messageDir/en.lua b/messageDir/en.lua index 6e6a819c1..78393deaf 100644 --- a/messageDir/en.lua +++ b/messageDir/en.lua @@ -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 -------------------------------------------------------------------------- diff --git a/messageDir/es.lua b/messageDir/es.lua index 1b5fbba20..1540b21cf 100644 --- a/messageDir/es.lua +++ b/messageDir/es.lua @@ -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 -------------------------------------------------------------------------- diff --git a/messageDir/fr.lua b/messageDir/fr.lua index 36045dd65..7bd95842f 100644 --- a/messageDir/fr.lua +++ b/messageDir/fr.lua @@ -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 -------------------------------------------------------------------------- diff --git a/messageDir/zh.lua b/messageDir/zh.lua index bf1c3d257..432157ae8 100644 --- a/messageDir/zh.lua +++ b/messageDir/zh.lua @@ -1,5 +1,7 @@ return { zh = { + errTitle = "Lmod has detected the following error: ", + warnTitle = "Lmod Warning: ", -------------------------------------------------------------------------- -- LmodError messages -------------------------------------------------------------------------- diff --git a/src/MasterControl.lua b/src/MasterControl.lua index dff15cc25..c88f5fe58 100644 --- a/src/MasterControl.lua +++ b/src/MasterControl.lua @@ -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()