Skip to content

Commit b35ab60

Browse files
author
Federico Fissore
committed
Library Manager: some lib names end with numbers, hence separate version with 'version'
1 parent df1b82a commit b35ab60

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

arduino-core/src/cc/arduino/contributions/libraries/LibraryInstaller.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,15 @@ public void updateIndex() throws Exception {
100100

101101
public void install(ContributedLibrary lib, ContributedLibrary replacedLib) throws Exception {
102102
if (lib.isInstalled()) {
103-
System.out.println(I18n.format(_("Library is already installed: \"{0}\""), lib.getName() + " " + lib.getParsedVersion()));
103+
System.out.println(I18n.format(_("Library is already installed: {0}"), lib.getName() + _(" version ") + lib.getParsedVersion()));
104104
return;
105105
}
106106

107107
final MultiStepProgress progress = new MultiStepProgress(3);
108108

109109
// Step 1: Download library
110110
try {
111-
downloader.download(lib, progress, I18n.format(_("Downloading library: \"{0}\""), lib.getName()));
111+
downloader.download(lib, progress, I18n.format(_("Downloading library: {0}"), lib.getName()));
112112
} catch (InterruptedException e) {
113113
// Download interrupted... just exit
114114
return;
@@ -119,7 +119,7 @@ public void install(ContributedLibrary lib, ContributedLibrary replacedLib) thro
119119
// all the temporary folders and abort installation.
120120

121121
// Step 2: Unpack library on the correct location
122-
progress.setStatus(I18n.format(_("Installing library: \"{0}\""), lib.getName()));
122+
progress.setStatus(I18n.format(_("Installing library: {0}"), lib.getName()));
123123
onProgress(progress);
124124
File libsFolder = indexer.getSketchbookLibrariesFolder();
125125
File tmpFolder = FileUtils.createTempFolderIn(libsFolder);
@@ -150,7 +150,7 @@ public void remove(ContributedLibrary lib) throws IOException {
150150
final MultiStepProgress progress = new MultiStepProgress(2);
151151

152152
// Step 1: Remove library
153-
progress.setStatus(I18n.format(_("Removing library: \"{0}\""), lib.getName()));
153+
progress.setStatus(I18n.format(_("Removing library: {0}"), lib.getName()));
154154
onProgress(progress);
155155
FileUtils.recursiveDelete(lib.getInstalledFolder());
156156
progress.stepDone();

0 commit comments

Comments
 (0)