Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
2e8fb580
Kaydet (Commit)
2e8fb580
authored
Ock 09, 2013
tarafından
David Tardon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
create dummy translation files to avoid delivery failures
Change-Id: Idf4a12987295e0454d0330d76f251e3dd00c8403
üst
d5b62872
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
13 deletions
+7
-13
UI.mk
solenv/gbuild/UI.mk
+7
-13
No files found.
solenv/gbuild/UI.mk
Dosyayı görüntüle @
2e8fb580
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment