summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-25 20:27:48 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-25 20:27:48 (EDT)
commit8b7ebc1dbe8d2cc5a124e1d81cb0bb13f3f410dc (patch)
tree7a8abd5be1ccfb063ab424108fd568fe774090e0 /src
parent7027ace227e3cab9f9d4de1df74721abcf7effa1 (diff)
src/locale.sh: Shift func args, update copyright
Diffstat (limited to 'src')
-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}}\""