From 19dff502e8d78c56a1a8a09e9b9d27f304839a6e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Thu, 24 Aug 2023 21:19:25 +0200 Subject: [PATCH] bugfix: use default _() function when translations are disabled --- handlers/10_translations.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2