From 8b7ebc1dbe8d2cc5a124e1d81cb0bb13f3f410dc Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 25 Apr 2019 20:27:48 -0400 Subject: src/locale.sh: Shift func args, update copyright --- (limited to 'src') 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}}\"" -- cgit v0.9.1