aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1e5433a44..b5b69e6bf 100644
--- a/Makefile
+++ b/Makefile
@@ -146,6 +146,14 @@ endif
@$(PHP) ./cli/manipulate.translation.php -a ignore -k $(key) -l $(lang)
@echo Key ignored.
+.PHONY: i18n-key-exists
+i18n-key-exists: ## Check if a translation key exists
+ifndef key
+ @echo To check if a key exists, you need to provide one in the "key" variable.
+ @exit 10
+endif
+ @$(PHP) ./cli/manipulate.translation.php -a exist -k $(key)
+
###########
## TOOLS ##
###########