From 0a58d73e75b6866f82b1225f4dd82f89214fc3ae Mon Sep 17 00:00:00 2001 From: Andras Timar Date: Mon, 3 Oct 2011 13:07:35 +0200 Subject: enable l10n of Wiki Publisher display name and description --- swext/mediawiki/build.xml | 7 +++---- swext/mediawiki/help/component.txt | 1 - swext/mediawiki/help/makefile.mk | 8 +------- swext/mediawiki/help/wiki.xhp | 18 +++++++++--------- swext/mediawiki/help/wikiformats.xhp | 2 +- swext/mediawiki/help/wikisettings.xhp | 2 +- swext/mediawiki/src/component.txt | 1 + swext/mediawiki/src/description.xml | 5 ++++- swext/mediawiki/src/makefile.mk | 7 ++++++- .../org/openoffice/Office/Custom/WikiExtension.xcu | 2 +- swext/mediawiki/src/uno-extension-manifest.xml | 2 -- 11 files changed, 27 insertions(+), 28 deletions(-) delete mode 100755 swext/mediawiki/help/component.txt create mode 100644 swext/mediawiki/src/component.txt diff --git a/swext/mediawiki/build.xml b/swext/mediawiki/build.xml index b121985711db..f941e39529d3 100644 --- a/swext/mediawiki/build.xml +++ b/swext/mediawiki/build.xml @@ -116,9 +116,8 @@ --> - + - @@ -160,7 +159,7 @@ - + @@ -202,7 +201,7 @@ - + diff --git a/swext/mediawiki/help/component.txt b/swext/mediawiki/help/component.txt deleted file mode 100755 index c5ac1de36066..000000000000 --- a/swext/mediawiki/help/component.txt +++ /dev/null @@ -1 +0,0 @@ -The @WIKIEXTENSIONPRODUCTNAME@ enables you to create Wiki articles on MediaWiki servers without having to know the syntax of the MediaWiki markup language. Publish your new and existing documents transparently with the Writer to a wiki page. diff --git a/swext/mediawiki/help/makefile.mk b/swext/mediawiki/help/makefile.mk index 1804ec2b668a..70ed4cd1eb1d 100644 --- a/swext/mediawiki/help/makefile.mk +++ b/swext/mediawiki/help/makefile.mk @@ -71,15 +71,9 @@ HLANGXHPFILES=$(foreach,i,$(XHPFILES) $(foreach,j,$(MEDIAWIKI_LANG) $(XHPDEST)$/ .INCLUDE : tg_help.mk .INCLUDE : extension_helplink.mk -ALLTAR : $(OUT_MEDIAWIKI)/help/component.txt - -$(OUT_MEDIAWIKI)/help/component.txt : component.txt - @-$(MKDIRHIER) $(@:d) - $(COMMAND_ECHO)$(COPY) component.txt $@ - $(OUT_MEDIAWIKI)/help/%.xhp : $(OUT_MEDIAWIKI)_merge/help/%.xhp @-$(MKDIRHIER) $(@:d) - $(COMMAND_ECHO)cat $< | sed -e 's/@WIKIEXTENSIONPRODUCTNAME@/Wiki Publisher/g' | \ + $(COMMAND_ECHO)cat $< | \ sed 's/@WIKIEXTENSIONID@/com.sun.wiki-publisher/g' | \ sed 's/@WIKIEXTENSIONFILENAME@/wiki-publisher/g' > $@ diff --git a/swext/mediawiki/help/wiki.xhp b/swext/mediawiki/help/wiki.xhp index 22f97274814d..20a57b58cb22 100644 --- a/swext/mediawiki/help/wiki.xhp +++ b/swext/mediawiki/help/wiki.xhp @@ -29,7 +29,7 @@ -@WIKIEXTENSIONPRODUCTNAME@ +Wiki Publisher /@WIKIEXTENSIONID@/wiki.xhp @@ -39,12 +39,12 @@ -Wiki;@WIKIEXTENSIONPRODUCTNAME@ -@WIKIEXTENSIONPRODUCTNAME@ +Wiki;Wiki Publisher +Wiki Publisher extensions;MediaWiki -@WIKIEXTENSIONPRODUCTNAME@ -By using the @WIKIEXTENSIONPRODUCTNAME@ you can upload your current Writer text document to a MediaWiki server. After uploading, all Wiki users can read your document on the Wiki. +Wiki Publisher +By using the Wiki Publisher you can upload your current Writer text document to a MediaWiki server. After uploading, all Wiki users can read your document on the Wiki. Choose File - Send - To MediaWiki to upload the current Writer document to a MediaWiki server. System Requirements @@ -62,9 +62,9 @@ A Wiki account on a supported MediaWiki server -Installing @WIKIEXTENSIONPRODUCTNAME@ -Before you install the @WIKIEXTENSIONPRODUCTNAME@, ensure that %PRODUCTNAME uses a Java Runtime Environment (JRE). To check the status of the JRE, choose Tools - Options - %PRODUCTNAME - Java. Ensure that "Use a Java runtime environment" is marked and that a Java runtime folder is selected in the big listbox. If no JRE was activated, then activate a JRE 1.4 or later and restart %PRODUCTNAME. -To Install the @WIKIEXTENSIONPRODUCTNAME@ +Installing Wiki Publisher +Before you install the Wiki Publisher, ensure that %PRODUCTNAME uses a Java Runtime Environment (JRE). To check the status of the JRE, choose Tools - Options - %PRODUCTNAME - Java. Ensure that "Use a Java runtime environment" is marked and that a Java runtime folder is selected in the big listbox. If no JRE was activated, then activate a JRE 1.4 or later and restart %PRODUCTNAME. +To Install the Wiki Publisher In a Writer window, choose Tools - Extension Manager. @@ -82,7 +82,7 @@ Restart the software, open a text document, then choose Tools - Options - Internet - MediaWiki to enter your Wiki settings. See "To Connect To a Wiki" below. -To Remove the @WIKIEXTENSIONPRODUCTNAME@ +To Remove the Wiki Publisher In a Writer window, choose Tools - Extension Manager. diff --git a/swext/mediawiki/help/wikiformats.xhp b/swext/mediawiki/help/wikiformats.xhp index fd9c98e19fae..eb02a5f4ad96 100644 --- a/swext/mediawiki/help/wikiformats.xhp +++ b/swext/mediawiki/help/wikiformats.xhp @@ -40,7 +40,7 @@ MediaWiki Formats -The following list gives an overview of the text formats that the @WIKIEXTENSIONPRODUCTNAME@ can upload to the Wiki server. +The following list gives an overview of the text formats that the Wiki Publisher can upload to the Wiki server. The OpenDocument format used by Writer and the WikiMedia format are quite different. Only a subset of all features can be transformed from one format to the other. Headings Apply a heading paragraph style to the headings in your Writer document. The Wiki will show the heading styles of the same outline level, formatted as defined by the Wiki engine. diff --git a/swext/mediawiki/help/wikisettings.xhp b/swext/mediawiki/help/wikisettings.xhp index 22611a29027a..ce15f11c187c 100644 --- a/swext/mediawiki/help/wikisettings.xhp +++ b/swext/mediawiki/help/wikisettings.xhp @@ -40,7 +40,7 @@ MediaWiki Options -You can add, edit and remove MediaWiki servers. Open the dialog by Tools - Options - Internet - MediaWiki. Alternatively, choose Tools - Extension Manager, select the @WIKIEXTENSIONPRODUCTNAME@, and click the Options button.Listbox +You can add, edit and remove MediaWiki servers. Open the dialog by Tools - Options - Internet - MediaWiki. Alternatively, choose Tools - Extension Manager, select the Wiki Publisher, and click the Options button.Listbox Click Add to add a new Wiki server.
Select an entry and click Edit to edit the account settings.
Select an entry and click Remove to remove the entry from the list.
Add button diff --git a/swext/mediawiki/src/component.txt b/swext/mediawiki/src/component.txt new file mode 100644 index 000000000000..d993ce105691 --- /dev/null +++ b/swext/mediawiki/src/component.txt @@ -0,0 +1 @@ +The Wiki Publisher enables you to create Wiki articles on MediaWiki servers without having to know the syntax of the MediaWiki markup language. Publish your new and existing documents transparently with the Writer to a wiki page. diff --git a/swext/mediawiki/src/description.xml b/swext/mediawiki/src/description.xml index 55d6148a3656..11c790e5000d 100644 --- a/swext/mediawiki/src/description.xml +++ b/swext/mediawiki/src/description.xml @@ -3,7 +3,7 @@ - @WIKIEXTENSIONPRODUCTNAME@ + Wiki Publisher @@ -11,4 +11,7 @@ The Document Foundation + + + diff --git a/swext/mediawiki/src/makefile.mk b/swext/mediawiki/src/makefile.mk index 8d920ab20976..bd1f1bbf75b7 100644 --- a/swext/mediawiki/src/makefile.mk +++ b/swext/mediawiki/src/makefile.mk @@ -42,7 +42,7 @@ common_build_zip= .INCLUDE : target.mk -ALLTAR: $(DESCRIPTION) +ALLTAR: $(DESCRIPTION) $(MISC)/$(TARGET)/component.txt .INCLUDE .IGNORE : $(MISC)$/$(TARGET)_lang_track.mk .IF "$(LAST_WITH_LANG)"!="$(WITH_LANG)" @@ -52,3 +52,8 @@ $(DESCRIPTION) $(PHONYDESC) : $$(@:f) @@-$(MKDIRHIER) $(@:d) $(PERL) $(SOLARENV)$/bin$/licinserter.pl description.xml license/LICENSE_xxx $@ @echo LAST_WITH_LANG=$(WITH_LANG) > $(MISC)$/$(TARGET)_lang_track.mk + +$(MISC)/$(TARGET)/component.txt : component.txt + @-$(MKDIRHIER) $(@:d) + $(COMMAND_ECHO)$(COPY) $< $@ + diff --git a/swext/mediawiki/src/registry/data/org/openoffice/Office/Custom/WikiExtension.xcu b/swext/mediawiki/src/registry/data/org/openoffice/Office/Custom/WikiExtension.xcu index 8dbde907af37..6888448380eb 100644 --- a/swext/mediawiki/src/registry/data/org/openoffice/Office/Custom/WikiExtension.xcu +++ b/swext/mediawiki/src/registry/data/org/openoffice/Office/Custom/WikiExtension.xcu @@ -144,7 +144,7 @@ ~Save password - @WIKIEXTENSIONPRODUCTNAME@ + Wiki Publisher A wiki article with the title '$ARG1' already exists. Do you want to replace the current article with your article? diff --git a/swext/mediawiki/src/uno-extension-manifest.xml b/swext/mediawiki/src/uno-extension-manifest.xml index f3d9a0e2399b..1f9b839e86c5 100644 --- a/swext/mediawiki/src/uno-extension-manifest.xml +++ b/swext/mediawiki/src/uno-extension-manifest.xml @@ -48,6 +48,4 @@ manifest:full-path="Paths.xcu"/> - -- cgit