aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/lib/PersonIdent.java
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2015-03-18 00:32:04 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2015-05-26 10:52:20 +0200
commit2390531888af6dc9e4fda6cb026271dc068c40ab (patch)
treeda2ea0eb143bf86e5a0afb7b0ddf0b3ddcfff19c /org.eclipse.jgit/src/org/eclipse/jgit/lib/PersonIdent.java
parentd9062145b8cf7ca3c275e1f8b17eeb4973c55d28 (diff)
downloadjgit-2390531888af6dc9e4fda6cb026271dc068c40ab.tar.gz
jgit-2390531888af6dc9e4fda6cb026271dc068c40ab.zip
Externalize translatable texts in org.eclipse.jgit
Change-Id: Ibf4c299f9d203c78cae79e61f88d4bea60ea2795 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/lib/PersonIdent.java')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/lib/PersonIdent.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/PersonIdent.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/PersonIdent.java
index 8f7e3eff7c..e8591195cf 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/PersonIdent.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/PersonIdent.java
@@ -51,6 +51,7 @@ import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;
+import org.eclipse.jgit.internal.JGitText;
import org.eclipse.jgit.util.SystemReader;
/**
@@ -181,10 +182,10 @@ public class PersonIdent implements Serializable {
final long aWhen, final int aTZ) {
if (aName == null)
throw new IllegalArgumentException(
- "Name of PersonIdent must not be null.");
+ JGitText.get().personIdentNameNonNull);
if (aEmailAddress == null)
throw new IllegalArgumentException(
- "E-mail address of PersonIdent must not be null.");
+ JGitText.get().personIdentEmailNonNull);
name = aName;
emailAddress = aEmailAddress;
when = aWhen;