From 8c4d71da2ef1366c8fcd3e7dfb7f4566d2f905f4 Mon Sep 17 00:00:00 2001 From: Alexis Degrugillier Date: Fri, 5 Jun 2020 20:16:04 +0200 Subject: 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 --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Makefile') 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 ## ########### -- cgit v1.2.3