aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <aledeg@users.noreply.github.com> 2020-06-05 20:16:04 +0200
committerGravatar GitHub <noreply@github.com> 2020-06-05 20:16:04 +0200
commit8c4d71da2ef1366c8fcd3e7dfb7f4566d2f905f4 (patch)
tree91c820081a54f8f4fd8f5832a02c4f5e83fc6cde /Makefile
parent36bda2e715ed822cc495ff419ad565084e241f43 (diff)
Add missing translations (#3034)
* Add missing translations * Add a simple way to check if an i18n key exists There is a rule in the makefile to access it directly
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 ##
###########