summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/locale.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/locale.sh b/src/locale.sh
index 42c87f0..c667258 100644
--- a/src/locale.sh
+++ b/src/locale.sh
@@ -1,6 +1,6 @@
# Locale functions
#
-# Copyright (C) 2012, 2013 Patrick "P. J." McDermott
+# Copyright (C) 2012, 2013 Patrick McDermott
#
# This file is part of the ProteanOS Development Kit.
#
@@ -24,6 +24,7 @@ _try_load_locale()
{
local localedir="${1}"
local locale="${2}"
+ shift 2
local ms=
for ms in "${localedir}/${locale}/LC_MESSAGES/${TEXTDOMAIN}.ms" \
@@ -77,6 +78,7 @@ load_locale()
get_msg()
{
local msgid="${1}"
+ shift 1
eval "printf '%s' \"\${msg_${TEXTDOMAIN}_${msgid}}\""