maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r940323 - /maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/
Date Sun, 02 May 2010 22:07:05 GMT
Author: hboutemy
Date: Sun May  2 22:07:05 2010
New Revision: 940323

URL: http://svn.apache.org/viewvc?rev=940323&view=rev
Log:
factored out I18N for reports name and description

Modified:
    maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/CimReport.java
    maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/DependenciesReport.java
    maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/DependencyConvergenceReport.java
    maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/DependencyManagementReport.java
    maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/IssueTrackingReport.java
    maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/LicenseReport.java
    maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/MailingListsReport.java
    maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ModulesReport.java
    maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/PluginManagementReport.java
    maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/PluginsReport.java
    maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ProjectIndexPageReport.java
    maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ProjectSummaryReport.java
    maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ScmReport.java
    maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/TeamListReport.java

Modified: maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/CimReport.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/CimReport.java?rev=940323&r1=940322&r2=940323&view=diff
==============================================================================
--- maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/CimReport.java
(original)
+++ maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/CimReport.java
Sun May  2 22:07:05 2010
@@ -47,18 +47,6 @@ public class CimReport
     // ----------------------------------------------------------------------
 
     /** {@inheritDoc} */
-    public String getName( Locale locale )
-    {
-        return i18n.getString( "project-info-report", locale, "report.cim.name" );
-    }
-
-    /** {@inheritDoc} */
-    public String getDescription( Locale locale )
-    {
-        return i18n.getString( "project-info-report", locale, "report.cim.description" );
-    }
-
-    /** {@inheritDoc} */
     public void executeReport( Locale locale )
     {
         CimRenderer r = new CimRenderer( getSink(), getProject().getModel(), i18n, locale
);
@@ -72,6 +60,11 @@ public class CimReport
         return "integration";
     }
 
+    protected String getI18Nsection()
+    {
+        return "cim";
+    }
+
     // ----------------------------------------------------------------------
     // Private
     // ----------------------------------------------------------------------

Modified: maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/DependenciesReport.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/DependenciesReport.java?rev=940323&r1=940322&r2=940323&view=diff
==============================================================================
--- maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/DependenciesReport.java
(original)
+++ maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/DependenciesReport.java
Sun May  2 22:07:05 2010
@@ -178,18 +178,6 @@ public class DependenciesReport
     // ----------------------------------------------------------------------
 
     /** {@inheritDoc} */
-    public String getName( Locale locale )
-    {
-        return i18n.getString( "project-info-report", locale, "report.dependencies.name"
);
-    }
-
-    /** {@inheritDoc} */
-    public String getDescription( Locale locale )
-    {
-        return i18n.getString( "project-info-report", locale, "report.dependencies.description"
);
-    }
-
-    /** {@inheritDoc} */
     public void executeReport( Locale locale )
     {
         if ( settings.isOffline() && dependencyLocationsEnabled )
@@ -233,6 +221,11 @@ public class DependenciesReport
         return "dependencies";
     }
 
+    protected String getI18Nsection()
+    {
+        return "dependencies";
+    }
+
     // ----------------------------------------------------------------------
     // Private methods
     // ----------------------------------------------------------------------

Modified: maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/DependencyConvergenceReport.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/DependencyConvergenceReport.java?rev=940323&r1=940322&r2=940323&view=diff
==============================================================================
--- maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/DependencyConvergenceReport.java
(original)
+++ maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/DependencyConvergenceReport.java
Sun May  2 22:07:05 2010
@@ -74,16 +74,9 @@ public class DependencyConvergenceReport
         return "dependency-convergence";
     }
 
-    /** {@inheritDoc} */
-    public String getName( Locale locale )
-    {
-        return getI18nString( locale, "name" );
-    }
-
-    /** {@inheritDoc} */
-    public String getDescription( Locale locale )
+    protected String getI18Nsection()
     {
-        return getI18nString( locale, "description" );
+        return "dependency-convergence";
     }
 
     /** {@inheritDoc} */
@@ -578,11 +571,6 @@ public class DependencyConvergenceReport
         return dependencyMap;
     }
 
-    private String getI18nString( Locale locale, String key )
-    {
-        return i18n.getString( "project-info-report", locale, "report.dependency-convergence."
+ key );
-    }
-
     /**
      * Internal object
      */

Modified: maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/DependencyManagementReport.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/DependencyManagementReport.java?rev=940323&r1=940322&r2=940323&view=diff
==============================================================================
--- maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/DependencyManagementReport.java
(original)
+++ maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/DependencyManagementReport.java
Sun May  2 22:07:05 2010
@@ -80,18 +80,6 @@ public class DependencyManagementReport
     // ----------------------------------------------------------------------
 
     /** {@inheritDoc} */
