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 fd5eccfdd..d19d40fa6 100644
--- a/Makefile
+++ b/Makefile
@@ -140,6 +140,14 @@ endif
@$(PHP) ./cli/manipulate.translation.php -a ignore -k $(key) -l $(lang)
@echo Key ignored.
+.PHONY: i18n-ignore-unmodified-keys
+i18n-ignore-unmodified-keys: ## Ignore all unmodified translation keys for the selected language
+ifndef lang
+ $(error To ignore unmodified keys, you need to provide a language in the "lang" variable)
+endif
+ @$(PHP) ./cli/manipulate.translation.php -a ignore_unmodified -l $(lang)
+ @echo Unmodified keys ignored.
+
.PHONY: i18n-key-exists
i18n-key-exists: ## Check if a translation key exists
ifndef key