summaryrefslogtreecommitdiffstats
path: root/eclass
diff options
context:
space:
mode:
authorChris <xchrisx@uber.space>2020-04-25 23:25:46 +0200
committerTDE Gitea <gitea@mirror.git.trinitydesktop.org>2020-04-27 17:28:51 +0000
commit116abbac795c2cb62ed4e4a613e4722ee52cb13e (patch)
tree130ccf23da33b6b44c5a9bc40386e7484c12efbc /eclass
parent7d82feea3cd52b87634c32adfc2df8d0f23c2548 (diff)
downloadtde-packaging-gentoo-116abbac795c2cb62ed4e4a613e4722ee52cb13e.tar.gz
tde-packaging-gentoo-116abbac795c2cb62ed4e4a613e4722ee52cb13e.zip
TDE-i18n + Eclass: Add and use new `L10N function`.
Credits @ormorph. Signed-off-by: Chris <xchrisx@uber.space>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/trinity-functions-2.eclass15
1 files changed, 15 insertions, 0 deletions
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