From 1218c92bd4e7112b54c72dec9f81a806f0c20793 Mon Sep 17 00:00:00 2001 From: Emmanuel Venisse Date: Sun, 5 Jun 2005 23:10:11 +0000 Subject: [PATCH] o Internationalize site plugin generation. o Add french translation git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@180168 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/maven/doxia/DoxiaMojo.java | 272 +++++++++++------- .../src/main/resources/site-plugin.properties | 17 ++ .../main/resources/site-plugin_fr.properties | 17 ++ .../maven/reporting/AbstractMavenReport.java | 6 +- .../apache/maven/reporting/MavenReport.java | 4 +- .../plugin/checkstyle/CheckstyleReport.java | 8 +- .../maven/plugin/javadoc/JavadocReport.java | 8 +- .../apache/maven/plugin/pmd/PmdReport.java | 8 +- .../projectinfo/DependenciesReport.java | 8 +- .../projectinfo/MailingListsReport.java | 8 +- 10 files changed, 225 insertions(+), 131 deletions(-) create mode 100644 maven-plugins/maven-site-plugin/src/main/resources/site-plugin.properties create mode 100644 maven-plugins/maven-site-plugin/src/main/resources/site-plugin_fr.properties diff --git a/maven-plugins/maven-site-plugin/src/main/java/org/apache/maven/doxia/DoxiaMojo.java b/maven-plugins/maven-site-plugin/src/main/java/org/apache/maven/doxia/DoxiaMojo.java index 27f5ec083b..9ada0f347a 100644 --- a/maven-plugins/maven-site-plugin/src/main/java/org/apache/maven/doxia/DoxiaMojo.java +++ b/maven-plugins/maven-site-plugin/src/main/java/org/apache/maven/doxia/DoxiaMojo.java @@ -23,6 +23,7 @@ import org.apache.maven.project.MavenProject; import org.apache.maven.reporting.MavenReport; import org.apache.maven.reporting.MavenReportConfiguration; import org.apache.maven.reporting.MavenReportException; +import org.codehaus.plexus.i18n.I18N; import org.codehaus.plexus.siterenderer.Renderer; import org.codehaus.plexus.siterenderer.RendererException; import org.codehaus.plexus.siterenderer.sink.SiteRendererSink; @@ -49,6 +50,7 @@ import java.util.Iterator; import java.util.List; import java.util.Locale; import java.util.Map; +import java.util.StringTokenizer; /** * @goal site @@ -104,6 +106,11 @@ public class DoxiaMojo */ private Map attributes; + /** + * @parameter expression="${locales} + */ + private String locales; + /** * @parameter expression="${component.org.codehaus.plexus.siterenderer.Renderer}" * @required @@ -111,6 +118,13 @@ public class DoxiaMojo */ private Renderer siteRenderer; + /** + * @parameter expression="${component.org.codehaus.plexus.i18n.I18N}" + * @required + * @readonly + */ + private I18N i18n; + /** * @parameter expression="${project}" * @required @@ -143,6 +157,10 @@ public class DoxiaMojo private List projectReports = new ArrayList(); + private Locale defaultLocale = Locale.ENGLISH; + + private List localesList = new ArrayList(); + public void execute() throws MojoExecutionException { @@ -162,7 +180,7 @@ public class DoxiaMojo siteRenderer.setTemplateClassLoader( urlClassloader ); } - catch( MalformedURLException e ) + catch ( MalformedURLException e ) { throw new MojoExecutionException( templateDirectory + " isn't a valid URL." ); } @@ -172,95 +190,116 @@ public class DoxiaMojo { categorizeReports(); - MavenReportConfiguration config = new MavenReportConfiguration(); - - config.setProject( project ); - - config.setReportOutputDirectory( new File( outputDirectory ) ); - - //Generate reports - if ( reports != null ) + if ( locales == null ) { - for ( Iterator i = reports.keySet().iterator(); i.hasNext(); ) + localesList.add( defaultLocale ); + } + else + { + StringTokenizer st = new StringTokenizer( locales, "," ); + + while ( st.hasMoreTokens() ) { - String reportKey = (String) i.next(); + localesList.add( new Locale( st.nextToken().trim() ) ); + } + } - getLog().info( "Generate " + reportKey + " report." ); + for ( Iterator i = localesList.iterator(); i.hasNext(); ) + { + Locale locale = (Locale) i.next(); - MavenReport report = (MavenReport) reports.get( reportKey ); + MavenReportConfiguration config = new MavenReportConfiguration(); - report.setConfiguration( config ); + config.setProject( project ); - String outputFileName = report.getOutputName() + ".html"; + File localeOutputDirectory = getOuputDirectory( locale ); - SiteRendererSink sink = siteRenderer.createSink( new File( siteDirectory ), outputFileName, - getSiteDescriptor() ); + config.setReportOutputDirectory( localeOutputDirectory ); - //TODO: Use multiple locale with a loop - report.generate( sink, Locale.ENGLISH ); - - File outputFile = new File( outputDirectory, outputFileName ); - - if ( !outputFile.getParentFile().exists() ) + //Generate reports + if ( reports != null ) + { + for ( Iterator j = reports.keySet().iterator(); j.hasNext(); ) { - outputFile.getParentFile().mkdirs(); + String reportKey = (String) j.next(); + + getLog().info( "Generate " + reportKey + " report." ); + + MavenReport report = (MavenReport) reports.get( reportKey ); + + report.setConfiguration( config ); + + String outputFileName = report.getOutputName() + ".html"; + + SiteRendererSink sink = siteRenderer.createSink( new File( siteDirectory ), outputFileName, + getSiteDescriptor( locale ) ); + + report.generate( sink, locale ); + + File outputFile = new File( localeOutputDirectory, outputFileName ); + + if ( !outputFile.getParentFile().exists() ) + { + outputFile.getParentFile().mkdirs(); + } + + siteRenderer + .generateDocument( new FileWriter( outputFile ), template, attributes, sink, locale ); } - - siteRenderer.generateDocument( new FileWriter( outputFile ), template, attributes, sink, Locale.ENGLISH ); } - } - //Generate overview pages - if ( projectInfos.size() > 0 ) - { - try + //Generate overview pages + if ( projectInfos.size() > 0 ) { - generateProjectInfoPage( getSiteDescriptor() ); + try + { + generateProjectInfoPage( getSiteDescriptor( locale ), locale ); + } + catch ( Exception e ) + { + throw new MojoExecutionException( "An error is occurred in project info page generation.", e ); + } } - catch ( Exception e ) + + if ( projectReports.size() > 0 ) { - throw new MojoExecutionException( "An error is occurred in project info page generation.", e ); + try + { + generateProjectReportsPage( getSiteDescriptor( locale ), locale ); + } + catch ( Exception e ) + { + throw new MojoExecutionException( "An error is occurred in project reports page generation.", e ); + } } - } - if ( projectReports.size() > 0 ) - { - try + // Generate static site + siteRenderer.render( new File( siteDirectory ), localeOutputDirectory, getSiteDescriptor( locale ), + template, attributes ); + siteRenderer.render( new File( generatedSiteDirectory ), localeOutputDirectory, + getSiteDescriptor( locale ), template, attributes ); + + File cssDirectory = new File( siteDirectory, "css" ); + File imagesDirectory = new File( siteDirectory, "images" ); + + // special case for backwards compatibility + if ( cssDirectory.exists() || imagesDirectory.exists() ) { - generateProjectReportsPage( getSiteDescriptor() ); + getLog().warn( "DEPRECATED: the css and images directories are deprecated, please use resources" ); + + copyDirectory( cssDirectory, new File( localeOutputDirectory, "css" ) ); + + copyDirectory( imagesDirectory, new File( localeOutputDirectory, "images" ) ); } - catch ( Exception e ) + + // Copy site resources + if ( resourcesDirectory != null && resourcesDirectory.exists() ) { - throw new MojoExecutionException( "An error is occurred in project reports page generation.", e ); + copyDirectory( resourcesDirectory, localeOutputDirectory ); } + + copyResources( localeOutputDirectory ); } - - File cssDirectory = new File( siteDirectory, "css" ); - File imagesDirectory = new File( siteDirectory, "images" ); - - // special case for backwards compatibility - if ( cssDirectory.exists() || imagesDirectory.exists() ) - { - getLog().warn( "DEPRECATED: the css and images directories are deprecated, please use resources" ); - - copyDirectory( cssDirectory, new File( outputDirectory, "css" ) ); - - copyDirectory( imagesDirectory, new File( outputDirectory, "images" ) ); - } - - // Generate static site - siteRenderer.render( new File( siteDirectory ), new File( outputDirectory ), getSiteDescriptor(), template, - attributes ); - siteRenderer.render( new File( generatedSiteDirectory ), new File( outputDirectory ), getSiteDescriptor(), - template, attributes ); - - // Copy site resources - if ( resourcesDirectory != null && resourcesDirectory.exists() ) - { - copyDirectory( resourcesDirectory, new File( outputDirectory ) ); - } - - copyResources( outputDirectory ); } catch ( MavenReportException e ) { @@ -293,28 +332,28 @@ public class DoxiaMojo else { throw new MojoExecutionException( "'" + report.getCategoryName() + "' category define for " - + report.getName() + " mojo isn't valid." ); + + report.getName( defaultLocale ) + " mojo isn't valid." ); } } } - private String getReportsMenu() + private String getReportsMenu( Locale locale ) throws MojoExecutionException { StringBuffer buffer = new StringBuffer(); buffer.append( "\n" ); - buffer.append( " \n" ); + buffer.append( " \n" ); if ( projectInfos.size() > 0 ) { - buffer.append( " \n" ); for ( Iterator i = projectInfos.iterator(); i.hasNext(); ) { MavenReport report = (MavenReport) i.next(); - buffer.append( " \n" ); + buffer.append( " \n" ); } buffer.append( " \n" ); @@ -322,14 +361,14 @@ public class DoxiaMojo if ( projectReports.size() > 0 ) { - buffer.append( " \n" ); for ( Iterator i = projectReports.iterator(); i.hasNext(); ) { MavenReport report = (MavenReport) i.next(); - buffer.append( " \n" ); + buffer.append( " \n" ); } buffer.append( " \n" ); @@ -340,7 +379,7 @@ public class DoxiaMojo return buffer.toString(); } - private InputStream getSiteDescriptor() + private InputStream getSiteDescriptor( Locale locale ) throws MojoExecutionException { File siteDescriptor = new File( siteDirectory, "site.xml" ); @@ -367,7 +406,7 @@ public class DoxiaMojo if ( reports != null ) { - props.put( "reports", getReportsMenu() ); + props.put( "reports", getReportsMenu( locale ) ); } // TODO: interpolate ${project.*} in general @@ -395,15 +434,15 @@ public class DoxiaMojo return new StringInputStream( siteDescriptorContent ); } - private void generateProjectInfoPage( InputStream siteDescriptor ) + private void generateProjectInfoPage( InputStream siteDescriptor, Locale locale ) throws Exception { String outputFileName = "project-info.html"; - SiteRendererSink sink = siteRenderer - .createSink( new File( siteDirectory ), outputFileName, getSiteDescriptor() ); + SiteRendererSink sink = siteRenderer.createSink( new File( siteDirectory ), outputFileName, + getSiteDescriptor( locale ) ); - String title = "General Project Information"; + String title = i18n.getString( "site-plugin", locale, "report.information.title"); sink.head(); sink.title(); @@ -418,28 +457,27 @@ public class DoxiaMojo sink.sectionTitle1_(); sink.paragraph(); - sink.text( "This document provides an overview of the various documents and links that are part " - + "of this project's general information. All of this content is automatically generated by " ); + sink.text( i18n.getString( "site-plugin", locale, "report.information.description1") + " " ); sink.link( "http://maven.apache.org" ); sink.text( "Maven" ); sink.link_(); - sink.text( " on behalf of the project." ); + sink.text( " " + i18n.getString( "site-plugin", locale, "report.information.description2") ); sink.paragraph_(); sink.section2(); sink.sectionTitle2(); - sink.text( "Overview" ); + sink.text( i18n.getString( "site-plugin", locale, "report.information.sectionTitle") ); sink.sectionTitle2_(); sink.table(); sink.tableRow(); sink.tableHeaderCell(); - sink.text( "Document" ); + sink.text( i18n.getString( "site-plugin", locale, "report.information.column.document") ); sink.tableHeaderCell_(); sink.tableHeaderCell(); - sink.text( "Description" ); + sink.text( i18n.getString( "site-plugin", locale, "report.information.column.description") ); sink.tableHeaderCell_(); sink.tableRow_(); @@ -450,11 +488,11 @@ public class DoxiaMojo sink.tableRow(); sink.tableCell(); sink.link( report.getOutputName() + ".html" ); - sink.text( report.getName() ); + sink.text( report.getName( locale ) ); sink.link_(); sink.tableCell_(); sink.tableCell(); - sink.text( report.getDescription() ); + sink.text( report.getDescription( locale ) ); sink.tableCell_(); sink.tableRow_(); } @@ -471,19 +509,19 @@ public class DoxiaMojo sink.close(); - siteRenderer.generateDocument( new FileWriter( new File( outputDirectory, outputFileName ) ), template, - attributes, sink, Locale.ENGLISH ); + siteRenderer.generateDocument( new FileWriter( new File( getOuputDirectory( locale ), outputFileName ) ), + template, attributes, sink, locale ); } - private void generateProjectReportsPage( InputStream siteDescriptor ) + private void generateProjectReportsPage( InputStream siteDescriptor, Locale locale ) throws Exception { String outputFileName = "maven-reports.html"; - SiteRendererSink sink = siteRenderer - .createSink( new File( siteDirectory ), outputFileName, getSiteDescriptor() ); + SiteRendererSink sink = siteRenderer.createSink( new File( siteDirectory ), outputFileName, + getSiteDescriptor( locale ) ); - String title = "Maven Generated Reports"; + String title = i18n.getString( "site-plugin", locale, "report.project.title"); sink.head(); sink.title(); @@ -498,27 +536,27 @@ public class DoxiaMojo sink.sectionTitle1_(); sink.paragraph(); - sink.text( "This document provides an overview of the various reports that are automatically generated by " ); + sink.text( i18n.getString( "site-plugin", locale, "report.project.description1") + " " ); sink.link( "http://maven.apache.org" ); sink.text( "Maven" ); sink.link_(); - sink.text( ". Each report is briefly described below." ); + sink.text( ". " + i18n.getString( "site-plugin", locale, "report.project.description2") ); sink.paragraph_(); sink.section2(); sink.sectionTitle2(); - sink.text( "Overview" ); + sink.text( i18n.getString( "site-plugin", locale, "report.project.sectionTitle") ); sink.sectionTitle2_(); sink.table(); sink.tableRow(); sink.tableHeaderCell(); - sink.text( "Document" ); + sink.text( i18n.getString( "site-plugin", locale, "report.project.column.document") ); sink.tableHeaderCell_(); sink.tableHeaderCell(); - sink.text( "Description" ); + sink.text( i18n.getString( "site-plugin", locale, "report.project.column.description") ); sink.tableHeaderCell_(); sink.tableRow_(); @@ -529,11 +567,11 @@ public class DoxiaMojo sink.tableRow(); sink.tableCell(); sink.link( report.getOutputName() + ".html" ); - sink.text( report.getName() ); + sink.text( report.getName( locale ) ); sink.link_(); sink.tableCell_(); sink.tableCell(); - sink.text( report.getDescription() ); + sink.text( report.getDescription( locale ) ); sink.tableCell_(); sink.tableRow_(); } @@ -546,11 +584,11 @@ public class DoxiaMojo sink.body_(); - siteRenderer.generateDocument( new FileWriter( new File( outputDirectory, outputFileName ) ), template, - attributes, sink, Locale.ENGLISH ); + siteRenderer.generateDocument( new FileWriter( new File( getOuputDirectory( locale ), outputFileName ) ), + template, attributes, sink, locale ); } - private void copyResources( String outputDirectory ) + private void copyResources( File outputDirectory ) throws Exception { InputStream resourceList = getStream( RESOURCE_DIR + "/resources.txt" ); @@ -623,4 +661,24 @@ public class DoxiaMojo FileUtils.copyFile( sourceFile, destinationFile ); } } + + private File getOuputDirectory( Locale locale ) + { + if ( localesList.size() == 1 ) + { + return new File( outputDirectory ); + } + else + { + Locale firstLocale = (Locale) localesList.get( 0 ); + if ( locale.equals( firstLocale ) ) + { + return new File( outputDirectory ); + } + else + { + return new File( outputDirectory, locale.getLanguage() ); + } + } + } } diff --git a/maven-plugins/maven-site-plugin/src/main/resources/site-plugin.properties b/maven-plugins/maven-site-plugin/src/main/resources/site-plugin.properties new file mode 100644 index 0000000000..e72f7f18c5 --- /dev/null +++ b/maven-plugins/maven-site-plugin/src/main/resources/site-plugin.properties @@ -0,0 +1,17 @@ +template.lastpublished=Last Published +template.builtby=Built by +report.project.title=Maven Generated Reports +report.project.description1=This document provides an overview of the various reports that are automatically generated by +report.project.description2=Each report is briefly described below. +report.project.sectionTitle=Overview +report.project.column.description=Description +report.project.column.document=Document +report.information.title=General Project Information +report.information.description1=This document provides an overview of the various documents and links that are part of this project's general information. All of this content is automatically generated by +report.information.description2=on behalf of the project. +report.information.sectionTitle=Overview +report.information.column.description=Description +report.information.column.document=Document +report.menu.about=About +report.menu.projectinformation=Project Info +report.menu.projectreports=Project Reports diff --git a/maven-plugins/maven-site-plugin/src/main/resources/site-plugin_fr.properties b/maven-plugins/maven-site-plugin/src/main/resources/site-plugin_fr.properties new file mode 100644 index 0000000000..e6a95ce1c4 --- /dev/null +++ b/maven-plugins/maven-site-plugin/src/main/resources/site-plugin_fr.properties @@ -0,0 +1,17 @@ +template.lastpublished=Dernière publication +template.builtby=Produit par +report.project.title=Rapport générés par Maven +report.project.description1=Ce document fournit une vue d'ensemble des divers rapports générés automatiquement par +report.project.description2=Chaque rapport est décrit brièvement ci-dessous. +report.project.sectionTitle=Vue d'ensemble +report.project.column.description=Description +report.project.column.document=Document +report.information.title=Information générale du projet +report.information.description1=Ce document fournit une vue d'ensemble des divers documents et liens qui font partis des informations générales du projet. Tous ces contenus sont générés automatiquement par +report.information.description2=on behalf of the project. +report.information.sectionTitle=Vue d'ensemble +report.information.column.description=Description +report.information.column.document=Document +report.menu.about=A propos de +report.menu.projectinformation=Info Projet +report.menu.projectreports=Rapports Projet diff --git a/maven-reporting/maven-reporting-api/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java b/maven-reporting/maven-reporting-api/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java index 9c4bbb1bc5..bdb8836552 100644 --- a/maven-reporting/maven-reporting-api/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java +++ b/maven-reporting/maven-reporting-api/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java @@ -66,6 +66,8 @@ public abstract class AbstractMavenReport private Sink sink; + private Locale locale = Locale.ENGLISH; + public MavenReportConfiguration getConfiguration() { return config; @@ -108,7 +110,7 @@ public abstract class AbstractMavenReport } catch ( Exception e ) { - throw new MojoExecutionException( "An error is occurred in " + getName() + " report generation." ); + throw new MojoExecutionException( "An error is occurred in " + getName( locale ) + " report generation." ); } } @@ -161,7 +163,7 @@ public abstract class AbstractMavenReport StringBuffer buffer = new StringBuffer(); buffer.append( "\n" ); - buffer.append( " \n" ); + buffer.append( " \n" ); buffer.append( "\n" ); diff --git a/maven-reporting/maven-reporting-api/src/main/java/org/apache/maven/reporting/MavenReport.java b/maven-reporting/maven-reporting-api/src/main/java/org/apache/maven/reporting/MavenReport.java index e3a67adee1..e67174b562 100644 --- a/maven-reporting/maven-reporting-api/src/main/java/org/apache/maven/reporting/MavenReport.java +++ b/maven-reporting/maven-reporting-api/src/main/java/org/apache/maven/reporting/MavenReport.java @@ -45,11 +45,11 @@ public interface MavenReport String getOutputName(); - String getName(); + String getName( Locale locale ); String getCategoryName(); - String getDescription(); + String getDescription( Locale locale ); Sink getSink() throws IOException; diff --git a/maven-reports/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReport.java b/maven-reports/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReport.java index 35d689eaa6..94543194fc 100644 --- a/maven-reports/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReport.java +++ b/maven-reports/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReport.java @@ -83,17 +83,17 @@ public class CheckstyleReport private boolean failedOnError = false; /** - * @see org.apache.maven.reporting.MavenReport#getName() + * @see org.apache.maven.reporting.MavenReport#getName(java.util.Locale) */ - public String getName() + public String getName( Locale locale ) { return "Checkstyle"; } /** - * @see org.apache.maven.reporting.MavenReport#getDescription() + * @see org.apache.maven.reporting.MavenReport#getDescription(java.util.Locale) */ - public String getDescription() + public String getDescription( Locale locale ) { return "Report on coding style conventions."; } diff --git a/maven-reports/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/JavadocReport.java b/maven-reports/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/JavadocReport.java index e8e31ee1e9..02b680b994 100644 --- a/maven-reports/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/JavadocReport.java +++ b/maven-reports/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/JavadocReport.java @@ -61,17 +61,17 @@ public class JavadocReport private MavenProject project; /** - * @see org.apache.maven.reporting.MavenReport#getName() + * @see org.apache.maven.reporting.MavenReport#getName(java.util.Locale) */ - public String getName() + public String getName( Locale locale ) { return "JavaDocs"; } /** - * @see org.apache.maven.reporting.MavenReport#getDescription() + * @see org.apache.maven.reporting.MavenReport#getDescription(java.util.Locale) */ - public String getDescription() + public String getDescription( Locale locale ) { return "JavaDoc API documentation."; } diff --git a/maven-reports/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdReport.java b/maven-reports/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdReport.java index 1213eb1d41..4493a63f49 100644 --- a/maven-reports/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdReport.java +++ b/maven-reports/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdReport.java @@ -74,17 +74,17 @@ public class PmdReport private MavenProject project; /** - * @see org.apache.maven.reporting.MavenReport#getName() + * @see org.apache.maven.reporting.MavenReport#getName(java.util.Locale) */ - public String getName() + public String getName( Locale locale ) { return "PMD report"; } /** - * @see org.apache.maven.reporting.MavenReport#getDescription() + * @see org.apache.maven.reporting.MavenReport#getDescription(java.util.Locale) */ - public String getDescription() + public String getDescription( Locale locale ) { return "Verification of coding rules."; } diff --git a/maven-reports/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/DependenciesReport.java b/maven-reports/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/DependenciesReport.java index 4c9df7daae..bdb6f93132 100644 --- a/maven-reports/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/DependenciesReport.java +++ b/maven-reports/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/DependenciesReport.java @@ -60,9 +60,9 @@ public class DependenciesReport private MavenProject project; /** - * @see org.apache.maven.reporting.MavenReport#getName() + * @see org.apache.maven.reporting.MavenReport#getName(java.util.Locale) */ - public String getName() + public String getName( Locale locale ) { return "Dependencies"; } @@ -76,9 +76,9 @@ public class DependenciesReport } /** - * @see org.apache.maven.reporting.MavenReport#getDescription() + * @see org.apache.maven.reporting.MavenReport#getDescription(java.util.Locale) */ - public String getDescription() + public String getDescription( Locale locale ) { return "This document lists the projects dependencies and provides information on each dependency."; } diff --git a/maven-reports/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/MailingListsReport.java b/maven-reports/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/MailingListsReport.java index 73c61e1e25..d416854a46 100644 --- a/maven-reports/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/MailingListsReport.java +++ b/maven-reports/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/MailingListsReport.java @@ -61,9 +61,9 @@ public class MailingListsReport private MavenProject project; /** - * @see org.apache.maven.reporting.MavenReport#getName() + * @see org.apache.maven.reporting.MavenReport#getName(java.util.Locale) */ - public String getName() + public String getName( Locale locale ) { return "Mailing Lists"; } @@ -77,9 +77,9 @@ public class MailingListsReport } /** - * @see org.apache.maven.reporting.MavenReport#getDescription() + * @see org.apache.maven.reporting.MavenReport#getDescription(java.util.Locale) */ - public String getDescription() + public String getDescription( Locale locale ) { return "This document provides subscription and archive information for this project's mailing lists."; }