maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From denn...@apache.org
Subject svn commit: r1054828 - in /maven/plugins/trunk/maven-changes-plugin/src/main: java/org/apache/maven/plugin/trac/TracMojo.java resources/trac-report.properties resources/trac-report_de.properties resources/trac-report_fr.properties
Date Mon, 03 Jan 2011 23:39:54 GMT
Author: dennisl
Date: Mon Jan  3 23:39:54 2011
New Revision: 1054828

URL: http://svn.apache.org/viewvc?rev=1054828&view=rev
Log:
o Use i18n everywhere.
o Adjust report name in several locales.

Modified:
    maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/trac/TracMojo.java
    maven/plugins/trunk/maven-changes-plugin/src/main/resources/trac-report.properties
    maven/plugins/trunk/maven-changes-plugin/src/main/resources/trac-report_de.properties
    maven/plugins/trunk/maven-changes-plugin/src/main/resources/trac-report_fr.properties

Modified: maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/trac/TracMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/trac/TracMojo.java?rev=1054828&r1=1054827&r2=1054828&view=diff
==============================================================================
--- maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/trac/TracMojo.java
(original)
+++ maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/trac/TracMojo.java
Mon Jan  3 23:39:54 2011
@@ -114,17 +114,6 @@ public class TracMojo
         return ProjectUtils.validateIfIssueManagementComplete( project, "Trac", "Trac Report",
getLog() );
     }
 
-    private void configureIssueDownloader( TracDownloader issueDownloader )
-    {
-        issueDownloader.setProject( project );
-
-        issueDownloader.setQuery( query );
-
-        issueDownloader.setTracPassword( tracPassword );
-
-        issueDownloader.setTracUser( tracUser );
-    }
-
     public void executeReport( Locale locale )
         throws MavenReportException
     {
@@ -177,12 +166,12 @@ public class TracMojo
 
     public String getName( Locale locale )
     {
-        return "Trac Report";
+        return getBundle( locale ).getString( "report.issues.name" );
     }
 
     public String getDescription( Locale locale )
     {
-        return "Report on Ticket from the Trac.";
+        return getBundle( locale ).getString( "report.issues.description" );
     }
 
     public String getOutputName()
@@ -194,4 +183,15 @@ public class TracMojo
     {
         return ResourceBundle.getBundle( "trac-report", locale, this.getClass().getClassLoader()
);
     }
+
+    private void configureIssueDownloader( TracDownloader issueDownloader )
+    {
+        issueDownloader.setProject( project );
+
+        issueDownloader.setQuery( query );
+
+        issueDownloader.setTracPassword( tracPassword );
+
+        issueDownloader.setTracUser( tracUser );
+    }
 }

Modified: maven/plugins/trunk/maven-changes-plugin/src/main/resources/trac-report.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-changes-plugin/src/main/resources/trac-report.properties?rev=1054828&r1=1054827&r2=1054828&view=diff
==============================================================================
--- maven/plugins/trunk/maven-changes-plugin/src/main/resources/trac-report.properties (original)
+++ maven/plugins/trunk/maven-changes-plugin/src/main/resources/trac-report.properties Mon
Jan  3 23:39:54 2011
@@ -15,7 +15,7 @@
 # specific language governing permissions and limitations
 # under the License.
 
-report.issues.name=Trac Tickets
+report.issues.name=Trac Report
 report.issues.description=Report on tickets in Trac.
 report.issues.error=An error occured that made it impossible to generate this report. \
   Please check the console for information on what might be the cause of this.

Modified: maven/plugins/trunk/maven-changes-plugin/src/main/resources/trac-report_de.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-changes-plugin/src/main/resources/trac-report_de.properties?rev=1054828&r1=1054827&r2=1054828&view=diff
==============================================================================
--- maven/plugins/trunk/maven-changes-plugin/src/main/resources/trac-report_de.properties
(original)
+++ maven/plugins/trunk/maven-changes-plugin/src/main/resources/trac-report_de.properties
Mon Jan  3 23:39:54 2011
@@ -15,7 +15,7 @@
 # specific language governing permissions and limitations
 # under the License.
 
-report.issues.name=Trac-Tickets
+report.issues.name=Trac-Bericht
 report.issues.description=Bericht \u00FCber die Tickets in Trac.
 report.issues.error=Es ist ein Fehler aufgetreten, der die Generierung dieses Berichts verhinderte.
\
   Bitte kontrollieren Sie die Konsolenausgabe im Hinblick auf Informationen \u00FCber die
Ursache.

Modified: maven/plugins/trunk/maven-changes-plugin/src/main/resources/trac-report_fr.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-changes-plugin/src/main/resources/trac-report_fr.properties?rev=1054828&r1=1054827&r2=1054828&view=diff
==============================================================================
--- maven/plugins/trunk/maven-changes-plugin/src/main/resources/trac-report_fr.properties
(original)
+++ maven/plugins/trunk/maven-changes-plugin/src/main/resources/trac-report_fr.properties
Mon Jan  3 23:39:54 2011
@@ -15,7 +15,7 @@
 # specific language governing permissions and limitations
 # under the License.
 
-report.issues.name=Tickets Trac
+report.issues.name=Rapport Trac
 report.issues.description=Rapport des tickets dans Trac.
 report.issues.error=Une erreur est survenue, ce qui ne permet pas de g\u00E9n\u00E9rer le
rapport. \
   Merci de v\u00E9rifier les traces dans la console pour conna\u00EEtre la cause de l'erreur.



Mime
View raw message