diff options
author | Andras Timar <atimar@suse.com> | 2011-10-08 21:20:31 +0200 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2011-10-20 11:10:53 +0200 |
commit | 89f7e17692d019a68d251d39bcc592a4ee8ba0dc (patch) | |
tree | 044065bc45d2501fb7af3209e744416a6b384f5d /sdext | |
parent | 8c2902ecbf135fae070ea032fa10a59bb76ec1b0 (diff) |
localize description.xml of presenter-screen extension
Diffstat (limited to 'sdext')
-rw-r--r--[-rwxr-xr-x] | sdext/source/presenter/description.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 | 18 |
3 files changed, 12 insertions, 8 deletions
diff --git a/sdext/source/presenter/help/component.txt b/sdext/source/presenter/description.txt index 26a10c622fe9..26a10c622fe9 100755..100644 --- a/sdext/source/presenter/help/component.txt +++ b/sdext/source/presenter/description.txt diff --git a/sdext/source/presenter/description.xml b/sdext/source/presenter/description.xml index bf9ce7260751..14a8a18696b6 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.txt" lang="en-US" /> </extension-description> </description> diff --git a/sdext/source/presenter/makefile.mk b/sdext/source/presenter/makefile.mk index 1afbb1e68093..df6c6339e9a1 100644 --- a/sdext/source/presenter/makefile.mk +++ b/sdext/source/presenter/makefile.mk @@ -247,9 +247,12 @@ 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,l,$(alllangiso:s/en-US//) $(ZIP1DIR)$/$l-description.txt) \ + $(ZIP1DIR)$/description.txt + ZIP1DEPS= \ $(DESCRIPTION) \ $(COMPONENT_MANIFEST) \ @@ -257,7 +260,8 @@ ZIP1DEPS= \ $(COMPONENT_BITMAPS) \ $(COMPONENT_IMAGES) \ $(COMPONENT_LIBRARY) \ - $(COMPONENT_HELP) + $(COMPONENT_HELP) \ + $(COMPONENT_DESCRIPTION) LINKNAME:=help XHPLINKSRC:=$(ZIP1DIR)/help @@ -284,10 +288,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) @@ -368,7 +368,11 @@ 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.txt $(ZIP1DIR)/description.txt + $(XRMEX) -p $(PRJNAME) -i description.xml -o $@ -m $(LOCALIZESDF) -l all + $(TYPE) $@ | sed s/UPDATED_PLATFORM/$(PLATFORMID)/ > $@.new + mv $@.new $@ + ALLTAR: $(MISC)/../bin/presenter-screen.oxt # hotfix to missing localizations |