mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
20 lines
666 B
Makefile
20 lines
666 B
Makefile
# i18n helpers
|
|
|
|
# Should be called as: i18n_for_locale basename locale
|
|
define i18n_for_locale
|
|
$(addprefix apps/, $(addprefix $(1), $(addprefix ., $(addsuffix .i18n,$(2)))))
|
|
endef
|
|
|
|
# Should be called as: i18n_without_universal_for basename
|
|
# Adds the basename.**.i18n for all locales in EPSILON_I18N
|
|
define i18n_without_universal_for
|
|
$(foreach LOCALE,$(EPSILON_I18N),$(call i18n_for_locale, $(1), $(LOCALE)))
|
|
endef
|
|
|
|
# Should be called as: i18n_with_universal_for basename
|
|
# Adds basename.**.i18n for all EPSILON_I18N locales + basename.universal.i18n
|
|
define i18n_with_universal_for
|
|
$(call i18n_without_universal_for,$(1))
|
|
$(call i18n_for_locale,$(1),universal)
|
|
endef
|