Auto-detect and select preferred user language on site start page
-----------------------------------------------------------------
Key: MPSITE-52
URL: http://jira.codehaus.org/browse/MPSITE-52
Project: maven-site-plugin
Type: Wish
Components: plugin
Environment: any
Reporter: Siarhei Berdachuk
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