[ http://jira.codehaus.org/browse/MSITE-157?page=all ]
Vincent Siveton closed MSITE-157.
---------------------------------
Assignee: Vincent Siveton
Resolution: Won't Fix
You could add javascript in the site.xml or create a new Velovity template.
For the site.xml:
{code:xml}
...
<head>
<script type="text/javascript">
blabla
</script>
</head>
...
{code}
AFAIK no restructuration is planned.
> Auto-detect and select preferred user language on site start page
> -----------------------------------------------------------------
>
> Key: MSITE-157
> URL: http://jira.codehaus.org/browse/MSITE-157
> Project: Maven 2.x Site Plugin
> Issue Type: Wish
> Environment: any
> Reporter: Siarhei Berdachuk
> Assigned To: Vincent Siveton
>
> There will be good possibility to auto detect user language on start page. A
> simple java script can redirect link to the preferred page, but current site
> structure is not best for this, such as preferred language used as root site:
> Supposed that you have this following site structure:
> +- src/
> +- src/apt/index.apt
> ...
> +- src/fr/
> +- src/apt/apt/index.apt
> ...
> +- src/site.xml
> +- src/site_fr.xml
> ...
> I think that more useful structure is:
> +- src/en/
> +- src/en/apt/index.apt
> +- src/en/...
> ...
> +- src/fr/
> +- src/fr/apt/index.apt
> +- src/fr/...
> + ...
> ...
> +- src/site_en.xml
> +- src/site_fr.xml
> ...
> And then we can render more common site fore this:
> /site
> +/index.html
> +...
> +/en
> +/en/index.html
> +...
> +/fr
> +/fr/index.html
> Multilanguage support will be simpler in this case
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira