From 116abbac795c2cb62ed4e4a613e4722ee52cb13e Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 25 Apr 2020 23:25:46 +0200 Subject: TDE-i18n + Eclass: Add and use new `L10N function`. Credits @ormorph. Signed-off-by: Chris --- eclass/trinity-functions-2.eclass | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'eclass') diff --git a/eclass/trinity-functions-2.eclass b/eclass/trinity-functions-2.eclass index 102e4e6d..eff5a0fa 100644 --- a/eclass/trinity-functions-2.eclass +++ b/eclass/trinity-functions-2.eclass @@ -180,3 +180,18 @@ need-arts() { DEPEND+=" ${my_depend}"; RDEPEND+=" ${my_depend}"; } + +trinity_l10n_for_each_locale_do() { + local locs x + + for x in ${TRINITY_LANGS} + do + if has ${x} ${L10N} ; then + locs+=" ${x}" + fi + done + + for x in ${locs}; do + "${@}" ${x} || die "failed to process enabled ${x} locale" + done +} \ No newline at end of file -- cgit v1.2.1