diff options
author | Andras Timar <atimar@suse.com> | 2011-10-31 13:23:36 +0100 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2011-10-31 15:25:19 +0100 |
commit | 3c3f1e3959ccfbd6427ae6610daa4c961559ba69 (patch) | |
tree | f603de6c148851b8274a4b1f0b23016901a46d6e /sdext/source/presenter | |
parent | c8278a72b36adfd7f0a44dbedc558961dfd0dd24 (diff) |
enable localization of extension descriptions in sdext
Diffstat (limited to 'sdext/source/presenter')
-rw-r--r--[-rwxr-xr-x] | sdext/source/presenter/description-en-US.txt (renamed from sdext/source/presenter/help/component.txt) | 0 | ||||
-rw-r--r-- | sdext/source/presenter/description.xml | 2 | ||||
-rw-r--r-- | sdext/source/presenter/makefile.mk | 20 |
3 files changed, 14 insertions, 8 deletions
diff --git a/sdext/source/presenter/help/component.txt b/sdext/source/presenter/description-en-US.txt index 26a10c622fe9..26a10c622fe9 100755..100644 --- a/sdext/source/presenter/help/component.txt +++ b/sdext/source/presenter/description-en-US.txt diff --git a/sdext/source/presenter/description.xml b/sdext/source/presenter/description.xml index bf9ce7260751..22e51199bf09 100644 --- a/sdext/source/presenter/description.xml +++ b/sdext/source/presenter/description.xml @@ -28,7 +28,7 @@ </icon> <extension-description> - <src xlink:href="help/component.txt" lang="en-US" /> + <src xlink:href="description-en-US.txt" lang="en-US" /> </extension-description> </description> diff --git a/sdext/source/presenter/makefile.mk b/sdext/source/presenter/makefile.mk index 1afbb1e68093..9ced62ec2dad 100644 --- a/sdext/source/presenter/makefile.mk +++ b/sdext/source/presenter/makefile.mk @@ -247,9 +247,11 @@ COMPONENT_LIBRARY= \ PLATFORMID:=$(RTL_OS:l)_$(RTL_ARCH:l) COMPONENT_HELP= \ - $(ZIP1DIR)$/help/component.txt \ $(foreach,l,$(alllangiso) $(ZIP1DIR)$/help$/$l$/com.sun.PresenterScreen-$(PLATFORMID)$/presenter.xhp) +COMPONENT_DESCRIPTION= \ + $(foreach,lang,$(alllangiso) $(ZIP1DIR)$/description-$(lang).txt) + ZIP1DEPS= \ $(DESCRIPTION) \ $(COMPONENT_MANIFEST) \ @@ -257,6 +259,7 @@ ZIP1DEPS= \ $(COMPONENT_BITMAPS) \ $(COMPONENT_IMAGES) \ $(COMPONENT_LIBRARY) \ + $(COMPONENT_DESCRIPTION) \ $(COMPONENT_HELP) LINKNAME:=help @@ -284,10 +287,6 @@ $(COMPONENT_MANIFEST) : $$(@:f) @-$(MKDIRHIER) $(@:d) +$(TYPE) $< | $(SED) "s/SHARED_EXTENSION/$(DLLPOST)/" > $@ -$(ZIP1DIR)$/help$/component.txt : help$/$$(@:f) - @@-$(MKDIRHIER) $(@:d) - $(COPY) $< $@ - $(ZIP1DIR)$/help$/%$/com.sun.PresenterScreen-$(PLATFORMID)$/presenter.xhp : $(COMMONMISC)$/%$/com.sun.PresenterScreen$/presenter.xhp @echo creating $@ @-$(MKDIRHIER) $(@:d) @@ -351,7 +350,7 @@ $(COMPONENT_LIBRARY) : $(DLLDEST)$/$$(@:f) .ENDIF #"$(COM)"=="GCC" .ENDIF #"$(OS)$(CPU)"=="WNTI" && "$(WITH_EXTENSION_INTEGRATION)"!="YES" - +$(COMPONENT_DESCRIPTION) : $(DESCRIPTION) $(ZIP1DIR)/%.xcu : %.xcu @@-$(MKDIRHIER) $(@:d) @@ -368,7 +367,14 @@ PHONYDESC=.PHONY $(DESCRIPTION) $(PHONYDESC) : $$(@:f) @-$(MKDIRHIER) $(@:d) @echo LAST_WITH_LANG=$(WITH_LANG) > $(ZIP1DIR)_lang_track.mk - $(TYPE) description.xml | sed s/UPDATED_PLATFORM/$(PLATFORMID)/ > $@ + $(GNUCOPY) description-en-US.txt $(ZIP1DIR)/description-en-US.txt +.IF "$(WITH_LANG)" != "" + $(XRMEX) -p $(PRJNAME) -i description.xml -o $@ -m $(LOCALIZESDF) -l all + sed s/UPDATED_PLATFORM/$(PLATFORMID)/ < $@ > $@.new + mv $@.new $@ +.ELSE + sed s/UPDATED_PLATFORM/$(PLATFORMID)/ < description.xml > $@ +.ENDIF ALLTAR: $(MISC)/../bin/presenter-screen.oxt # hotfix to missing localizations |