aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Ed Sandor <1273949+ewsandor@users.noreply.github.com> 2020-06-19 14:59:27 -0600
committerGravatar GitHub <noreply@github.com> 2020-06-19 22:59:27 +0200
commitbaaef3d9f4bdc81224620ab2f6b92575dcf81a59 (patch)
tree01a5d21ab64d4c058fa3f92a33441c07963ec3f5 /Makefile
parent9489cca1e3560e20614f73e5bfc570e8b6513b4a (diff)
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 <fransdejonge@gmail.com> * Update app/i18n/en-us/admin.php Co-authored-by: Frans de Jonge <fransdejonge@gmail.com> * Update app/i18n/en-us/admin.php Co-authored-by: Frans de Jonge <fransdejonge@gmail.com> * 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 <root@x-freshrss.lan.ewsandor.com> Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
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