From baaef3d9f4bdc81224620ab2f6b92575dcf81a59 Mon Sep 17 00:00:00 2001 From: Ed Sandor <1273949+ewsandor@users.noreply.github.com> Date: Fri, 19 Jun 2020 14:59:27 -0600 Subject: 3041 en us localization (#3060) * Initial locaization from international english to United States English examples: favourite -> favorite optimise -> optimize occured -> occurred labelled -> labelled ok -> okay * More spelling corrections default English occured->occurred cancelled -> canceled labelled -> labeled * Undo key spelling change * i18n format and admin.php translating * Translating admin.php * more admin.php translating * Translating conf.php * Translating feedback.php and format command * Translating gen.php * Translating index.php * Translating sub.php * Translating user.php * Translating install.php * Fix 'there is no idle feed' * FIx 'there is no feed to refresh" * Add i18n manipulation option to ignore all unmodified translation keys * Lint fixes * Update keys newly add since original branch * Revert unintenntional ru 'translation' * Code review revisions * Fix leading whitespace in ignore_unmodified api * Update app/i18n/en-us/gen.php Co-authored-by: Frans de Jonge * Update app/i18n/en-us/admin.php Co-authored-by: Frans de Jonge * Update app/i18n/en-us/admin.php Co-authored-by: Frans de Jonge * Update error message for Make ignore-unmodified keys to use Make syntax. (inline with 3062) Also rename ignore-unmodifed-key -> ignore-unmodified-keys * Replace makefile leading spaces with tabs * Code review revisions * Retab added php functions * Missed tab replace * Remove stray '-> todo' Co-authored-by: root Co-authored-by: Frans de Jonge --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3