Added missing i18n for 2 lastest check functions.
All checks were successful
Run test asserts / Test-Asserts (push) Successful in 8s

This commit is contained in:
Willem Cazander 2024-07-16 17:36:22 +02:00
parent 729023d32b
commit 5f25388ec7
5 changed files with 14 additions and 2 deletions

View file

@ -1,12 +1,12 @@
define mb-make-check-variable
$(MB_   )$(if $($(1)),,$(error $(1): Is empty))
$(MB_   )$(if $($(1)),,$(error $(1): $(MB_I18N_MAKE_CHECK_VARIABLE)))
endef
$(call mb-make-call,mb-doc-function-deep,mb-make-check-variable,"Checks that a variable is not empty.","<variable>")
define mb-make-check-value-valid
$(MB_   )$(if $(filter $(2),$(3)),,$(error $(1): $(2) Is not valid, options are: $(3)))
$(MB_   )$(if $(filter $(2),$(3)),,$(error $(1): $(MB_I18N_MAKE_CHECK_VALUE_VALID) $(2) $(3)))
endef
$(call mb-make-call,mb-doc-function-deep,mb-make-check-value-valid,"Checks that a value is valid.","<value> <valid-values>")