From: Sasa Zivkov Date: Wed, 26 Jan 2011 17:20:13 +0000 (+0100) Subject: Fixed NLS in JGit command line interface X-Git-Tag: v0.11.1~46 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=990498b75d3d3955b629a48e5f39dd09bc7a3116;p=jgit.git 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 --- 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; }