logo

badwolf

minimalist and privacy-oriented web browser based on WebKitGTK git clone https://anongit.hacktivis.me/git/badwolf.git/
commit: f07f4e2ed3d61e7f46626e3615a148bcc36ffc61
parent a7a4174807a1ba2693fb44cd41c478f5554f03ca
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat, 18 Oct 2025 19:20:01 +0200

configure: allow to disable translations with ENABLE_NLS=0

Diffstat:

Mconfigure37+++++++++++++++++++++++--------------
1 file changed, 23 insertions(+), 14 deletions(-)

diff --git a/configure b/configure @@ -53,6 +53,7 @@ Variables: WITH_WEBKITGTK=(4.0|4.1) WITH_URI_PARSER=(guri|libsoup2) + ENABLE_NLS=0|1 Variables are set in the following order: Default, Environment, Arguments @@ -98,7 +99,7 @@ MANDOC="${MANDOC:-mandoc}" SHELLCHECK="${SHELLCHECK:-shellcheck}" FLAWFINDER="${FLAWFINDER:-flawfinder}" REUSE="${REUSE:-reuse}" - +ENABLE_NLS="${ENABLE_NLS:-1}" # Also allow variables through arguments for i; do @@ -161,21 +162,29 @@ else MANDOC="true" fi -printf 'Checking %s command existence ...' "${XGETTEXT}" -if command -v "${XGETTEXT}" >/dev/null ; is_ok -then - : -else - echo 'Warning: translation updates disabled' - XGETTEXT="true" -fi +if test 1 -eq $ENABLE_NLS; then + printf 'Checking %s command existence ...' "${XGETTEXT}" + if command -v "${XGETTEXT}" >/dev/null ; is_ok + then + : + else + echo 'Warning: translation updates disabled' + XGETTEXT="true" + fi -printf 'Checking %s command existence ...' "${MSGMERGE}" -if command -v "${MSGMERGE}" >/dev/null ; is_ok -then - : + printf 'Checking %s command existence ...' "${MSGMERGE}" + if command -v "${MSGMERGE}" >/dev/null ; is_ok + then + : + else + echo 'Warning: translation updates disabled' + MSGMERGE="true" + fi else - echo 'Warning: translation updates disabled' + echo 'notice: translations disabled' + TRANS="" + TRANS_MAN="" + XGETTEXT="true" MSGMERGE="true" fi