openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dwo...@apache.org
Subject svn commit: r916757 - in /openjpa/trunk/openjpa-kernel/src/main: java/org/apache/openjpa/conf/OpenJPAVersion.java resources/org/apache/openjpa/conf/localizer.properties
Date Fri, 26 Feb 2010 17:03:25 GMT
Author: dwoods
Date: Fri Feb 26 17:03:25 2010
New Revision: 916757

URL: http://svn.apache.org/viewvc?rev=916757&view=rev
Log:
OPENJPA-1538 Move hard coded text in OpenJPAVersion.java to localizer.properties.  Patch contributed
by Cathy Nordstrom.

Modified:
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/OpenJPAVersion.java
    openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/conf/localizer.properties

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/OpenJPAVersion.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/OpenJPAVersion.java?rev=916757&r1=916756&r2=916757&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/OpenJPAVersion.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/OpenJPAVersion.java
Fri Feb 26 17:03:25 2010
@@ -25,6 +25,7 @@
 import java.util.StringTokenizer;
 
 import org.apache.openjpa.lib.util.J2DoPrivHelper;
+import org.apache.openjpa.lib.util.Localizer;
 
 /**
  * This class contains version information for OpenJPA. It uses
@@ -35,6 +36,8 @@
  */
 public class OpenJPAVersion {
 
+    private static final Localizer _loc = Localizer.forPackage(OpenJPAVersion.class);
+
     public static final String VERSION_NUMBER;
     public static final String VERSION_ID;
     public static final String VENDOR_NAME = "OpenJPA";
@@ -128,9 +131,9 @@
         buf.append(VENDOR_NAME).append(" ");
         buf.append(VERSION_NUMBER);
         buf.append("\n");
-        buf.append("version id: ").append(VERSION_ID);
+        buf.append(_loc.get("version-id")).append(": ").append(VERSION_ID);
         buf.append("\n");
-        buf.append("Apache svn revision: ").append(REVISION_NUMBER);
+        buf.append(_loc.get("openjpa-revision")).append(": ").append(REVISION_NUMBER);
         buf.append("\n");
     }
 

Modified: openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/conf/localizer.properties
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/conf/localizer.properties?rev=916757&r1=916756&r2=916757&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/conf/localizer.properties
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/conf/localizer.properties
Fri Feb 26 17:03:25 2010
@@ -632,3 +632,5 @@
 invalid-config-object: Invalid object provided in configuration property \
         "{0}".  Expected type was "{1}".
 
+version-id: version id
+openjpa-revision: Apache svn revision



Mime
View raw message