From: Paul Hänsch Date: Thu, 24 Aug 2023 19:19:25 +0000 (+0200) Subject: bugfix: use default _() function when translations are disabled X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;ds=sidebyside;h=19dff502e8d78c56a1a8a09e9b9d27f304839a6e;p=shellwiki bugfix: use default _() function when translations are disabled --- diff --git a/handlers/10_translations.sh b/handlers/10_translations.sh index 642d9c3..5067677 100755 --- a/handlers/10_translations.sh +++ b/handlers/10_translations.sh @@ -1,5 +1,7 @@ #!/bin/sh +_(){ printf %s\\n "$*"; } + # Set LANGUAGE_DEFAULT to enable Plugin [ ! "$LANGUAGE_DEFAULT" ] && return 1 @@ -69,7 +71,6 @@ case ${PATH_INFO} in ;; esac -_(){ printf %s\\n "$*"; } [ -r "${_EXEC}/l10n/${LANGUAGE}.sh" ] && . "${_EXEC}/l10n/${LANGUAGE}.sh" return 1