diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2013-11-27 13:50:08 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2013-11-27 14:32:44 +0100 |
commit | 95434a81c320717cd29c2aebc91a750c547f6c62 (patch) | |
tree | f4b5c8d6ef99205d5ac7a677d7aae7d6eed35f6d | |
parent | cc7eb173a3b7faa81ea9dc1835f00df4375f5f4d (diff) |
add uiconfig file translations
Change-Id: I9bb39bdd677af4be0da621370c51eb9e22ecc33f
-rw-r--r-- | solenv/gbuild/UIConfig.mk | 3 | ||||
-rw-r--r-- | solenv/gbuild/extensions/post_PackageInfo.mk | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/solenv/gbuild/UIConfig.mk b/solenv/gbuild/UIConfig.mk index 657d3625720a..07e6a13225c1 100644 --- a/solenv/gbuild/UIConfig.mk +++ b/solenv/gbuild/UIConfig.mk @@ -305,12 +305,15 @@ $(call gb_UIConfig__add_translations,$(1),$(2),\ endef + +gb_UIConfig_ALLFILES:= # Adds .ui file to the package # # The file is relative to $(SRCDIR) and without extension. # # gb_UIConfig_add_uifile target uifile define gb_UIConfig_add_uifile +gb_UIConfig_ALLFILES+=$(1):$(notdir $(2)) $(call gb_UIConfig__add_uifile,$(1),$(2)) ifneq ($(gb_UIConfig_LANGS),) diff --git a/solenv/gbuild/extensions/post_PackageInfo.mk b/solenv/gbuild/extensions/post_PackageInfo.mk index c83b8c8dd56f..9c1caec98743 100644 --- a/solenv/gbuild/extensions/post_PackageInfo.mk +++ b/solenv/gbuild/extensions/post_PackageInfo.mk @@ -54,10 +54,16 @@ define gb_PackageInfo_emit_l10n_for_one_ressource endef +define gb_PackageInfo_emit_l10n_for_one_uifile +@echo "$(gb_UIConfig_INSTDIR)/$(2)/ui/res/$(1)/$(3)" >> $(gb_PackageInfo_get_target)/l10n-$(1).files + +endef + define gb_PackageInfo_emit_l10n_for_one_lang @touch $(foreach suf,executables libraries files,$(gb_PackageInfo_get_target)/l10n-$(1).$(suf)) $(if $(filter-out qtz en-US,$(1)),$(foreach packagedir,$(patsubst %/,%,$(gb_AllLangPackage_ALLDIRS)),$(call gb_PackageInfo_emit_l10n_for_one_alllangpackage,$(packagedir),$(1)))) $(if $(filter $(gb_AllLangResTarget_LANGS),$(1)),$(foreach target,$(gb_AllLangResTarget_ALLTARGETS),$(call gb_PackageInfo_emit_l10n_for_one_ressource,$(target),$(1)))) +$(foreach uifile,$(gb_UIConfig_ALLFILES),$(call gb_PackageInfo_emit_l10n_for_one_uifile,$(1),$(firstword $(subst :,$(WHITESPACE),$(uifile))),$(lastword $(subst :,$(WHITESPACE),$(uifile))))) endef |