summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorSasa Zivkov2011-01-26 12:20:13 (EST)
committer Chris Aniszczyk2011-01-26 12:33:52 (EST)
commit990498b75d3d3955b629a48e5f39dd09bc7a3116 (patch)
tree5070224e6f660742968d698ef3883487993c1fad
parentc4c8d80fd3a32cace67e7e42650aae7c46dcc622 (diff)
downloadjgit-990498b75d3d3955b629a48e5f39dd09bc7a3116.zip
jgit-990498b75d3d3955b629a48e5f39dd09bc7a3116.tar.gz
jgit-990498b75d3d3955b629a48e5f39dd09bc7a3116.tar.bz2
Fixed NLS in JGit command line interfacerefs/changes/48/2348/2
There was one place where the parameter substitution wasn't done which caused text fragments like "{0}" to appear in JGits output. Bug: 325025 Change-Id: I89b881a8b5ef39f609437546310463ed4f6e1fb5 Signed-off-by: Sasa Zivkov <sasa.zivkov@sap.com> Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
-rw-r--r--org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/AbstractFetchCommand.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/AbstractFetchCommand.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/AbstractFetchCommand.java
index 6624d49..5d31637 100644
--- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/AbstractFetchCommand.java
+++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/AbstractFetchCommand.java
@@ -77,8 +77,8 @@ abstract class AbstractFetchCommand extends TextBuiltin {
final String dst = abbreviateRef(u.getLocalName(), true);
if (!shownURI) {
- out.format(CLIText.get().fromURI, r.getURI());
- out.println();
+ out.println(MessageFormat.format(CLIText.get().fromURI,
+ r.getURI()));
shownURI = true;
}