]> source.dussan.org Git - jgit.git/commitdiff
Fixed NLS in JGit command line interface 48/2348/2
authorSasa Zivkov <sasa.zivkov@sap.com>
Wed, 26 Jan 2011 17:20:13 +0000 (18:20 +0100)
committerChris Aniszczyk <caniszczyk@gmail.com>
Wed, 26 Jan 2011 17:33:52 +0000 (11:33 -0600)
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>
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/AbstractFetchCommand.java

index 6624d49a260ebc1eeec631713105787c493e83b7..5d31637cc42abaec3dfe49f9fbaa5e8b7cd57d4a 100644 (file)
@@ -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;
                                }