Kaydet (Commit) 2e8fb580 authored tarafından David Tardon's avatar David Tardon

create dummy translation files to avoid delivery failures

Change-Id: Idf4a12987295e0454d0330d76f251e3dd00c8403
üst d5b62872
...@@ -17,17 +17,14 @@ gb_UILocalizeTarget_DEPS := $(call gb_Executable_get_runtime_dependencies,uiex) ...@@ -17,17 +17,14 @@ gb_UILocalizeTarget_DEPS := $(call gb_Executable_get_runtime_dependencies,uiex)
gb_UILocalizeTarget_COMMAND := $(call gb_Executable_get_command,uiex) gb_UILocalizeTarget_COMMAND := $(call gb_Executable_get_command,uiex)
# If translatable strings from a .ui file are not merged into the # If translatable strings from a .ui file are not merged into the
# respective .po file yet, the produced translated files are empty (that # respective .po file yet, the produced translated files are empty,
# is, they only contain the root element), but qtz is not created at all
# which breaks delivery. This hack avoids the problem by creating a # which breaks delivery. This hack avoids the problem by creating a
# dummy translation file. # dummy translation file.
define gb_UILocalizeTarget__fix_missing_qtz $(call gb_UILocalizeTarget_get_workdir,%).ui :
$(if $(filter qtz,$(gb_WITH_LANG)),\ $(if $(wildcard $@) \
&& if [ ! -f $(1)/qtz.ui ]; then \ ,touch $@ \
echo '<?xml version="1.0"?><t></t>' > $(1)/qtz.ui; \ ,echo '<?xml version="1.0"?><t></t>' > $@ \
fi \ )
)
endef
define gb_UILocalizeTarget__command define gb_UILocalizeTarget__command
$(call gb_Output_announce,$(2),$(true),UIX,1) $(call gb_Output_announce,$(2),$(true),UIX,1)
...@@ -39,7 +36,6 @@ $(call gb_Helper_abbreviate_dirs,\ ...@@ -39,7 +36,6 @@ $(call gb_Helper_abbreviate_dirs,\
-o $(call gb_UILocalizeTarget_get_workdir,$(2)) \ -o $(call gb_UILocalizeTarget_get_workdir,$(2)) \
-l all \ -l all \
-m $${MERGEINPUT} \ -m $${MERGEINPUT} \
$(call gb_UILocalizeTarget__fix_missing_qtz,$(call gb_UILocalizeTarget_get_workdir,$(2))) \
&& touch $(1) \ && touch $(1) \
) && \ ) && \
rm -rf $${MERGEINPUT} rm -rf $${MERGEINPUT}
...@@ -65,7 +61,7 @@ $(call gb_UILocalizeTarget_get_clean_target,%) : ...@@ -65,7 +61,7 @@ $(call gb_UILocalizeTarget_get_clean_target,%) :
# #
# gb_UILocalizeTarget_UILocalizeTarget target # gb_UILocalizeTarget_UILocalizeTarget target
define gb_UILocalizeTarget_UILocalizeTarget define gb_UILocalizeTarget_UILocalizeTarget
$(call gb_UILocalizeTarget__UILocalizeTarget_impl,$(1),$(foreach lang,$(gb_TRANS_LANGS),$(gb_POLOCATION)/$(lang)/$(patsubst %/,%,$(dir $(1))).po)) $(call gb_UILocalizeTarget__UILocalizeTarget_impl,$(1),$(wildcard $(foreach lang,$(gb_TRANS_LANGS),$(gb_POLOCATION)/$(lang)/$(patsubst %/,%,$(dir $(1))).po)))
endef endef
...@@ -80,8 +76,6 @@ $(call gb_UILocalizeTarget_get_target,$(1)) :| \ ...@@ -80,8 +76,6 @@ $(call gb_UILocalizeTarget_get_target,$(1)) :| \
$(dir $(call gb_UILocalizeTarget_get_target,$(1))).dir \ $(dir $(call gb_UILocalizeTarget_get_target,$(1))).dir \
$(call gb_UILocalizeTarget_get_workdir,$(1))/.dir $(call gb_UILocalizeTarget_get_workdir,$(1))/.dir
$(2) :
endef endef
# class UI # class UI
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment