diff options
author | Andras Timar <atimar@suse.com> | 2011-10-31 15:51:35 +0100 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2011-10-31 15:52:36 +0100 |
commit | d5486145c510de842a17f906fd8a7119d30d9993 (patch) | |
tree | ac9d113c7cd2d4d3cb6f2cf71ee0e5e6b4974af7 /reportbuilder | |
parent | 79228bb177bc9ebe847509d761630663b9c488ef (diff) |
enable localization of extension description in reportbuilder
Diffstat (limited to 'reportbuilder')
-rw-r--r--[-rwxr-xr-x] | reportbuilder/util/description-en-US.txt (renamed from reportbuilder/util/component.txt) | 0 | ||||
-rw-r--r-- | reportbuilder/util/description.xml | 2 | ||||
-rw-r--r-- | reportbuilder/util/makefile.mk | 21 | ||||
-rw-r--r--[-rwxr-xr-x] | reportbuilder/util/makefile.pmk | 0 |
4 files changed, 15 insertions, 8 deletions
diff --git a/reportbuilder/util/component.txt b/reportbuilder/util/description-en-US.txt index 21a1f1e2d145..21a1f1e2d145 100755..100644 --- a/reportbuilder/util/component.txt +++ b/reportbuilder/util/description-en-US.txt diff --git a/reportbuilder/util/description.xml b/reportbuilder/util/description.xml index 78ae10843da3..f048b86743af 100644 --- a/reportbuilder/util/description.xml +++ b/reportbuilder/util/description.xml @@ -17,7 +17,7 @@ <default xlink:href="images/extension_32.png" /> </icon> <extension-description> - <src xlink:href="component.txt" lang="en-US" /> + <src xlink:href="description-en-US.txt" lang="en-US" /> </extension-description> </description> diff --git a/reportbuilder/util/makefile.mk b/reportbuilder/util/makefile.mk index c099efb256e1..99752c22d9a8 100644 --- a/reportbuilder/util/makefile.mk +++ b/reportbuilder/util/makefile.mk @@ -81,8 +81,8 @@ COMPONENT_HTMLFILES = $(EXTENSIONDIR)$/THIRDPARTYREADMELICENSE.html \ COMPONENT_JARFILES = \ $(EXTENSIONDIR)$/sun-report-builder.jar -COMPONENT_HELP= \ - $(EXTENSIONDIR)$/component.txt +COMPONENT_DESCRIPTION= \ + $(foreach,lang,$(alllangiso) $(EXTENSIONDIR)$/description-$(lang).txt) # .jar files from solver COMPONENT_EXTJARFILES = \ @@ -114,7 +114,7 @@ COMPONENT_MANIFEST_GENERIC:=TRUE COMPONENT_MANIFEST_SEARCHDIR:=registry # make sure to add your custom files here -EXTENSION_PACKDEPS=$(COMPONENT_EXTJARFILES) $(MISC)/$(TARGET).copied $(COMPONENT_HTMLFILES) $(COMPONENT_OTR_FILES) $(COMPONENT_HELP) $(COMPONENT_IMAGES) +EXTENSION_PACKDEPS=$(COMPONENT_EXTJARFILES) $(MISC)/$(TARGET).copied $(COMPONENT_HTMLFILES) $(COMPONENT_OTR_FILES) $(COMPONENT_DESCRIPTION) $(COMPONENT_IMAGES) .ENDIF # --- Targets ---------------------------------- @@ -138,13 +138,20 @@ $(EXTENSIONDIR)$/THIRDPARTYREADMELICENSE.html : $(PRJ)$/license$/THIRDPARTYREADM @@-$(MKDIRHIER) $(@:d) $(COPY) $< $@ -$(COMPONENT_HELP) : $$(@:f) - @@-$(MKDIRHIER) $(@:d) - $(COPY) $< $@ +$(COMPONENT_DESCRIPTION) : $(DESCRIPTION) + $(DESCRIPTION_SRC): description.xml +-$(RM) $@ - $(TYPE) description.xml | $(SED) "s/#VERSION#/$(EXTENSION_VERSION)/" > $@ + $(COPY) description-en-US.txt $(EXTENSIONDIR)/description-en-US.txt +.IF "$(WITH_LANG)" != "" + $(XRMEX) -p $(PRJNAME) -i description.xml -o $@ -m $(LOCALIZESDF) -l all + $(SED) "s/#VERSION#/$(EXTENSION_VERSION)/" < $@ > $@.new + mv $@.new $@ + @$(COPY) $(@:d)/description-*.txt $(EXTENSIONDIR) +.ELSE + $(SED) "s/#VERSION#/$(EXTENSION_VERSION)/" < $< > $@ +.ENDIF $(MISC)/$(TARGET).copied: $(COMPONENT_EXTJARFILES_COPY) @@-$(MKDIRHIER) $(EXTENSIONDIR) diff --git a/reportbuilder/util/makefile.pmk b/reportbuilder/util/makefile.pmk index 566132247f9f..566132247f9f 100755..100644 --- a/reportbuilder/util/makefile.pmk +++ b/reportbuilder/util/makefile.pmk |