summaryrefslogtreecommitdiff
path: root/src/lib/common.sh.top
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/common.sh.top')
-rw-r--r--src/lib/common.sh.top12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/common.sh.top b/src/lib/common.sh.top
index d59268d..c335956 100644
--- a/src/lib/common.sh.top
+++ b/src/lib/common.sh.top
@@ -11,3 +11,15 @@
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
+
+if [[ -z ${_INCLUDE_COMMON_SH:-} ]]; then
+_INCLUDE_COMMON_SH=true
+
+export TEXTDOMAIN='libretools'
+export TEXTDOMAINDIR='/usr/share/locale'
+
+if type gettext &>/dev/null; then
+ _() { gettext "$@"; }
+else
+ _() { echo "$@"; }
+fi