From 38d31ed587e36b7088e703a9caf63f77b6ac7896 Mon Sep 17 00:00:00 2001 From: aheritier Date: Sat, 3 Sep 2005 20:45:41 +0000 Subject: [PATCH] MPXDOC-131 : allow i18n links. Patch submitted by : Ignacio G. Mac Dowell Patch reviewed by : Arnaud Heritier git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@267494 13f79535-47bb-0310-9956-ffa450edef68 --- xdoc/src/plugin-resources/site.jsl | 44 ++++++++++++++----- .../plugin-test/test03/xdocs/xdocs.properties | 3 ++ .../test03/xdocs/xdocs_fr.properties | 3 ++ .../plugin-test/test04/xdocs/myfile_i18n.xml | 6 +-- .../plugin-test/test04/xdocs/xdocs.properties | 3 ++ .../test04/xdocs/xdocs_fr.properties | 3 ++ xdoc/xdocs/changes.xml | 3 +- xdoc/xdocs/i18n.xml | 6 +-- 8 files changed, 52 insertions(+), 19 deletions(-) diff --git a/xdoc/src/plugin-resources/site.jsl b/xdoc/src/plugin-resources/site.jsl index 14164c98..dcffb48a 100644 --- a/xdoc/src/plugin-resources/site.jsl +++ b/xdoc/src/plugin-resources/site.jsl @@ -3,7 +3,7 @@ + + + + + + + + + + + + + + + + @@ -526,27 +547,28 @@ ${href} externalLink External Link - + ${href} - - ${attr.value} + + ${attr_value} newWindow New Window - + ${target} - + - + + - ${attr.value} + ${attr_value} diff --git a/xdoc/src/plugin-test/test03/xdocs/xdocs.properties b/xdoc/src/plugin-test/test03/xdocs/xdocs.properties index 4001c847..62d52eb3 100644 --- a/xdoc/src/plugin-test/test03/xdocs/xdocs.properties +++ b/xdoc/src/plugin-test/test03/xdocs/xdocs.properties @@ -16,3 +16,6 @@ testjstltosite.title=test jslToSite tag testjstltosite.section1.title=Title 1 testjstltosite.section1.description1=empty document testjstltosite.section1.description2=This document is generated separately from other xdoc documents but should retain the site stylesheet and navigation. + +testlinks.mysite1=http://mysite1.com +testlinks.mysite2=http://mysite2.com diff --git a/xdoc/src/plugin-test/test03/xdocs/xdocs_fr.properties b/xdoc/src/plugin-test/test03/xdocs/xdocs_fr.properties index da530a44..2b784963 100644 --- a/xdoc/src/plugin-test/test03/xdocs/xdocs_fr.properties +++ b/xdoc/src/plugin-test/test03/xdocs/xdocs_fr.properties @@ -16,3 +16,6 @@ testjstltosite.title=test jslToSite tag testjstltosite.section1.title=Titre 1 testjstltosite.section1.description1=document vide testjstltosite.section1.description2=Ce document est produit séparément des autres documents XDOC mais devrait maintenir le stylesheet et la navigation d'emplacement. + +testlinks.mysite1=http://mysite1.fr +testlinks.mysite2=http://mysite2.fr diff --git a/xdoc/src/plugin-test/test04/xdocs/myfile_i18n.xml b/xdoc/src/plugin-test/test04/xdocs/myfile_i18n.xml index ae658e21..19c2f273 100644 --- a/xdoc/src/plugin-test/test04/xdocs/myfile_i18n.xml +++ b/xdoc/src/plugin-test/test04/xdocs/myfile_i18n.xml @@ -26,11 +26,11 @@

- +

- +

- \ No newline at end of file + diff --git a/xdoc/src/plugin-test/test04/xdocs/xdocs.properties b/xdoc/src/plugin-test/test04/xdocs/xdocs.properties index 4001c847..62d52eb3 100644 --- a/xdoc/src/plugin-test/test04/xdocs/xdocs.properties +++ b/xdoc/src/plugin-test/test04/xdocs/xdocs.properties @@ -16,3 +16,6 @@ testjstltosite.title=test jslToSite tag testjstltosite.section1.title=Title 1 testjstltosite.section1.description1=empty document testjstltosite.section1.description2=This document is generated separately from other xdoc documents but should retain the site stylesheet and navigation. + +testlinks.mysite1=http://mysite1.com +testlinks.mysite2=http://mysite2.com diff --git a/xdoc/src/plugin-test/test04/xdocs/xdocs_fr.properties b/xdoc/src/plugin-test/test04/xdocs/xdocs_fr.properties index ded5d332..9ab62048 100644 --- a/xdoc/src/plugin-test/test04/xdocs/xdocs_fr.properties +++ b/xdoc/src/plugin-test/test04/xdocs/xdocs_fr.properties @@ -16,3 +16,6 @@ testjstltosite.title=test jslToSite tag testjstltosite.section1.title=Title 1 testjstltosite.section1.description1=document vide testjstltosite.section1.description2=Ce document est produit séparément des autres documents XDOC mais devrait maintenir le stylesheet et la navigation d'emplacement. + +testlinks.mysite1=http://mysite1.fr +testlinks.mysite2=http://mysite2.fr diff --git a/xdoc/xdocs/changes.xml b/xdoc/xdocs/changes.xml index ee2a139c..3cea8333 100644 --- a/xdoc/xdocs/changes.xml +++ b/xdoc/xdocs/changes.xml @@ -1,7 +1,7 @@ - About Vincent Siveton -

@@ -122,7 +119,8 @@ maven.xdoc.locale.supported=fr, de <message key="mykey"/> <section key="mykey"/> -<subsection key="mykey"/>]]></source> +<subsection key="mykey"/> +<a hrefkey="myhrefkey">My i18n link</a>]]></source> NOTE: XDoc plugin always uses key if defined. For instance, this line of code: