OPENJPA-1538 Move hard coded text in OpenJPAVersion.java to localizer.properties. Patch contributed by Cathy Nordstrom.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@916757 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Donald Woods 2010-02-26 17:03:25 +00:00
parent 32fe994aea
commit 4cb276067a
2 changed files with 7 additions and 2 deletions

View File

@ -25,6 +25,7 @@ import java.util.Properties;
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 @@ import org.apache.openjpa.lib.util.J2DoPrivHelper;
*/
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 @@ public class OpenJPAVersion {
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");
}

View File

@ -632,3 +632,5 @@ class-not-found: Can not set "{0}", which requires class "{1}".
invalid-config-object: Invalid object provided in configuration property \
"{0}". Expected type was "{1}".
version-id: version id
openjpa-revision: Apache svn revision