summaryrefslogtreecommitdiff
path: root/lib/common.sh
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-05-02 15:12:42 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-05-02 15:12:42 -0400
commita1a79ff77bb19166bd5631953a71e3d3222e5f1c (patch)
tree0d6ad5beec50c1395b29f4c0d22575633185ebc6 /lib/common.sh
parenta2e3dbe23e2ed0a85b9dd049fc45ec0b2bf9c3f4 (diff)
downloaddevtools32-a1a79ff77bb19166bd5631953a71e3d3222e5f1c.tar.xz
lib/common.sh: use gettext for WARNING/ERROR/done hardcoded text.
Diffstat (limited to 'lib/common.sh')
-rwxr-xr-x[-rw-r--r--]lib/common.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/common.sh b/lib/common.sh
index d6fbe7c..d1d958e 100644..100755
--- a/lib/common.sh
+++ b/lib/common.sh
@@ -40,12 +40,12 @@ msg2() {
warning() {
local mesg=$1; shift
- printf "${YELLOW}==> WARNING:${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2
+ printf "${YELLOW}==> $(gettext "WARNING:")${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2
}
error() {
local mesg=$1; shift
- printf "${RED}==> ERROR:${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2
+ printf "${RED}==> $(gettext "ERROR:")${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2
}
stat_busy() {
@@ -54,7 +54,7 @@ stat_busy() {
}
stat_done() {
- printf "${BOLD}done${ALL_OFF}\n" >&2
+ printf "${BOLD}$(gettext "done")${ALL_OFF}\n" >&2
}
_setup_workdir=false