Make qtz work in UI
Change-Id: Iced0b874405942782574fe46b58c3caafb2deeb4
This commit is contained in:
@@ -36,12 +36,12 @@ readlicense_oo_README_XRM := $(readlicense_oo_DIR)/readme.xrm
|
||||
$(readlicense_oo_DIR)/readme.xrm : \
|
||||
$(SRCDIR)/readlicense_oo/docs/readme.xrm \
|
||||
$(readlicense_XRMEXTARGET) \
|
||||
$(foreach lang,$(filter-out en-US,$(gb_WITH_LANG)),$(gb_POLOCATION)/$(lang)/readlicense_oo/docs.po) \
|
||||
$(foreach lang,$(filter-out qtz,$(filter-out en-US,$(gb_WITH_LANG))),$(gb_POLOCATION)/$(lang)/readlicense_oo/docs.po) \
|
||||
| $(readlicense_oo_DIR)/.dir
|
||||
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),XRM,1)
|
||||
$(call gb_Helper_abbreviate_dirs, \
|
||||
MERGEINPUT=`$(gb_MKTEMP)` && \
|
||||
echo $(foreach lang,$(filter-out en-US,$(gb_WITH_LANG)),$(gb_POLOCATION)/$(lang)/readlicense_oo/docs.po) > $${MERGEINPUT} && \
|
||||
echo $(foreach lang,$(filter-out qtz,$(filter-out en-US,$(gb_WITH_LANG))),$(gb_POLOCATION)/$(lang)/readlicense_oo/docs.po) > $${MERGEINPUT} && \
|
||||
$(readlicense_XRMEXCOMMAND) \
|
||||
-p readlicense_oo \
|
||||
-i $< \
|
||||
|
@@ -73,7 +73,7 @@ $(call gb_SrsPartMergeTarget_get_target,%) : $(SRCDIR)/% $(gb_Helper_MISCDUMMY)
|
||||
mkdir -p $(dir $@) && cp $< $@)
|
||||
|
||||
define gb_SrsPartMergeTarget_SrsPartMergeTarget
|
||||
$(call gb_SrsPartMergeTarget__SrsPartMergeTarget_impl,$(1),$(if $(2),$(foreach lang,$(filter-out en-US,$(gb_WITH_LANG)),$(gb_POLOCATION)/$(lang)/$(patsubst %/,%,$(dir $(1))).po)))
|
||||
$(call gb_SrsPartMergeTarget__SrsPartMergeTarget_impl,$(1),$(if $(2),$(foreach lang,$(filter-out qtz,$(filter-out en-US,$(gb_WITH_LANG))),$(gb_POLOCATION)/$(lang)/$(patsubst %/,%,$(dir $(1))).po)))
|
||||
endef
|
||||
|
||||
define gb_SrsPartMergeTarget__SrsPartMergeTarget_impl
|
||||
|
@@ -247,6 +247,7 @@ $(call gb_XcuLangpackTarget_get_outdir_target,%) :
|
||||
|
||||
gb_XcuMergeTarget_CFGEXTARGET := $(call gb_Executable_get_target_for_build,cfgex)
|
||||
gb_XcuMergeTarget_CFGEXCOMMAND := $(gb_Helper_set_ld_path) $(gb_XcuMergeTarget_CFGEXTARGET)
|
||||
gb_XcuMergeTarget_LANGS := $(filter-out qtz,$(filter-out en-US,$(gb_WITH_LANG)))
|
||||
|
||||
# PRJNAME is computed from the stem (parameter $(2))
|
||||
define gb_XcuMergeTarget__command
|
||||
@@ -279,10 +280,10 @@ $(call gb_XcuMergeTarget_get_clean_target,%) :
|
||||
define gb_XcuMergeTarget_XcuMergeTarget
|
||||
$(call gb_XcuMergeTarget_get_target,$(1)) : \
|
||||
$(call gb_Configuration__get_source,$(2),$(3)/$(4)) \
|
||||
$(wildcard $(foreach lang,$(filter-out en-US,$(gb_WITH_LANG)),$(gb_POLOCATION)/$(lang)/$(patsubst %/,%,$(dir $(1))).po))
|
||||
$(wildcard $(foreach lang,$(gb_XcuMergeTarget_LANGS),$(gb_POLOCATION)/$(lang)/$(patsubst %/,%,$(dir $(1))).po))
|
||||
$(call gb_XcuMergeTarget_get_target,$(1)) : \
|
||||
POFILES := $(foreach lang,$(filter-out en-US,$(gb_WITH_LANG)),$(gb_POLOCATION)/$(lang)/$(patsubst %/,%,$(dir $(1))).po)
|
||||
$(foreach lang,$(filter-out en-US,$(gb_WITH_LANG)),$(gb_POLOCATION)/$(lang)/$(patsubst %/,%,$(dir $(1))).po) :
|
||||
POFILES := $(foreach lang,$(gb_XcuMergeTarget_LANGS),$(gb_POLOCATION)/$(lang)/$(patsubst %/,%,$(dir $(1))).po)
|
||||
$(foreach lang,$(gb_XcuMergeTarget_TRANS_LANG),$(gb_POLOCATION)/$(lang)/$(patsubst %/,%,$(dir $(1))).po) :
|
||||
endef
|
||||
|
||||
|
||||
|
@@ -148,10 +148,10 @@ $(call gb_ExtensionTarget_get_workdir,$(1))/description.xml :| \
|
||||
|
||||
ifneq ($(strip $(gb_WITH_LANG)),)
|
||||
$(call gb_ExtensionTarget_get_target,$(1)) : \
|
||||
POFILES := $(foreach lang,$(gb_ExtensionTarget_TRANS_LANGS),$(gb_POLOCATION)/$(lang)/$(2).po)
|
||||
POFILES := $(foreach lang,$(filter-out qtz,$(gb_ExtensionTarget_TRANS_LANGS)),$(gb_POLOCATION)/$(lang)/$(2).po)
|
||||
$(call gb_ExtensionTarget_get_workdir,$(1))/description.xml : \
|
||||
$(foreach lang,$(gb_ExtensionTarget_TRANS_LANGS),$(gb_POLOCATION)/$(lang)/$(2).po)
|
||||
$(foreach lang,$(gb_ExtensionTarget_TRANS_LANGS),$(gb_POLOCATION)/$(lang)/$(2).po) :
|
||||
$(foreach lang,$(filter-out qtz,$(gb_ExtensionTarget_TRANS_LANGS)),$(gb_POLOCATION)/$(lang)/$(2).po)
|
||||
$(foreach lang,$(filter-out qtz,$(gb_ExtensionTarget_TRANS_LANGS)),$(gb_POLOCATION)/$(lang)/$(2).po) :
|
||||
endif
|
||||
|
||||
$(foreach lang,$(gb_ExtensionTarget_ALL_LANGS), \
|
||||
@@ -240,7 +240,7 @@ ifneq ($(ENABLE_RELEASE_BUILD),TRUE)
|
||||
$(call gb_ExtensionTarget_localize_properties_onelang,$(1),$(subst en_US,qtz,$(2)),$(3),qtz,$(firstword $(filter-out en-US,$(gb_ExtensionTarget_ALL_LANGS))))
|
||||
endif
|
||||
endif
|
||||
$(foreach lang,$(gb_ExtensionTarget_ALL_LANGS),\
|
||||
$(foreach lang,$(filter-out qtz,$(gb_ExtensionTarget_ALL_LANGS)),\
|
||||
$(call gb_ExtensionTarget_localize_properties_onelang,$(1),$(subst en_US,$(subst -,_,$(lang)),$(2)),$(3),$(lang)))
|
||||
endef
|
||||
|
||||
@@ -280,7 +280,7 @@ endef
|
||||
# (i.e., if $(4) is empty the en-US source file is $(2)/$(3), otherwise it
|
||||
# is $(2)/$(4))
|
||||
define gb_ExtensionTarget_add_helpfile
|
||||
$(foreach lang,$(gb_ExtensionTarget_ALL_LANGS), \
|
||||
$(foreach lang,$(filter-out qtz,$(gb_ExtensionTarget_ALL_LANGS)), \
|
||||
$(call gb_ExtensionTarget__localize_helpfile_onelang,$(1),$(2),$(3),$(4),$(lang)) \
|
||||
$(call gb_ExtensionTarget__add_compiled_help_dependency_onelang,$(1),$(lang)))
|
||||
endef
|
||||
@@ -294,7 +294,7 @@ endef
|
||||
# $(4): relative path of source help.tree file
|
||||
# $(5): relative path of localized xhp files (PlatformID included)
|
||||
define gb_ExtensionTarget_add_helptreefile
|
||||
$(foreach lang,$(gb_ExtensionTarget_ALL_LANGS), \
|
||||
$(foreach lang,$(filter-out qtz,$(gb_ExtensionTarget_ALL_LANGS)), \
|
||||
$(call gb_ExtensionTarget__localize_helptreefile_onelang,$(1),$(2),$(3),$(4),$(lang),$(5)) \
|
||||
$(call gb_ExtensionTarget__add_compiled_help_dependency_onelang,$(1),$(lang)))
|
||||
endef
|
||||
|
@@ -113,6 +113,7 @@ endef
|
||||
|
||||
gb_ScpMergeTarget_TARGET := $(call gb_Executable_get_target_for_build,ulfex)
|
||||
gb_ScpMergeTarget_COMMAND := $(gb_Helper_set_ld_path) $(gb_ScpMergeTarget_TARGET)
|
||||
gb_ScpMergeTarget_LANGS := $(filter-out qtz,$(filter-out en-US,$(gb_WITH_LANG)))
|
||||
|
||||
gb_ScpMergeTarget_get_source = $(SRCDIR)/$(1).ulf
|
||||
|
||||
@@ -143,10 +144,10 @@ $(call gb_ScpMergeTarget_get_target,$(1)) : SCP_SOURCE := $(call gb_ScpMergeTarg
|
||||
$(call gb_ScpMergeTarget_get_target,$(1)) : $(call gb_ScpMergeTarget_get_source,$(1))
|
||||
$(call gb_ScpMergeTarget_get_target,$(1)) :| $(dir $(call gb_ScpMergeTarget_get_target,$(1))).dir
|
||||
$(call gb_ScpMergeTarget_get_target,$(1)) : \
|
||||
SCP_POFILES := $(foreach lang,$(filter-out en-US,$(gb_WITH_LANG)),$(gb_POLOCATION)/$(lang)/$(patsubst %/,%,$(dir $(1))).po)
|
||||
SCP_POFILES := $(foreach lang,$(gb_ScpMergeTarget_LANGS),$(gb_POLOCATION)/$(lang)/$(patsubst %/,%,$(dir $(1))).po)
|
||||
$(call gb_ScpMergeTarget_get_target,$(1)) : \
|
||||
$(foreach lang,$(filter-out en-US,$(gb_WITH_LANG)),$(gb_POLOCATION)/$(lang)/$(patsubst %/,%,$(dir $(1))).po)
|
||||
$(foreach lang,$(filter-out en-US,$(gb_WITH_LANG)),$(gb_POLOCATION)/$(lang)/$(patsubst %/,%,$(dir $(1))).po) :
|
||||
$(foreach lang,$(gb_ScpMergeTarget_LANGS),$(gb_POLOCATION)/$(lang)/$(patsubst %/,%,$(dir $(1))).po)
|
||||
$(foreach lang,$(gb_ScpMergeTarget_TRANS_LANGS),$(gb_POLOCATION)/$(lang)/$(patsubst %/,%,$(dir $(1))).po) :
|
||||
|
||||
endef
|
||||
|
||||
|
@@ -13,6 +13,7 @@ gb_UILocalizeTarget_WORKDIR := $(WORKDIR)/UILocalizeTarget
|
||||
|
||||
gb_UILocalizeTarget_TARGET := $(call gb_Executable_get_target_for_build,uiex)
|
||||
gb_UILocalizeTarget_COMMAND := $(gb_Helper_set_ld_path) $(gb_UILocalizeTarget_TARGET)
|
||||
gb_UILocalizeTarge_LANGS := $(filter-out qtz,$(filter-out en-US,$(gb_WITH_LANG)))
|
||||
|
||||
define gb_UILocalizeTarget__command
|
||||
$(call gb_Output_announce,$(2),$(true),UIX,1)
|
||||
@@ -45,15 +46,15 @@ $(call gb_UILocalizeTarget_get_clean_target,%) :
|
||||
#
|
||||
# gb_UILocalizeTarget_UILocalizeTarget target source lang
|
||||
define gb_UILocalizeTarget_UILocalizeTarget
|
||||
$(call gb_UILocalizeTarget_get_target,$(1)) : POFILES := $(foreach lang,$(gb_UITarget_LANGS),$(gb_POLOCATION)/$(lang)/$(patsubst %/,%,$(dir $(2))).po)
|
||||
$(call gb_UILocalizeTarget_get_target,$(1)) : POFILES := $(foreach lang,$(gb_UILocalizeTarge_LANGS),$(gb_POLOCATION)/$(lang)/$(patsubst %/,%,$(dir $(2))).po)
|
||||
$(call gb_UILocalizeTarget_get_target,$(1)) : UI_FILE := $(SRCDIR)/$(2).ui
|
||||
$(call gb_UILocalizeTarget_get_target,$(1)) : UI_LANG := $(3)
|
||||
|
||||
$(call gb_UILocalizeTarget_get_target,$(1)) : $(foreach lang,$(gb_UITarget_LANGS),$(gb_POLOCATION)/$(lang)/$(patsubst %/,%,$(dir $(2))).po)
|
||||
$(call gb_UILocalizeTarget_get_target,$(1)) : $(foreach lang,$(gb_UILocalizeTarge_LANGS),$(gb_POLOCATION)/$(lang)/$(patsubst %/,%,$(dir $(2))).po)
|
||||
$(call gb_UILocalizeTarget_get_target,$(1)) : $(SRCDIR)/$(2).ui
|
||||
$(call gb_UILocalizeTarget_get_target,$(1)) :| $(dir $(call gb_UILocalizeTarget_get_target,$(1))).dir
|
||||
|
||||
$(foreach lang,$(gb_UITarget_LANGS),$(gb_POLOCATION)/$(lang)/$(patsubst %/,%,$(dir $(2))).po) :
|
||||
$(foreach lang,$(gb_UILocalizeTarge_LANGS),$(gb_POLOCATION)/$(lang)/$(patsubst %/,%,$(dir $(2))).po) :
|
||||
endef
|
||||
|
||||
# class UITarget
|
||||
|
@@ -26,4 +26,8 @@ else
|
||||
gb_WITH_LANG=$(completelangiso)
|
||||
endif
|
||||
|
||||
ifneq ($(ENABLE_RELEASE_BUILD),TRUE)
|
||||
gb_WITH_LANG += qtz
|
||||
endif
|
||||
|
||||
# vim: set noet ts=4 sw=4:
|
||||
|
Reference in New Issue
Block a user