summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/locale.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/locale.sh b/lib/locale.sh
index 3398e58..76d2d9b 100644
--- a/lib/locale.sh
+++ b/lib/locale.sh
@@ -18,9 +18,7 @@
# along with the ProteanOS Development Kit. If not, see
# <http://www.gnu.org/licenses/>.
-LOCALEDIR='@localedir@'
DEFAULT_LOCALE='en_US'
-TEXT_DOMAIN='@textdomain@'
load_locale()
{
@@ -63,7 +61,7 @@ get_msg()
{
local msgid="${1}"
- eval "printf '%s' \"\${msg_${TEXT_DOMAIN}_${msgid}}\""
+ eval "printf '%s' \"\${msg_${TEXTDOMAIN}_${msgid}}\""
return 0
}
@@ -74,7 +72,7 @@ _try_load_locale()
local locale="${2}"
local ms=
- for ms in "${localedir}/${locale}/LC_MESSAGES/${TEXT_DOMAIN}.ms" \
+ for ms in "${localedir}/${locale}/LC_MESSAGES/${TEXTDOMAIN}.ms" \
"${localedir}/${locale}.ms"; do
if [ -f "${ms}" ]; then
. "${ms}"