Hi Antoine,

it's a mistake, you need only one site.xml under site/ ;-)
The full support for i18n is in svn, you need to checkout the trunk and bootstrap it for obtain it and the doc is ready in svn (http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-site/src/site/apt/site.apt?rev=201746&view=markup)

You'll can obtain a full french web site after a bootstrap

Emmanuel

ahgt sur laposte.net wrote:
Hello,

Trying to build a web site with M2

When you say (see post here under):
+- src/
    +- site/
       +- apt/
       |  +- fr/
       |  |  +- index.apt  (French version)
       |  +- index.apt     (Default version)
       +- site.xml
       +- fr/
       |  +- apt/
       |  |  +- index.apt  (French version)
       +- site.xml         (Default site descriptor)
       +- site_fr.xml      (French site descriptor)

It looks strange to me : two site.xml under site/ ? Etc...
On the web site, there is no i18n folder structure shown.
Could you explain this more ? Or tell where to find the doc (if yet ready) ? I can't get the french version of the web site.
Thank you
Antoine


-----Message d'origine-----
De : ahgt sur laposte.net [mailto:[EMAIL PROTECTED] Envoyé : dimanche 26 juin 2005 23:25
À : 'Maven Users List'
Objet : RE : [REPOST] i18n (M1 or M2): how to set llinks (<a>) whith
language dependant href


No relative path for the links... I just put the "/" by mistake in the
mail.

Thaks for M2 architecture.
I will try it...
What is "apt" and ".apt" ?

Antoine


-----Message d'origine-----
De : Emmanuel Venisse [mailto:[EMAIL PROTECTED] Envoyé : dimanche 26 juin 2005 15:19
À : Maven Users List
Objet : Re: [REPOST] i18n (M1 or M2): how to set llinks (<a>) whith
language dependant href




ahgt sur laposte.net wrote:

Hello,

in the content of a page, I want to set a link to another page of the
site.

in the about page, I want to say : "Go and see the <a
href="/licence.html">licence</a>."

but then, the href="/licence.html" goes only to the default language
page.

When in the fr language page, I would like to have
href="/fr/licence.html" like with the navigation.xml file.


Why do you not use relative path for your link?



How can i do that ?
use <item> in de <document> tag of the xdoc content file ? use some
jelly code (if current_language is XX then ...) ? built in function yet in the xdoc plugin ?

will this be the same way in M2 ?


In m2, all translated sites are totally independant.

We don't use properties for define menu items or contents, each language

  have its site descriptor and its content directory.

+- src/
    +- site/
       +- apt/
       |  +- fr/
       |  |  +- index.apt  (French version)
       |  +- index.apt     (Default version)
       +- site.xml
       +- fr/
       |  +- apt/
       |  |  +- index.apt  (French version)
       +- site.xml         (Default site descriptor)
       +- site_fr.xml      (French site descriptor)

Emmanuel



Thank you,
Antoine







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to