aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/opt
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@gmail.com>2017-09-05 20:26:21 +0900
committerMatthias Sohn <matthias.sohn@sap.com>2017-09-06 00:28:19 +0200
commite7c2ae052bd28bd9c4581c09616b43d510a97679 (patch)
treedd21284395d51a7850fb5fef79146f1ab1e12157 /org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/opt
parent41bfc20a2c265062c45847e9742d6f7070ef364a (diff)
downloadjgit-e7c2ae052bd28bd9c4581c09616b43d510a97679.tar.gz
jgit-e7c2ae052bd28bd9c4581c09616b43d510a97679.zip
UntrackedFilesHandler: Fix non-localized string
Change-Id: Ida7b9ddc991515ab233763f2cb985853c9143a3c Signed-off-by: David Pursehouse <david.pursehouse@gmail.com> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/opt')
-rw-r--r--org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/opt/UntrackedFilesHandler.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/opt/UntrackedFilesHandler.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/opt/UntrackedFilesHandler.java
index d6ff5f0bdc..3edd0ddbe0 100644
--- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/opt/UntrackedFilesHandler.java
+++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/opt/UntrackedFilesHandler.java
@@ -42,6 +42,9 @@
*/
package org.eclipse.jgit.pgm.opt;
+import java.text.MessageFormat;
+
+import org.eclipse.jgit.pgm.internal.CLIText;
import org.kohsuke.args4j.CmdLineException;
import org.kohsuke.args4j.CmdLineParser;
import org.kohsuke.args4j.OptionDef;
@@ -102,8 +105,8 @@ public class UntrackedFilesHandler extends StringOptionHandler {
if ("no".equals(mode) || "all".equals(mode)) { //$NON-NLS-1$ //$NON-NLS-2$
setter.addValue(mode);
} else {
- throw new CmdLineException(owner, String.format(
- "Invalid untracked files mode '%s'", mode)); //$NON-NLS-1$
+ throw new CmdLineException(owner, MessageFormat
+ .format(CLIText.get().invalidUntrackedFilesMode, mode));
}
return 1;
} else {