From 07c11ef392f058e9ce3b5d03062a4b94cb3009ff Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Tue, 6 Sep 2016 16:40:15 +0200 Subject: [PATCH] Generation of localized IDT files simplified --- UpdCheck/MSIBuild/Makefile | 30 ++++++++---------------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/UpdCheck/MSIBuild/Makefile b/UpdCheck/MSIBuild/Makefile index ebcd705..ab29a33 100644 --- a/UpdCheck/MSIBuild/Makefile +++ b/UpdCheck/MSIBuild/Makefile @@ -56,20 +56,13 @@ s$(MSIBUILD_LENGTH_ID) S$(MSIBUILD_LENGTH_ID) L64 L255 I2 i2 S$(MSIBUILD_LENGTH_ featUpdCheck $(UPDATER_FEATURE_ROOT) Automatic Updating Task for background product updating 1001 2 $(UPDATER_BIN_DIR) 8 < NUL - -"It.$(PLAT).$(CFG).Feature-2.idt" : "En.$(PLAT).$(CFG).Feature-2.idtx" "..\locale\it_IT.po" - rcxgettext.exe idtp $@ $** - -"Ru.$(PLAT).$(CFG).Feature-2.idt" : "En.$(PLAT).$(CFG).Feature-2.idtx" "..\locale\ru_RU.po" - rcxgettext.exe idtp $@ $** - -"Sl.$(PLAT).$(CFG).Feature-2.idt" : "En.$(PLAT).$(CFG).Feature-2.idtx" "..\locale\sl_SI.po" +!ELSE +"$(LANG).$(PLAT).$(CFG).Feature-2.idt" : "En.$(PLAT).$(CFG).Feature-2.idtx" "..\locale\$(MSIBUILD_LANG_PO).po" rcxgettext.exe idtp $@ $** +!ENDIF ###################################################################### @@ -118,20 +111,13 @@ s$(MSIBUILD_LENGTH_ID) l255 s255 S255 s$(MSIBUILD_LENGTH_ID) i4 i4 S255 S255 L25 stUpdCheck.$(PLAT) [SimpleProductName] Update [#fileUpdCheck.exe.$(PLAT)] $(UPDATER_BIN_DIR) 0 32 [Manufacturer] Regularly checks for program updates, downloads, and installs them -1 compUpdCheck.exe.$(PLAT) < NUL - -"It.$(PLAT).$(CFG).ScheduledTask-2.idt" : "En.$(PLAT).$(CFG).ScheduledTask-2.idtx" "..\locale\it_IT.po" - rcxgettext.exe idtp $@ $** - -"Ru.$(PLAT).$(CFG).ScheduledTask-2.idt" : "En.$(PLAT).$(CFG).ScheduledTask-2.idtx" "..\locale\ru_RU.po" - rcxgettext.exe idtp $@ $** - -"Sl.$(PLAT).$(CFG).ScheduledTask-2.idt" : "En.$(PLAT).$(CFG).ScheduledTask-2.idtx" "..\locale\sl_SI.po" +!ELSE +"$(LANG).$(PLAT).$(CFG).ScheduledTask-2.idt" : "En.$(PLAT).$(CFG).ScheduledTask-2.idtx" "..\locale\$(MSIBUILD_LANG_PO).po" rcxgettext.exe idtp $@ $** +!ENDIF ######################################################################