summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorAndras Timar <atimar@suse.com>2011-10-30 21:47:13 +0100
committerAndras Timar <atimar@suse.com>2011-10-30 21:47:13 +0100
commit184653370717f99e0cce817822caecde01d20006 (patch)
tree514e8176f09a2a66b0ec81f7f3551b6303a858d3 /sdext
parenteda6d8971dd5b33d572a123198bf0cca63120cf9 (diff)
enable localization of extension descriptions in sdext
Diffstat (limited to 'sdext')
-rw-r--r--[-rwxr-xr-x]sdext/source/minimizer/description-en-US.txt (renamed from sdext/source/minimizer/help/component.txt)0
-rw-r--r--sdext/source/minimizer/description.xml2
-rw-r--r--sdext/source/minimizer/makefile.mk18
-rw-r--r--sdext/source/pdfimport/description-en-US.txt (renamed from sdext/source/pdfimport/config/component.txt)2
-rw-r--r--sdext/source/pdfimport/description.xml (renamed from sdext/source/pdfimport/config/description.xml)2
-rw-r--r--sdext/source/pdfimport/makefile.mk18
-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.xml2
-rw-r--r--sdext/source/presenter/makefile.mk16
9 files changed, 39 insertions, 21 deletions
diff --git a/sdext/source/minimizer/help/component.txt b/sdext/source/minimizer/description-en-US.txt
index 98f2687800ff..98f2687800ff 100755..100644
--- a/sdext/source/minimizer/help/component.txt
+++ b/sdext/source/minimizer/description-en-US.txt
diff --git a/sdext/source/minimizer/description.xml b/sdext/source/minimizer/description.xml
index f8762c7fee7b..eef22a750af6 100644
--- a/sdext/source/minimizer/description.xml
+++ b/sdext/source/minimizer/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/minimizer/makefile.mk b/sdext/source/minimizer/makefile.mk
index fcca6aa3a37c..09139210885c 100644
--- a/sdext/source/minimizer/makefile.mk
+++ b/sdext/source/minimizer/makefile.mk
@@ -103,11 +103,15 @@ COMPONENT_IMAGES=\
# rather freestyle or common to all?
COMPONENT_HELP= \
$(EXTENSIONDIR)$/help$/help_de.odt \
- $(EXTENSIONDIR)$/help$/help_en-US.odt \
- $(EXTENSIONDIR)$/help$/component.txt
+ $(EXTENSIONDIR)$/help$/help_en-US.odt
+
+DESCRIPTION_SRC:=$(MISC)/$(EXTENSIONNAME)_in/description.xml
+
+COMPONENT_DESCRIPTION= \
+ $(foreach,lang,$(alllangiso) $(EXTENSIONDIR)$/description-$(lang).txt)
# make sure to add your custom files here
-EXTENSION_PACKDEPS=$(COMPONENT_BITMAPS) $(COMPONENT_IMAGES) $(COMPONENT_HELP)
+EXTENSION_PACKDEPS=$(COMPONENT_BITMAPS) $(COMPONENT_IMAGES) $(COMPONENT_HELP) $(COMPONENT_DESCRIPTION)
ZIP2TARGET= presentation_minimizer_develop
.IF "$(WITH_LANG)"!=""
@@ -143,4 +147,12 @@ $(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/config/component.txt b/sdext/source/pdfimport/description-en-US.txt
index 969581ef2fbf..0cde58a8ad50 100644
--- a/sdext/source/pdfimport/config/component.txt
+++ b/sdext/source/pdfimport/description-en-US.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 OpenOffice.org 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 LibreOffice as an ODF file without any layout changes.
diff --git a/sdext/source/pdfimport/config/description.xml b/sdext/source/pdfimport/description.xml
index ac0d50286cab..503753af178c 100644
--- a/sdext/source/pdfimport/config/description.xml
+++ b/sdext/source/pdfimport/description.xml
@@ -27,7 +27,7 @@
</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/sdext/source/pdfimport/makefile.mk b/sdext/source/pdfimport/makefile.mk
index 02d22132efe5..3606a768b356 100644
--- a/sdext/source/pdfimport/makefile.mk
+++ b/sdext/source/pdfimport/makefile.mk
@@ -97,7 +97,7 @@ DEF1NAME=$(SHL1TARGET)
# --- Extension packaging ------------------------------------------
-DESCRIPTION_SRC:=config$/description.xml
+DESCRIPTION_SRC:=$(MISC)/$(EXTENSIONNAME)_in/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_HELP= \
- $(EXTENSIONDIR)$/component.txt
+COMPONENT_DESCRIPTION= \
+ $(foreach,lang,$(alllangiso) $(EXTENSIONDIR)$/description-$(lang).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_HELP) $(COMPONENT_IMAGES) makefile.mk
+EXTENSION_PACKDEPS=$(CONVERTER_FILE) $(COMPONENT_DIALOGS) $(COMPONENT_DESCRIPTION) $(COMPONENT_IMAGES) makefile.mk
.INCLUDE : extension_pre.mk
.ENDIF # L10N_framework
@@ -135,6 +135,10 @@ EXTENSION_PACKDEPS=$(CONVERTER_FILE) $(COMPONENT_DIALOGS) $(COMPONENT_HELP) $(CO
.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) $< $@
@@ -143,9 +147,9 @@ $(COMPONENT_DIALOGS) : dialogs$/$$(@:f)
@@-$(MKDIRHIER) $(@:d)
$(COPY) $< $@
-$(COMPONENT_HELP) : config$/$$(@:f)
- @@-$(MKDIRHIER) $(@:d)
- $(COPY) $< $@
+$(COMPONENT_DESCRIPTION) : $(DESCRIPTION)
+ $(COPY) description-en-US.txt $(EXTENSIONDIR)
+ $(COPY) $(MISC)/$(EXTENSIONNAME)_in/description-*.txt $(EXTENSIONDIR)
$(COMPONENT_IMAGES) : $(SOLARSRC)$/$(RSCDEFIMG)$/desktop$/res$/$$(@:f)
@@-$(MKDIRHIER) $(@:d)
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..edf39197c6a9 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,10 @@ 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
+ $(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