diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2016-06-18 12:14:01 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2016-06-18 12:14:01 +0300 |
commit | 983e293eb157131ca5e085e4927ea5fc220edc73 (patch) | |
tree | cc5e8bea4af5cfa53f57a73d2c61357f47165857 /include/tests_custom.template | |
parent | 9c093f7a97fb0b9593a303ef7394c3bc5dea99b2 (diff) |
Replaced text strings to allow translations
Diffstat (limited to 'include/tests_custom.template')
-rw-r--r-- | include/tests_custom.template | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/tests_custom.template b/include/tests_custom.template index 6486956b..284c4a67 100644 --- a/include/tests_custom.template +++ b/include/tests_custom.template @@ -23,9 +23,9 @@ # --text text to be displayed on screen # --result text at end of line # --color color of result text - Display --indent 2 --text "- Checking if everything is OK..." --result OK --color GREEN - Display --indent 4 --text "This shows one level deeper " --result NOTICE --color YELLOW - Display --indent 6 --text "And even deeper" --result WARNING --color RED + Display --indent 2 --text "- Checking if everything is OK..." --result "${STATUS_OK}" --color GREEN + Display --indent 4 --text "This shows one level deeper " --result "${STATUS_NO}"TICE --color YELLOW + Display --indent 6 --text "And even deeper" --result "${STATUS_WARNING}" --color RED # Here we could add specific tests, like testing for a directory # Most tests use the "if-then-else". If something is true, take one step, otherwise the other. @@ -54,12 +54,12 @@ # Only match one value "Linux") LogText "Found Linux" - Display --indent 2 --text "OS: Linux" --result OK --color GREEN + Display --indent 2 --text "OS: Linux" --result "${STATUS_OK}" --color GREEN ;; # Matching several platforms "FreeBSD" | "NetBSD" | "OpenBSD") LogText "Found an operating system based on BSD" - Display --indent 2 --text "OS: *BSD" --result OK --color GREEN + Display --indent 2 --text "OS: *BSD" --result "${STATUS_OK}" --color GREEN ;; # Catch-all for unknown values *) @@ -96,9 +96,9 @@ fi if [ ${FOUNDPROBLEM} -eq 0 ]; then - Display --indent 2 --text "- Checking if everything is OK..." --result OK --color GREEN + Display --indent 2 --text "- Checking if everything is OK..." --result "${STATUS_OK}" --color GREEN else - Display --indent 2 --text "- Checking if everything is OK..." --result WARNING --color RED + Display --indent 2 --text "- Checking if everything is OK..." --result "${STATUS_WARNING}" --color RED ReportSuggestion ${TEST_NO} "This is a suggestion" fi fi |