Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.9
-
Fix Version/s: 1.9
-
Labels:None
-
Environment:All
-
Number of attachments :11
Description
Documentation generated by maven xdocs plugin does not support internationalization. The main scope therefore is restricted to developers. However, end user documentation is as well a very suitable scope for mavens web site. I therefore would appreciate an internationalizable xdocs plugin. I consider this an important feature, as it opens maven to new people.
-
Hide
- dummy.zip
- 13/Nov/04 9:51 AM
- 209 kB
- Vincent Siveton
-
- dummy/maven.xml 2 kB
- dummy/project.properties 9 kB
- dummy/project.xml 4 kB
- dummy/src/conf/app.properties 0.8 kB
- dummy/src/java/example/app/App.java 0.2 kB
- dummy/src/test/.../app/AbstractTestCase.java 0.8 kB
- dummy/src/test/example/app/AppTest.java 0.8 kB
- dummy/src/test/.../app/NaughtyTest.java 0.7 kB
- dummy/target/docs/cvs-usage.html 2 kB
- dummy/target/docs/dependencies.html 3 kB
- dummy/.../dependency-convergence-report.html 4 kB
- dummy/target/docs/downloads.html 2 kB
- dummy/target/docs/en/cvs-usage.html 2 kB
- dummy/target/docs/en/dependencies.html 3 kB
- dummy/.../dependency-convergence-report.html 4 kB
- dummy/target/docs/en/downloads.html 3 kB
- dummy/target/docs/en/faq.html 3 kB
- dummy/target/docs/en/index.html 3 kB
- dummy/target/docs/en/issue-tracking.html 3 kB
- dummy/target/docs/en/mail-lists.html 3 kB
- dummy/target/docs/en/maven-reports.html 3 kB
- dummy/target/docs/.../project/features.html 3 kB
- dummy/target/docs/en/project/goals.html 3 kB
- dummy/target/docs/en/project-info.html 4 kB
- dummy/target/docs/en/team-list.html 5 kB
- dummy/target/docs/faq.html 3 kB
- dummy/target/docs/fr/cvs-usage.html 2 kB
- dummy/target/docs/fr/dependencies.html 3 kB
- dummy/.../dependency-convergence-report.html 4 kB
- dummy/target/docs/fr/downloads.html 3 kB
-
- GrabClassLoaderTag.java
- 21/May/05 7:20 AM
- 3 kB
- Brett Porter
-
- jelly-tagsdiff.txt
- 21/May/05 7:19 AM
- 1 kB
- Brett Porter
-
Hide
- maven-xdoc-plugin-1.9-SNAPSHOT.zip
- 13/Nov/04 9:50 AM
- 164 kB
- Vincent Siveton
-
- maven-xdoc-plugin-1.9-SNAPSHOT/.classpath 0.2 kB
- maven-xdoc-plugin-1.9-SNAPSHOT/.project 0.5 kB
- maven-xdoc-plugin-1.9-SNAPSHOT/.../MANIFEST.MF 0.4 kB
- maven-xdoc-plugin-1.9-SNAPSHOT/.../DependencyDescriberBean.class 4 kB
- maven-xdoc-plugin-1.9-SNAPSHOT/.../DescribedDependency.class 2 kB
- maven-xdoc-plugin-1.9-SNAPSHOT/.../NavBean.class 3 kB
- maven-xdoc-plugin-1.9-SNAPSHOT/.../maven-base.css 2 kB
- maven-xdoc-plugin-1.9-SNAPSHOT/.../maven-classic.css 15 kB
- maven-xdoc-plugin-1.9-SNAPSHOT/.../maven-theme.css 2 kB
- maven-xdoc-plugin-1.9-SNAPSHOT/.../print.css 0.2 kB
- maven-xdoc-plugin-1.9-SNAPSHOT/.../add.gif 0.2 kB
- maven-xdoc-plugin-1.9-SNAPSHOT/.../collapsed.gif 0.1 kB
- maven-xdoc-plugin-1.9-SNAPSHOT/.../expanded.gif 0.1 kB
- maven-xdoc-plugin-1.9-SNAPSHOT/.../external-classic.png 0.9 kB
- maven-xdoc-plugin-1.9-SNAPSHOT/.../external.png 0.2 kB
- maven-xdoc-plugin-1.9-SNAPSHOT/.../file.gif 0.1 kB
- maven-xdoc-plugin-1.9-SNAPSHOT/.../fix.gif 0.2 kB
- maven-xdoc-plugin-1.9-SNAPSHOT/.../folder-closed.gif 0.2 kB
- maven-xdoc-plugin-1.9-SNAPSHOT/.../folder-open.gif 0.2 kB
- maven-xdoc-plugin-1.9-SNAPSHOT/.../help_logo.gif 2 kB
- maven-xdoc-plugin-1.9-SNAPSHOT/.../icon_alert.gif 1 kB
- maven-xdoc-plugin-1.9-SNAPSHOT/.../icon_alertsml.gif 0.2 kB
- maven-xdoc-plugin-1.9-SNAPSHOT/.../icon_arrowfolder1_sml.gif 1 kB
- maven-xdoc-plugin-1.9-SNAPSHOT/.../icon_arrowfolder2_sml.gif 1 kB
- maven-xdoc-plugin-1.9-SNAPSHOT/.../icon_arrowfolderclosed1_sml.gif 0.4 kB
- maven-xdoc-plugin-1.9-SNAPSHOT/.../icon_arrowfolderopen2_sml.gif 0.6 kB
- maven-xdoc-plugin-1.9-SNAPSHOT/.../icon_arrowmembers1_sml.gif 1 kB
- maven-xdoc-plugin-1.9-SNAPSHOT/.../icon_arrowmembers2_sml.gif 1 kB
- maven-xdoc-plugin-1.9-SNAPSHOT/.../icon_arrowusergroups1_sml.gif 1 kB
- maven-xdoc-plugin-1.9-SNAPSHOT/.../icon_arrowusergroups2_sml.gif 1 kB
-
- svndiff.txt
- 19/May/05 1:33 AM
- 152 kB
- Brett Porter
-
- templates_de.properties
- 06/May/05 10:52 AM
- 10 kB
- Daniel Frey
-
- UnGrabClassLoaderTag.java
- 21/May/05 7:21 AM
- 2 kB
- Brett Porter
-
- xdoc_20_05_2005.diff
- 20/May/05 4:56 AM
- 141 kB
- Vincent Siveton
-
Hide
- xdoc.zip
- 21/May/05 9:30 AM
- 1.12 MB
- Brett Porter
-
- xdoc.diff 141 kB
- .svn/dir-prop-base 0.1 kB
- .svn/dir-props 0.1 kB
- .svn/dir-wcprops 0.1 kB
- .svn/empty-file 0.0 kB
- .svn/entries 2 kB
- .svn/format 0.0 kB
- .svn/prop-base/plugin.jelly.svn-base 0.1 kB
- .svn/.../plugin.properties.svn-base 0.1 kB
- .svn/.../project.properties.svn-base 0.1 kB
- .svn/prop-base/project.xml.svn-base 0.1 kB
- .svn/props/plugin.jelly.svn-work 0.1 kB
- .svn/props/plugin.properties.svn-work 0.1 kB
- .svn/props/project.properties.svn-work 0.1 kB
- .svn/props/project.xml.svn-work 0.1 kB
- .svn/README.txt 0.1 kB
- .svn/text-base/plugin.jelly.svn-base 31 kB
- .svn/.../plugin.properties.svn-base 4 kB
- .svn/.../project.properties.svn-base 1.0 kB
- .svn/text-base/project.xml.svn-base 6 kB
- .svn/wcprops/plugin.jelly.svn-work 0.1 kB
- .svn/wcprops/plugin.properties.svn-work 0.1 kB
- .svn/wcprops/project.properties.svn-work 0.1 kB
- .svn/wcprops/project.xml.svn-work 0.1 kB
- src/.svn/dir-wcprops 0.1 kB
- src/.svn/empty-file 0.0 kB
- src/.svn/entries 0.6 kB
- src/.svn/format 0.0 kB
- src/.svn/README.txt 0.1 kB
- src/main/.svn/dir-wcprops 0.1 kB
-
- Default language.jpg
- 129 kB
- 13/Nov/04 9:48 AM
-
- French site.jpg
- 133 kB
- 13/Nov/04 9:49 AM
Issue Links
- is duplicated by
-
MPXDOC-109
Support doc in several languages
-
Activity
Hello
Your xdocs suggestion described in
http://jira.codehaus.org/browse/MPXDOC-128
with the new taglib: fmt works fine for me on Windows 2000.
Thank you very much ! ! !
For what reason ever, my remote sysadmin working on Linux complains that
xdocs cannot resolve the keys .... I will travel tomorrow
5 hours to my sysadmin and then "eyeball" his installation - but at the
moment I cannot imagine what the problem could be ....
Perhaps you might have an idea...
Thanks if you pay attention to this comment
Valerie Nyre
Hello Vincent,
Thank for your great work! Good job! Now I would like to test it.
I have tried to install the maven-xdoc-plugin-1.9 snapshot using maven 1.0.2. I deleted the old plugin in the plugins directory within maven installation directory. Running maven site, everything works fine so far:
plugin maven-xdoc-plugin-1.8 is cached (dynatag dep) but no longer present
Cache invalidated due to out of date plugins
But then I get the following error:
Attempting to download commons-jelly-1.0-beta-4.jar.
159K downloaded
Attempting to download maven-model-1.1.jar.
WARNING: Failed to download maven-model-1.1.jar.
Attempting to download commons-jelly-tags-fmt-1.0.jar.
21K downloaded
BUILD FAILED
File...... C:\Dokumente und Einstellungen\Daniel Frey\.maven\cache\maven-site-plugin-1.5.2\plugin.jelly
Element... attainGoal
Line...... 40
Column.... 42
The build cannot continue because of the following unsatisfied dependency:
maven-model-1.1.jar
It seems that this 1.9-SNAPSHOT is relying on a maven-model release not available. How can I resolve this issue?
Thanks,
Daniel Frey
Hello Vincent,
When installing the plugin I have come across a small problem I just want to feedback here. The snapshot zip contains a directory with the plugin, which in turn has to be jared to be deployed correctly. It would be perfect to have a jar/zip with the plugin structure inside (no folder).
Thanks,
Daniel Frey
Ok, a simple adaptation resolved the issue with the model. Adapting project.xml of the plugin and replace
<dependency>
<groupId>maven</groupId>
<artifactId>maven-model</artifactId>
<version>1.1</version>
<type>jar</type>
</dependency>
with
<dependency>
<groupId>maven</groupId>
<artifactId>maven-model</artifactId>
<version>1.1-SNAPSHOT</version>
<type>jar</type>
</dependency>
works fine.
Daniel Frey
Hello Folks
I am back here again - a simple Maven User -
Two questions:
1.
Will Maven 2 follow an approach to I18N - will MPXDOC-128 be the solution ?
2.
Can you provide a clean snapshot hat can be used as Jump-Start into using it ? With an example that works on Linux - one which we can just INSTALL and RUN THE XDOCS-GENERATE-SITE ?
Thanks for you suggestions above - However...My SysAdmin also changed with the project.xml to point to the correct model. He downloaded the Model, but this is not the problem we are having.
It might be of interest to you to know that we still cannot get the solution to work on Linux:
Maven can BUILD the project, but it seems that the text variables (property files) cannot be found. Unresolved variables are displayed as "variable name" -
We followed the user instructions, we named the property files correctly, we have them both in the /temp/ of xdocs and in the root of our /docs/ directory. We could not even get your sample to work.
Well, I am a bit ashamed to admit: I made a quick-and-dirty installation of the snapshot in my Windows system (without the project.xml, build.properties and the like... which I assumed only important to build the snapshot... ) and it works.
I tried to convince my Sysadmin to do the same, but .... I am also having communication problem now - My sysadmin wants to follow a clean official procedure and wants to install the complete snapshot.
(See above: Question 2)
My respect and thanks
Valerie
I would like to update the german translation of the xdocs terms as they look after being revised by others.
Thanks for your god work again!
diff from http://antarticadream.no-ip.org/xdoc/svndiff.txt sent to me by Vincent Siveton
committed. I need to review a couple of things:
- try moving the tags out of jelly tags, get it working with m1
- getting an NPE in 1.1 running plugin tests (probably unrelated bug in 1.1)
I made some changes to i18n.xml (removed the large images, adjusted final section text)
I am totally agree with you. The internationalization support is an highly issue for some reasons like law constraint (Canada has two official languages - English and French)
This issue was already discussed in the past with the release manager of XDOC plugin. He suggested me to share here my proposal (as an alpha version) and to explain quickly my implementation.
Here is a generated structure (in totally agreement with the release manager) for an english/french web site:
Thus, we have a default version, an english version and a french one. You can easily switch language from the left navigation bar (see screenshot)
My implementation choice is:
maven-xdoc-plugin-1.9-SNAPSHOT\plugin-resources\templates\templates.properties
${maven.docs.src}
\$
{maven.xdoc.bundle}.properties
LIMITATION: actually, the plugin should copy this bundle to maven-xdoc-plugin-1.9-SNAPSHOT\plugin-resources\temp\ directory to provide keys access.
<message key="mykey"/> ==> it s a shortcut to the user bundle (more quickly to write!)
<message key="mykey" bundle="myBundle"/> ==> Key in the defined bundle from the XDOC path ie bundle="plugin-resources\temp\myBundle")
About key and text, I choose this rule: define a key is more important that the text message itself.
For instance, <title key="myKey">blabla</title> will become the myKey value and NOT blabla text.
To try my proposal, unzip attachments:
\.maven\cache\
To create your own internationalize web site, just add this keys in your project.properties:
maven.xdoc.locale.list=en, fr
maven.xdoc.bundle=xdocs
and add xdocs.properties and xdocs_(fr | en).properties files in your xdocs folder
And, write or update your Xdocs to allow keys and bundle;o)
Known problem:
If you are using a big site or a multiproject site, its highly recommanded to increase the memory to prevent outofmemory failure
MAVEN_OPTS=-Xms512m -Xmx1024m
Future direction:
I think that every project should have a default language and available languages. The language should become a part of the POM definition. Thus, all plugins should provide internationalization ways.
Feel free to contact me to other questions or if you have some problems with this updated plugin.
Best regards,
Vincent