diff options
author | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2021-12-22 17:48:11 +0100 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2021-12-22 23:06:41 +0100 |
commit | 4cae99b99e9853c5b1e64dac1926ecd718982409 (patch) | |
tree | 6f0ee378e04630d6e0502422548c0680b809689e /solenv/inc | |
parent | b85e99950dc4584160512cffec303827c02f2d15 (diff) |
janitorial: the lang definitions aren't really an optional part of gbuild
furthermore there's no need to keep them separate to fit dmake anymore,
so lump together what goes together...
Change-Id: Ic0377a322100c20352e211e53a670a9b0b227ab4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127332
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'solenv/inc')
-rw-r--r-- | solenv/inc/langlist.mk | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/solenv/inc/langlist.mk b/solenv/inc/langlist.mk index 54e2666fc8a9..bae4c50434c8 100644 --- a/solenv/inc/langlist.mk +++ b/solenv/inc/langlist.mk @@ -136,3 +136,36 @@ xh \ zh-CN \ zh-TW \ zu + +ifneq ($(WITH_LANG),ALL) +gb_WITH_LANG=$(WITH_LANG) +else +# expand ALL based on language list) +gb_WITH_LANG=$(completelangiso) +endif +gb_HELP_LANGS := en-US + +ifneq ($(ENABLE_RELEASE_BUILD),TRUE) +ifneq ($(WITH_LANG),) +gb_WITH_LANG += qtz +gb_HELP_LANGS += qtz +endif +endif + +gb_TRANS_LANGS = $(filter-out en-US,$(filter-out qtz,$(gb_WITH_LANG))) + +gb_HELP_LANGS += \ + $(foreach lang,$(filter-out $(WITH_POOR_HELP_LOCALIZATIONS),$(gb_TRANS_LANGS)),\ + $(if \ + $(and \ + $(wildcard $(SRCDIR)/helpcontent2/source/auxiliary/$(lang)),\ + $(wildcard $(SRCDIR)/translations/source/$(lang)/helpcontent2)),\ + $(lang))) + +# Langs that need special handling for registry files. This is done by +# MAKE_LANG_SPECIFIC flag in scp. +gb_CJK_LANGS := $(filter $(gb_WITH_LANG),ja ko zh-CN zh-TW) +gb_CTL_LANGS := $(filter $(gb_WITH_LANG),ar bo dz fa gu he hi km ky-CN lo my ne or pa-IN ta th) +gb_CTLSEQCHECK_LANGS := $(filter $(gb_CTL_LANGS),km lo th) + +# vim: set noet ts=4 sw=4: |