From 990498b75d3d3955b629a48e5f39dd09bc7a3116 Mon Sep 17 00:00:00 2001 From: Sasa Zivkov Date: Wed, 26 Jan 2011 18:20:13 +0100 Subject: [PATCH] Fixed NLS in JGit command line interface 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 Signed-off-by: Chris Aniszczyk --- .../src/org/eclipse/jgit/pgm/AbstractFetchCommand.java | 4 ++-- 1 file 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 6624d49a26..5d31637cc4 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; } -- 2.39.5