summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorAndras Timar <atimar@suse.com>2011-10-30 22:56:43 +0100
committerAndras Timar <atimar@suse.com>2011-10-30 22:56:43 +0100
commita18bfb0830796fbbb2f2699e9213d29045a7ef19 (patch)
treebfc0391e299e8fe01549cdda979eb4ed9d4730bb /sdext
parent9ab6ecf33192750cc0353aa806e8ca2479f09224 (diff)
Revert "enable localization of extension descriptions in sdext"
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/minimizer/description.xml2
-rwxr-xr-x[-rw-r--r--]sdext/source/minimizer/help/component.txt (renamed from sdext/source/minimizer/description-en-US.txt)0
-rw-r--r--sdext/source/minimizer/makefile.mk18
-rw-r--r--sdext/source/pdfimport/config/component.txt (renamed from sdext/source/pdfimport/description-en-US.txt)2
-rw-r--r--sdext/source/pdfimport/config/description.xml (renamed from sdext/source/pdfimport/description.xml)2
-rw-r--r--sdext/source/pdfimport/makefile.mk18
-rw-r--r--sdext/source/presenter/description.xml2
-rwxr-xr-x[-rw-r--r--]sdext/source/presenter/help/component.txt (renamed from sdext/source/presenter/description-en-US.txt)0
-rw-r--r--sdext/source/presenter/makefile.mk16
9 files changed, 21 insertions, 39 deletions
diff --git a/sdext/source/minimizer/description.xml b/sdext/source/minimizer/description.xml
index eef22a750af6..f8762c7fee7b 100644
--- a/sdext/source/minimizer/description.xml
+++ b/sdext/source/minimizer/description.xml
@@ -28,7 +28,7 @@
</icon>
<extension-description>
- <src xlink:href="description-en-US.txt" lang="en-US" />
+ <src xlink:href="help/component.txt" lang="en-US" />
</extension-description>
</description>
diff --git a/sdext/source/minimizer/description-en-US.txt b/sdext/source/minimizer/help/component.txt
index 98f2687800ff..98f2687800ff 100644..100755
--- a/sdext/source/minimizer/description-en-US.txt
+++ b/sdext/source/minimizer/help/component.txt
diff --git a/sdext/source/minimizer/makefile.mk b/sdext/source/minimizer/makefile.mk
index 09139210885c..fcca6aa3a37c 100644
--- a/sdext/source/minimizer/makefile.mk
+++ b/sdext/source/minimizer/makefile.mk
@@ -103,15 +103,11 @@ COMPONENT_IMAGES=\
# rather freestyle or common to all?
COMPONENT_HELP= \
$(EXTENSIONDIR)$/help$/help_de.odt \
- $(EXTENSIONDIR)$/help$/help_en-US.odt
-
-DESCRIPTION_SRC:=$(MISC)/$(EXTENSIONNAME)_in/description.xml
-
-COMPONENT_DESCRIPTION= \
- $(foreach,lang,$(alllangiso) $(EXTENSIONDIR)$/description-$(lang).txt)
+ $(EXTENSIONDIR)$/help$/help_en-US.odt \
+ $(EXTENSIONDIR)$/help$/component.txt
# make sure to add your custom files here
-EXTENSION_PACKDEPS=$(COMPONENT_BITMAPS) $(COMPONENT_IMAGES) $(COMPONENT_HELP) $(COMPONENT_DESCRIPTION)
+EXTENSION_PACKDEPS=$(COMPONENT_BITMAPS) $(COMPONENT_IMAGES) $(COMPONENT_HELP)
ZIP2TARGET= presentation_minimizer_develop
.IF "$(WITH_LANG)"!=""
@@ -147,12 +143,4 @@ $(COMPONENT_HELP) : help$/$$(@:f)
@@-$(MKDIRHIER) $(@:d)
$(COPY) $< $@
-$(DESCRIPTION_SRC) : description.xml
- @@-$(MKDIRHIER) $(@:d)
- $(COMMAND_ECHO)$(XRMEX) -p $(PRJNAME) -i $< -o $@ -m $(LOCALIZESDF) -l all
-
-$(COMPONENT_DESCRIPTION) : $(DESCRIPTION)
- $(COPY) description-en-US.txt $(EXTENSIONDIR)
- $(COPY) $(MISC)/$(EXTENSIONNAME)_in/description-*.txt $(EXTENSIONDIR)
-
.ENDIF # L10N_framework
diff --git a/sdext/source/pdfimport/description-en-US.txt b/sdext/source/pdfimport/config/component.txt
index 0cde58a8ad50..969581ef2fbf 100644
--- a/sdext/source/pdfimport/description-en-US.txt
+++ b/sdext/source/pdfimport/config/component.txt
@@ -1 +1 @@
-The PDF Import Extension allows you to import and modify PDF documents. Best results with 100% layout accuracy can be achieved with the "PDF/ODF hybrid file" format, which this extension also enables. A hybrid PDF/ODF file is a PDF file that contains an embedded ODF source file. Hybrid PDF/ODF files will be opened in LibreOffice as an ODF file without any layout changes.
+The PDF Import Extension allows you to import and modify PDF documents. Best results with 100% layout accuracy can be achieved with the "PDF/ODF hybrid file" format, which this extension also enables. A hybrid PDF/ODF file is a PDF file that contains an embedded ODF source file. Hybrid PDF/ODF files will be opened in OpenOffice.org as an ODF file without any layout changes.
diff --git a/sdext/source/pdfimport/description.xml b/sdext/source/pdfimport/config/description.xml
index 503753af178c..ac0d50286cab 100644
--- a/sdext/source/pdfimport/description.xml
+++ b/sdext/source/pdfimport/config/description.xml
@@ -27,7 +27,7 @@
</icon>
<extension-description>
- <src xlink:href="description-en-US.txt" lang="en-US" />
+ <src xlink:href="component.txt" lang="en-US" />
</extension-description>
</description>
diff --git a/sdext/source/pdfimport/makefile.mk b/sdext/source/pdfimport/makefile.mk
index 3606a768b356..02d22132efe5 100644
--- a/sdext/source/pdfimport/makefile.mk
+++ b/sdext/source/pdfimport/makefile.mk
@@ -97,7 +97,7 @@ DEF1NAME=$(SHL1TARGET)
# --- Extension packaging ------------------------------------------
-DESCRIPTION_SRC:=$(MISC)/$(EXTENSIONNAME)_in/description.xml
+DESCRIPTION_SRC:=config$/description.xml
MANIFEST_SRC:=config$/manifest.xml
COMPONENT_CONFIGDIR:=config
COMPONENT_CONFIGDEST:=.
@@ -117,8 +117,8 @@ COMPONENT_DIALOGS= \
$(EXTENSIONDIR)$/basic$/writer.png \
$(EXTENSIONDIR)$/xpdfimport_err.pdf
-COMPONENT_DESCRIPTION= \
- $(foreach,lang,$(alllangiso) $(EXTENSIONDIR)$/description-$(lang).txt)
+COMPONENT_HELP= \
+ $(EXTENSIONDIR)$/component.txt
# native libraries
COMPONENT_LIBRARIES= \
@@ -127,7 +127,7 @@ COMPONENT_LIBRARIES= \
COMPONENT_IMAGES=\
$(EXTENSIONDIR)$/images$/extension_32.png
-EXTENSION_PACKDEPS=$(CONVERTER_FILE) $(COMPONENT_DIALOGS) $(COMPONENT_DESCRIPTION) $(COMPONENT_IMAGES) makefile.mk
+EXTENSION_PACKDEPS=$(CONVERTER_FILE) $(COMPONENT_DIALOGS) $(COMPONENT_HELP) $(COMPONENT_IMAGES) makefile.mk
.INCLUDE : extension_pre.mk
.ENDIF # L10N_framework
@@ -135,10 +135,6 @@ EXTENSION_PACKDEPS=$(CONVERTER_FILE) $(COMPONENT_DIALOGS) $(COMPONENT_DESCRIPTIO
.IF "$(L10N_framework)"==""
.INCLUDE : extension_post.mk
-$(DESCRIPTION_SRC) : description.xml
- @@-$(MKDIRHIER) $(@:d)
- $(COMMAND_ECHO)$(XRMEX) -p $(PRJNAME) -i $< -o $@ -m $(LOCALIZESDF) -l all
-
$(CONVERTER_FILE) : $(BIN)$/$$(@:f)
@@-$(MKDIRHIER) $(@:d)
$(COPY) $< $@
@@ -147,9 +143,9 @@ $(COMPONENT_DIALOGS) : dialogs$/$$(@:f)
@@-$(MKDIRHIER) $(@:d)
$(COPY) $< $@
-$(COMPONENT_DESCRIPTION) : $(DESCRIPTION)
- $(COPY) description-en-US.txt $(EXTENSIONDIR)
- $(COPY) $(MISC)/$(EXTENSIONNAME)_in/description-*.txt $(EXTENSIONDIR)
+$(COMPONENT_HELP) : config$/$$(@:f)
+ @@-$(MKDIRHIER) $(@:d)
+ $(COPY) $< $@
$(COMPONENT_IMAGES) : $(SOLARSRC)$/$(RSCDEFIMG)$/desktop$/res$/$$(@:f)
@@-$(MKDIRHIER) $(@:d)
diff --git a/sdext/source/presenter/description.xml b/sdext/source/presenter/description.xml
index 22e51199bf09..bf9ce7260751 100644
--- a/sdext/source/presenter/description.xml
+++ b/sdext/source/presenter/description.xml
@@ -28,7 +28,7 @@
</icon>
<extension-description>
- <src xlink:href="description-en-US.txt" lang="en-US" />
+ <src xlink:href="help/component.txt" lang="en-US" />
</extension-description>
</description>
diff --git a/sdext/source/presenter/description-en-US.txt b/sdext/source/presenter/help/component.txt
index 26a10c622fe9..26a10c622fe9 100644..100755
--- a/sdext/source/presenter/description-en-US.txt
+++ b/sdext/source/presenter/help/component.txt
diff --git a/sdext/source/presenter/makefile.mk b/sdext/source/presenter/makefile.mk
index edf39197c6a9..1afbb1e68093 100644
--- a/sdext/source/presenter/makefile.mk
+++ b/sdext/source/presenter/makefile.mk
@@ -247,11 +247,9 @@ 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) \
@@ -259,7 +257,6 @@ ZIP1DEPS= \
$(COMPONENT_BITMAPS) \
$(COMPONENT_IMAGES) \
$(COMPONENT_LIBRARY) \
- $(COMPONENT_DESCRIPTION) \
$(COMPONENT_HELP)
LINKNAME:=help
@@ -287,6 +284,10 @@ $(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)
@@ -350,7 +351,7 @@ $(COMPONENT_LIBRARY) : $(DLLDEST)$/$$(@:f)
.ENDIF #"$(COM)"=="GCC"
.ENDIF #"$(OS)$(CPU)"=="WNTI" && "$(WITH_EXTENSION_INTEGRATION)"!="YES"
-$(COMPONENT_DESCRIPTION) : $(DESCRIPTION)
+
$(ZIP1DIR)/%.xcu : %.xcu
@@-$(MKDIRHIER) $(@:d)
@@ -367,10 +368,7 @@ PHONYDESC=.PHONY
$(DESCRIPTION) $(PHONYDESC) : $$(@:f)
@-$(MKDIRHIER) $(@:d)
@echo LAST_WITH_LANG=$(WITH_LANG) > $(ZIP1DIR)_lang_track.mk
- $(GNUCOPY) description-en-US.txt $(ZIP1DIR)/description-en-US.txt
- $(XRMEX) -p $(PRJNAME) -i description.xml -o $@ -m $(LOCALIZESDF) -l all
- $(TYPE) $@ | sed s/UPDATED_PLATFORM/$(PLATFORMID)/ > $@.new
- mv $@.new $@
+ $(TYPE) description.xml | sed s/UPDATED_PLATFORM/$(PLATFORMID)/ > $@
ALLTAR: $(MISC)/../bin/presenter-screen.oxt
# hotfix to missing localizations