Skip to content

Commit

Permalink
updated copyright dates. added more error messages to en.lua table.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert McLay committed Jan 9, 2017
1 parent 6d56937 commit 7419852
Show file tree
Hide file tree
Showing 114 changed files with 331 additions and 158 deletions.
2 changes: 1 addition & 1 deletion License
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
--
-- ----------------------------------------------------------------------
--
-- Copyright (C) 2008-2016 Robert McLay
-- Copyright (C) 2008-2017 Robert McLay
--
-- Permission is hereby granted, free of charge, to any person obtaining
-- a copy of this software and associated documentation files (the
Expand Down
34 changes: 34 additions & 0 deletions messageDir/de.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,37 @@
--------------------------------------------------------------------------
-- Lmod License
--------------------------------------------------------------------------
--
-- Lmod is licensed under the terms of the MIT license reproduced below.
-- This means that Lmod is free software and can be used for both academic
-- and commercial purposes at absolutely no cost.
--
-- ----------------------------------------------------------------------
--
-- Copyright (C) 2008-2017 Robert McLay
--
-- Permission is hereby granted, free of charge, to any person obtaining
-- a copy of this software and associated documentation files (the
-- "Software"), to deal in the Software without restriction, including
-- without limitation the rights to use, copy, modify, merge, publish,
-- distribute, sublicense, and/or sell copies of the Software, and to
-- permit persons to whom the Software is furnished to do so, subject
-- to the following conditions:
--
-- The above copyright notice and this permission notice shall be
-- included in all copies or substantial portions of the Software.
--
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
-- BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
-- ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-- THE SOFTWARE.
--
--------------------------------------------------------------------------

return {
de = {
errTitle = "Lmod hat den folgenden Fehler erkannt: ",
Expand Down
51 changes: 51 additions & 0 deletions messageDir/en.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,37 @@
--------------------------------------------------------------------------
-- Lmod License
--------------------------------------------------------------------------
--
-- Lmod is licensed under the terms of the MIT license reproduced below.
-- This means that Lmod is free software and can be used for both academic
-- and commercial purposes at absolutely no cost.
--
-- ----------------------------------------------------------------------
--
-- Copyright (C) 2008-2017 Robert McLay
--
-- Permission is hereby granted, free of charge, to any person obtaining
-- a copy of this software and associated documentation files (the
-- "Software"), to deal in the Software without restriction, including
-- without limitation the rights to use, copy, modify, merge, publish,
-- distribute, sublicense, and/or sell copies of the Software, and to
-- permit persons to whom the Software is furnished to do so, subject
-- to the following conditions:
--
-- The above copyright notice and this permission notice shall be
-- included in all copies or substantial portions of the Software.
--
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
-- BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
-- ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-- THE SOFTWARE.
--
--------------------------------------------------------------------------

return {
en = {
errTitle = "Lmod has detected the following error: ",
Expand Down Expand Up @@ -43,7 +77,24 @@ Please submit a consulting ticket if you require additional assistance.
e124 = "Spider search timed out.\n",
e125 = "dbT[sn] failed for sn: %{sn}\n",
e126 = "Unable to compute hashsum.\n",
e127 = [==[The following module(s) are unknown: %{module_list}
Please check the spelling or version number. Also try "module spider ..."
It is also possible your cache file is out-of-date try:
$ module --ignore-cache load %{module_list}
]==],
e128 = [==[These module(s) exist but cannot be loaded as requested: %{kA}
Try: "module spider %{kB}" to see how to load the module(s).
]==],

e129 = [==[Syntax error in file: %{fn}
with command: %{cmdName}, one or more arguments are not strings.
]==],
e130 = [==[Syntax error in file: %{fn}
with command: "execute".
The syntax is:
execute{cmd="command string",modeA={"load",...}}
]==],
--------------------------------------------------------------------------
-- LmodMessages
--------------------------------------------------------------------------
Expand Down
34 changes: 34 additions & 0 deletions messageDir/es.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,37 @@
--------------------------------------------------------------------------
-- Lmod License
--------------------------------------------------------------------------
--
-- Lmod is licensed under the terms of the MIT license reproduced below.
-- This means that Lmod is free software and can be used for both academic
-- and commercial purposes at absolutely no cost.
--
-- ----------------------------------------------------------------------
--
-- Copyright (C) 2008-2017 Robert McLay
--
-- Permission is hereby granted, free of charge, to any person obtaining
-- a copy of this software and associated documentation files (the
-- "Software"), to deal in the Software without restriction, including
-- without limitation the rights to use, copy, modify, merge, publish,
-- distribute, sublicense, and/or sell copies of the Software, and to
-- permit persons to whom the Software is furnished to do so, subject
-- to the following conditions:
--
-- The above copyright notice and this permission notice shall be
-- included in all copies or substantial portions of the Software.
--
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
-- BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
-- ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-- THE SOFTWARE.
--
--------------------------------------------------------------------------

return {
es = {
errTitle = "Lmod ha detectado el siguiente error: ",
Expand Down
34 changes: 34 additions & 0 deletions messageDir/fr.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,37 @@
--------------------------------------------------------------------------
-- Lmod License
--------------------------------------------------------------------------
--
-- Lmod is licensed under the terms of the MIT license reproduced below.
-- This means that Lmod is free software and can be used for both academic
-- and commercial purposes at absolutely no cost.
--
-- ----------------------------------------------------------------------
--
-- Copyright (C) 2008-2017 Robert McLay
--
-- Permission is hereby granted, free of charge, to any person obtaining
-- a copy of this software and associated documentation files (the
-- "Software"), to deal in the Software without restriction, including
-- without limitation the rights to use, copy, modify, merge, publish,
-- distribute, sublicense, and/or sell copies of the Software, and to
-- permit persons to whom the Software is furnished to do so, subject
-- to the following conditions:
--
-- The above copyright notice and this permission notice shall be
-- included in all copies or substantial portions of the Software.
--
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
-- BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
-- ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-- THE SOFTWARE.
--
--------------------------------------------------------------------------

return {
fr = {
errTitle = "Lmod a détecté l'erreur suivante : ",
Expand Down
34 changes: 34 additions & 0 deletions messageDir/zh.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,37 @@
--------------------------------------------------------------------------
-- Lmod License
--------------------------------------------------------------------------
--
-- Lmod is licensed under the terms of the MIT license reproduced below.
-- This means that Lmod is free software and can be used for both academic
-- and commercial purposes at absolutely no cost.
--
-- ----------------------------------------------------------------------
--
-- Copyright (C) 2008-2017 Robert McLay
--
-- Permission is hereby granted, free of charge, to any person obtaining
-- a copy of this software and associated documentation files (the
-- "Software"), to deal in the Software without restriction, including
-- without limitation the rights to use, copy, modify, merge, publish,
-- distribute, sublicense, and/or sell copies of the Software, and to
-- permit persons to whom the Software is furnished to do so, subject
-- to the following conditions:
--
-- The above copyright notice and this permission notice shall be
-- included in all copies or substantial portions of the Software.
--
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
-- BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
-- ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-- THE SOFTWARE.
--
--------------------------------------------------------------------------

return {
zh = {
errTitle = "Lmod has detected the following error: ",
Expand Down
4 changes: 2 additions & 2 deletions rt/cached_loads/err.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
step 1
lua ProjectDIR/src/lmod.in.lua bash --regression_testing --version
===========================
Modules based on Lua: Version 7.1.2 2016-12-02 11:38 -06:00
Modules based on Lua: Version 7.2.2 2017-01-08 08:15 -06:00
by Robert McLay [email protected]
===========================
step 2
Expand Down Expand Up @@ -37,7 +37,7 @@ lua ProjectDIR/src/lmod.in.lua bash --regression_testing load B
Lmod has detected the following error: The following module(s) are unknown: "B"
Please check the spelling or version number. Also try "module spider ..."
It is also possible your cache file is out-of-date try:
module --ignore-cache load "B"
$ module --ignore-cache load "B"
===========================
step 9
lua ProjectDIR/src/lmod.in.lua bash --regression_testing list
Expand Down
4 changes: 2 additions & 2 deletions rt/empty/err.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
step 1
lua ProjectDIR/src/lmod.in.lua bash --regression_testing --version
===========================
Modules based on Lua: Version 7.2.1 2017-01-05 20:28 -06:00
Modules based on Lua: Version 7.2.2 2017-01-08 08:15 -06:00
by Robert McLay [email protected]
===========================
step 2
Expand All @@ -12,4 +12,4 @@ Lmod Warning: MODULEPATH is undefined.
Lmod has detected the following error: The following module(s) are unknown: "a"
Please check the spelling or version number. Also try "module spider ..."
It is also possible your cache file is out-of-date try:
module --ignore-cache load "a"
$ module --ignore-cache load "a"
4 changes: 2 additions & 2 deletions rt/errHandler/err.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
step 1
lua ProjectDIR/src/lmod.in.lua bash --regression_testing --version
===========================
Modules based on Lua: Version 7.1.9 2016-12-17 13:29 -06:00
Modules based on Lua: Version 7.2.2 2017-01-08 08:15 -06:00
by Robert McLay [email protected]
===========================
step 2
Expand All @@ -18,7 +18,7 @@ step 3
lua ProjectDIR/src/lmod.in.lua bash --regression_testing load bad_argument
===========================
Lmod has detected the following error: Syntax error in file: ProjectDIR/rt/errHandler/mf/bad_argument/1.0.lua
with command: help One or more arguments are not strings
with command: help, one or more arguments are not strings.
While processing the following module(s):
Module fullname Module Filename
bad_argument/1.0 ProjectDIR/rt/errHandler/mf/bad_argument/1.0.lua
10 changes: 9 additions & 1 deletion rt/i18n/err.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
step 1
lua ProjectDIR/src/lmod.in.lua bash --regression_testing --version
===========================
Modules based on Lua: Version 7.2.1 2017-01-05 20:28 -06:00
Modules based on Lua: Version 7.2.2 2017-01-08 08:15 -06:00
by Robert McLay [email protected]
===========================
step 2
Expand Down Expand Up @@ -38,3 +38,11 @@ step 8
lua ProjectDIR/src/lmod.in.lua bash --regression_testing load gcc
===========================
Lmod 已经自动将 "intel/17.0" 替换为 "gcc/5.4"
===========================
step 9
lua ProjectDIR/src/lmod.in.lua bash --regression_testing load unknown
===========================
Lmod a détecté l'erreur suivante : The following module(s) are unknown: "unknown"
Please check the spelling or version number. Also try "module spider ..."
It is also possible your cache file is out-of-date try:
$ module --ignore-cache load "unknown"
4 changes: 3 additions & 1 deletion rt/i18n/i18n.tdesc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ testdescript = {
runLmod avail # 3
export LANG=de_DE
runLmod avail # 4
export LANG=fr
export LANG=fr_CA.UTF8
runLmod avail # 5
export LANG=pl
runLmod avail # 6
Expand All @@ -39,6 +39,8 @@ testdescript = {
export LANG=zh
runLmod load intel # 6
runLmod load gcc # 7
export LANG=fr_CA.UTF8
runLmod load unknown # 8
Expand Down
5 changes: 5 additions & 0 deletions rt/i18n/out.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,8 @@ _LMFILES_="ProjectDIR/rt/i18n/mf/Core/gcc/5.4.lua";
export _LMFILES_;
_ModuleTable_='_ModuleTable_={["MTversion"]=3,depthT={},family={["Compiler"]="gcc",},mT={gcc={["fn"]="ProjectDIR/rt/i18n/mf/Core/gcc/5.4.lua",["fullName"]="gcc/5.4",["loadOrder"]=1,propT={},["status"]="active",["userName"]="gcc",},},mpathA={"ProjectDIR/rt/i18n/mf/Core",},["systemBaseMPATH"]="ProjectDIR/rt/i18n/mf/Core",}';
export _ModuleTable_;
===========================
step 9
lua ProjectDIR/src/lmod.in.lua bash --regression_testing load unknown
===========================
false
14 changes: 7 additions & 7 deletions rt/load/err.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
step 1
lua ProjectDIR/src/lmod.in.lua bash --regression_testing --version
===========================
Modules based on Lua: Version 7.1.12 2016-12-29 20:55 -06:00
Modules based on Lua: Version 7.2.2 2017-01-08 08:15 -06:00
by Robert McLay [email protected]
===========================
step 2
Expand Down Expand Up @@ -110,15 +110,15 @@ lua ProjectDIR/src/lmod.in.lua bash --regression_testing load boost/1.33.0
Lmod has detected the following error: The following module(s) are unknown: "boost/1.33.0"
Please check the spelling or version number. Also try "module spider ..."
It is also possible your cache file is out-of-date try:
module --ignore-cache load "boost/1.33.0"
$ module --ignore-cache load "boost/1.33.0"
===========================
step 17
lua ProjectDIR/src/lmod.in.lua bash --regression_testing load boost/1.57.0
===========================
Lmod has detected the following error: The following module(s) are unknown: "boost/1.57.0"
Please check the spelling or version number. Also try "module spider ..."
It is also possible your cache file is out-of-date try:
module --ignore-cache load "boost/1.57.0"
$ module --ignore-cache load "boost/1.57.0"
===========================
step 18
lua ProjectDIR/src/lmod.in.lua bash --regression_testing load boost
Expand Down Expand Up @@ -191,7 +191,7 @@ lua ProjectDIR/src/lmod.in.lua bash --regression_testing load DoesNotExist
Lmod has detected the following error: The following module(s) are unknown: "DoesNotExist"
Please check the spelling or version number. Also try "module spider ..."
It is also possible your cache file is out-of-date try:
module --ignore-cache load "DoesNotExist"
$ module --ignore-cache load "DoesNotExist"
===========================
step 29
lua ProjectDIR/src/lmod.in.lua bash --regression_testing list
Expand Down Expand Up @@ -303,23 +303,23 @@ lua ProjectDIR/src/lmod.in.lua bash --regression_testing load bad_symlink
Lmod has detected the following error: The following module(s) are unknown: "bad_symlink"
Please check the spelling or version number. Also try "module spider ..."
It is also possible your cache file is out-of-date try:
module --ignore-cache load "bad_symlink"
$ module --ignore-cache load "bad_symlink"
===========================
step 38
lua ProjectDIR/src/lmod.in.lua bash --regression_testing load empty
===========================
Lmod has detected the following error: The following module(s) are unknown: "empty"
Please check the spelling or version number. Also try "module spider ..."
It is also possible your cache file is out-of-date try:
module --ignore-cache load "empty"
$ module --ignore-cache load "empty"
===========================
step 39
lua ProjectDIR/src/lmod.in.lua bash --regression_testing load version_only
===========================
Lmod has detected the following error: The following module(s) are unknown: "version_only"
Please check the spelling or version number. Also try "module spider ..."
It is also possible your cache file is out-of-date try:
module --ignore-cache load "version_only"
$ module --ignore-cache load "version_only"
===========================
step 40
lua ProjectDIR/src/lmod.in.lua bash --regression_testing load dflt
Expand Down
Loading

0 comments on commit 7419852

Please sign in to comment.