Use "echo" in case if gettext does not exist
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eCryptfs |
New
|
Undecided
|
Unassigned |
Bug Description
Ecryptfs-utils scripts uses gettext to show translated info/error messages, but
this might be overhead for some small simple systems where gettext
is not needed, so it would be great if the ecryptfs-utils might support the case
w/o using gettext tool, but use instead simple "echo" wrapper when gettext support
is not needed. The solution might be simple - have some common ecryptfs-functions
script which is included by other and checks at runtime if gettext exists (by
which command) - if does not, then use some simple "echo" wrapper for example:
-------
#! /bin/sh
GETTEXT_PROG=""
gettext() {
if [ -z "${GETTEXT_PROG}" ]; then
if [ $? != 0 ]; then
fi
fi
${GETTEXT_PROG} "$@"
}
-------
tags: | added: feature |