]> git.plutz.net Git - shellwiki/commitdiff
bugfix: use default _() function when translations are disabled
authorPaul Hänsch <paul@plutz.net>
Thu, 24 Aug 2023 19:19:25 +0000 (21:19 +0200)
committerPaul Hänsch <paul@plutz.net>
Thu, 24 Aug 2023 19:19:25 +0000 (21:19 +0200)
handlers/10_translations.sh

index 642d9c382030137b1b49fb680b363a0ef5c1a887..5067677ac4db48107ee0d433ca93d9970f475a56 100755 (executable)
@@ -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