-    public String getName( Locale locale )
-    {
-        return i18n.getString( "project-info-report", locale, "report.dependencyManagement.name"
);
-    }
-
-    /** {@inheritDoc} */
-    public String getDescription( Locale locale )
-    {
-        return i18n.getString( "project-info-report", locale, "report.dependencyManagement.description"
);
-    }
-
-    /** {@inheritDoc} */
     public void executeReport( Locale locale )
     {
         DependencyManagementRenderer r = new DependencyManagementRenderer( getSink(), locale,
i18n, getLog(),
@@ -107,6 +95,11 @@ public class DependencyManagementReport
         return "dependency-management";
     }
 
+    protected String getI18Nsection()
+    {
+        return "dependencyManagement";
+    }
+
     /** {@inheritDoc} */
     public boolean canGenerateReport()
     {

Modified: maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/IssueTrackingReport.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/IssueTrackingReport.java?rev=940323&r1=940322&r2=940323&view=diff
==============================================================================
--- maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/IssueTrackingReport.java
(original)
+++ maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/IssueTrackingReport.java
Sun May  2 22:07:05 2010
@@ -44,18 +44,6 @@ public class IssueTrackingReport
     // ----------------------------------------------------------------------
 
     /** {@inheritDoc} */
-    public String getName( Locale locale )
-    {
-        return i18n.getString( "project-info-report", locale, "report.issuetracking.name"
);
-    }
-
-    /** {@inheritDoc} */
-    public String getDescription( Locale locale )
-    {
-        return i18n.getString( "project-info-report", locale, "report.issuetracking.description"
);
-    }
-
-    /** {@inheritDoc} */
     public void executeReport( Locale locale )
     {
         IssueTrackingRenderer r = new IssueTrackingRenderer( getSink(), getProject().getModel(),
i18n, locale );
@@ -69,6 +57,11 @@ public class IssueTrackingReport
         return "issue-tracking";
     }
 
+    protected String getI18Nsection()
+    {
+        return "issuetracking";
+    }
+
     // ----------------------------------------------------------------------
     // Private
     // ----------------------------------------------------------------------

Modified: maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/LicenseReport.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/LicenseReport.java?rev=940323&r1=940322&r2=940323&view=diff
==============================================================================
--- maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/LicenseReport.java
(original)
+++ maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/LicenseReport.java
Sun May  2 22:07:05 2010
@@ -74,18 +74,6 @@ public class LicenseReport
     // ----------------------------------------------------------------------
 
     /** {@inheritDoc} */
-    public String getName( Locale locale )
-    {
-        return i18n.getString( "project-info-report", locale, "report.license.name" );
-    }
-
-    /** {@inheritDoc} */
-    public String getDescription( Locale locale )
-    {
-        return i18n.getString( "project-info-report", locale, "report.license.description"
);
-    }
-
-    /** {@inheritDoc} */
     public void executeReport( Locale locale )
     {
         LicenseRenderer r = new LicenseRenderer( getSink(), getProject(), i18n, locale, settings
);
@@ -137,6 +125,11 @@ public class LicenseReport
         return "license";
     }
 
+    protected String getI18Nsection()
+    {
+        return "license";
+    }
+
     /**
      * @param project not null
      * @param url not null

Modified: maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/MailingListsReport.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/MailingListsReport.java?rev=940323&r1=940322&r2=940323&view=diff
==============================================================================
--- maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/MailingListsReport.java
(original)
+++ maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/MailingListsReport.java
Sun May  2 22:07:05 2010
@@ -48,18 +48,6 @@ public class MailingListsReport
     // ----------------------------------------------------------------------
 
     /** {@inheritDoc} */
-    public String getName( Locale locale )
-    {
-        return i18n.getString( "project-info-report", locale, "report.mailing-lists.name"
);
-    }
-
-    /** {@inheritDoc} */
-    public String getDescription( Locale locale )
-    {
-        return i18n.getString( "project-info-report", locale, "report.mailing-lists.description"
);
-    }
-
-    /** {@inheritDoc} */
     public void executeReport( Locale locale )
     {
         MailingListsRenderer r = new MailingListsRenderer( getSink(), getProject().getModel(),
i18n, locale );
@@ -73,6 +61,11 @@ public class MailingListsReport
         return "mail-lists";
     }
 
+    protected String getI18Nsection()
+    {
+        return "mailing-lists";
+    }
+
     // ----------------------------------------------------------------------
     // Private
     // ----------------------------------------------------------------------

Modified: maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ModulesReport.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ModulesReport.java?rev=940323&r1=940322&r2=940323&view=diff
==============================================================================
--- maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ModulesReport.java
(original)
+++ maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ModulesReport.java
Sun May  2 22:07:05 2010
@@ -52,18 +52,6 @@ public class ModulesReport
     // ----------------------------------------------------------------------
 
     /** {@inheritDoc} */
-    public String getName( Locale locale )
-    {
-        return i18n.getString( "project-info-report", locale, "report.modules.name" );
-    }
-
-    /** {@inheritDoc} */
-    public String getDescription( Locale locale )
-    {
-        return i18n.getString( "project-info-report", locale, "report.modules.description"
);
-    }
-
-    /** {@inheritDoc} */
     public void executeReport( Locale locale )
     {
         new ModulesRenderer( getSink(), getProject().getModel(), i18n, locale ).render();
@@ -75,6 +63,11 @@ public class ModulesReport
         return "modules";
     }
 
+    protected String getI18Nsection()
+    {
+        return "modules";
+    }
+
     /** {@inheritDoc} */
     public boolean canGenerateReport()
     {

Modified: maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/PluginManagementReport.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/PluginManagementReport.java?rev=940323&r1=940322&r2=940323&view=diff
==============================================================================
--- maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/PluginManagementReport.java
(original)
+++ maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/PluginManagementReport.java
Sun May  2 22:07:05 2010
@@ -75,18 +75,6 @@ public class PluginManagementReport
     // ----------------------------------------------------------------------
 
     /** {@inheritDoc} */
-    public String getName( Locale locale )
-    {
-        return i18n.getString( "project-info-report", locale, "report.pluginManagement.name"
);
-    }
-
-    /** {@inheritDoc} */
-    public String getDescription( Locale locale )
-    {
-        return i18n.getString( "project-info-report", locale, "report.pluginManagement.description"
);
-    }
-
-    /** {@inheritDoc} */
     public void executeReport( Locale locale )
     {
         PluginManagementRenderer r = new PluginManagementRenderer( getLog(), getSink(), locale,
i18n, project
@@ -100,6 +88,11 @@ public class PluginManagementReport
         return "plugin-management";
     }
 
+    protected String getI18Nsection()
+    {
+        return "pluginManagement";
+    }
+
     /** {@inheritDoc} */
     public boolean canGenerateReport()
     {

Modified: maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/PluginsReport.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/PluginsReport.java?rev=940323&r1=940322&r2=940323&view=diff
==============================================================================
--- maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/PluginsReport.java
(original)
+++ maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/PluginsReport.java
Sun May  2 22:07:05 2010
@@ -75,18 +75,6 @@ public class PluginsReport
     // ----------------------------------------------------------------------
 
     /** {@inheritDoc} */
-    public String getName( Locale locale )
-    {
-        return i18n.getString( "project-info-report", locale, "report.plugins.name" );
-    }
-
-    /** {@inheritDoc} */
-    public String getDescription( Locale locale )
-    {
-        return i18n.getString( "project-info-report", locale, "report.plugins.description"
);
-    }
-
-    /** {@inheritDoc} */
     public void executeReport( Locale locale )
     {
         PluginsRenderer r = new PluginsRenderer( getLog(), getSink(), locale, i18n, project.getPluginArtifacts(),
@@ -101,6 +89,11 @@ public class PluginsReport
         return "plugins";
     }
 
+    protected String getI18Nsection()
+    {
+        return "plugins";
+    }
+
     /** {@inheritDoc} */
     public boolean canGenerateReport()
     {

Modified: maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ProjectIndexPageReport.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ProjectIndexPageReport.java?rev=940323&r1=940322&r2=940323&view=diff
==============================================================================
--- maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ProjectIndexPageReport.java
(original)
+++ maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ProjectIndexPageReport.java
Sun May  2 22:07:05 2010
@@ -43,7 +43,7 @@ public class ProjectIndexPageReport
     /** {@inheritDoc} */
     public String getName( Locale locale )
     {
-        return i18n.getString( "project-info-report", locale, "report.index.title" );
+        return getI18nString( locale, "title" );
     }
 
     /** {@inheritDoc} */
@@ -57,7 +57,7 @@ public class ProjectIndexPageReport
         }
         else
         {
-            desc = i18n.getString( "project-info-report", locale, "report.index.nodescription"
);
+            return getI18nString( locale, "nodescription" );
         }
         return desc;
     }
@@ -77,6 +77,11 @@ public class ProjectIndexPageReport
         return "index";
     }
 
+    protected String getI18Nsection()
+    {
+        return "index";
+    }
+
     // ----------------------------------------------------------------------
     // Private
     // ----------------------------------------------------------------------

Modified: maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ProjectSummaryReport.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ProjectSummaryReport.java?rev=940323&r1=940322&r2=940323&view=diff
==============================================================================
--- maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ProjectSummaryReport.java
(original)
+++ maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ProjectSummaryReport.java
Sun May  2 22:07:05 2010
@@ -51,21 +51,14 @@ public class ProjectSummaryReport
     }
 
     /** {@inheritDoc} */
-    public String getName( Locale locale )
-    {
-        return i18n.getString( "project-info-report", locale, "report.summary.name" );
-    }
-
-    /** {@inheritDoc} */
-    public String getDescription( Locale locale )
+    public String getOutputName()
     {
-        return i18n.getString( "project-info-report", locale, "report.summary.description"
);
+        return "project-summary";
     }
 
-    /** {@inheritDoc} */
-    public String getOutputName()
+    protected String getI18Nsection()
     {
-        return "project-summary";
+        return "summary";
     }
 
     // ----------------------------------------------------------------------

Modified: maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ScmReport.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ScmReport.java?rev=940323&r1=940322&r2=940323&view=diff
==============================================================================
--- maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ScmReport.java
(original)
+++ maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ScmReport.java
Sun May  2 22:07:05 2010
@@ -103,18 +103,6 @@ public class ScmReport
     // ----------------------------------------------------------------------
 
     /** {@inheritDoc} */
-    public String getName( Locale locale )
-    {
-        return i18n.getString( "project-info-report", locale, "report.scm.name" );
-    }
-
-    /** {@inheritDoc} */
-    public String getDescription( Locale locale )
-    {
-        return i18n.getString( "project-info-report", locale, "report.scm.description" );
-    }
-
-    /** {@inheritDoc} */
     public void executeReport( Locale locale )
     {
         ScmRenderer r = new ScmRenderer( getLog(), scmManager, getSink(), getProject().getModel(),
i18n, locale,
@@ -130,6 +118,11 @@ public class ScmReport
         return "source-repository";
     }
 
+    protected String getI18Nsection()
+    {
+        return "scm";
+    }
+
     // ----------------------------------------------------------------------
     // Private
     // ----------------------------------------------------------------------
@@ -546,7 +539,7 @@ public class ScmReport
             sink.paragraph();
             linkPatternedText( i18n.getString( "project-info-report", locale, "report.scm.anonymousaccess.hg.intro"
) );
             sink.paragraph_();
-            
+
             StringBuffer command = new StringBuffer();
             command.append( "$ hg clone " ).append( hgRepo.getURI() );
 
@@ -583,7 +576,7 @@ public class ScmReport
          * Create the documentation to provide an developer access with a <code>Mercurial</code>
SCM.
          * For example, generate the following command line:
          * <p>hg clone repo </p>
-         * 
+         *
          * @param hgRepo
          */
         private void developerAccessMercurial(HgScmProviderRepository hgRepo)
@@ -591,7 +584,7 @@ public class ScmReport
             sink.paragraph();
             linkPatternedText( i18n.getString( "project-info-report", locale, "report.scm.devaccess.hg.intro"
) );
             sink.paragraph_();
-            
+
             StringBuffer command = new StringBuffer();
             command.append( "$ hg clone " );
             command.append(hgRepo.getURI());

Modified: maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/TeamListReport.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/TeamListReport.java?rev=940323&r1=940322&r2=940323&view=diff
==============================================================================
--- maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/TeamListReport.java
(original)
+++ maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/TeamListReport.java
Sun May  2 22:07:05 2010
@@ -52,18 +52,6 @@ public class TeamListReport
     // ----------------------------------------------------------------------
 
     /** {@inheritDoc} */
-    public String getName( Locale locale )
-    {
-        return i18n.getString( "project-info-report", locale, "report.team-list.name" );
-    }
-
-    /** {@inheritDoc} */
-    public String getDescription( Locale locale )
-    {
-        return i18n.getString( "project-info-report", locale, "report.team-list.description"
);
-    }
-
-    /** {@inheritDoc} */
     public void executeReport( Locale locale )
     {
         TeamListRenderer r = new TeamListRenderer( getSink(), project.getModel(), i18n, locale
);
@@ -77,6 +65,11 @@ public class TeamListReport
         return "team-list";
     }
 
+    protected String getI18Nsection()
+    {
+        return "team-list";
+    }
+
     // ----------------------------------------------------------------------
     // Private
     // ----------------------------------------------------------------------



Mime
View raw message