Skip to content

Commit

Permalink
Check OCR languages at startup, and prompt user if languages set is e…
Browse files Browse the repository at this point in the history
…mpty
  • Loading branch information
hbitteur committed Jan 6, 2025
1 parent 67bc7e8 commit 325c0fb
Show file tree
Hide file tree
Showing 13 changed files with 298 additions and 186 deletions.
8 changes: 4 additions & 4 deletions app/src/main/java/org/audiveris/omr/log/LogUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,10 @@ public static void initialize (Path CONFIG_FOLDER,

return;
} else {
initMessage("LogUtil. File " + configPath + " does not exist.");
// initMessage("LogUtil. File " + configPath + " does not exist.");
}
} else {
initMessage("LogUtil. Property " + LOGBACK_LOGGING_KEY + " not defined, skipped.");
// initMessage("LogUtil. Property " + LOGBACK_LOGGING_KEY + " not defined, skipped.");
}

// 2/ Look for well-known location (user Audiveris config folder)
Expand All @@ -233,7 +233,7 @@ public static void initialize (Path CONFIG_FOLDER,

return;
} else {
initMessage("LogUtil. No " + configPath + ", skipped.");
// initMessage("LogUtil. No " + configPath + ", skipped.");
}

// 3/ Look for suitable file within 'res' folder or resource
Expand Down Expand Up @@ -261,7 +261,7 @@ public static void initialize (Path CONFIG_FOLDER,

return;
} else {
initMessage("LogUtil. No " + localPath + ", skipped.");
// initMessage("LogUtil. No " + localPath + ", skipped.");
}
} catch (IOException ex) {
ex.printStackTrace();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ private List<Plugin> loadPlugins ()
}
}

logger.info("Loaded plugins from {}", pluginsPath);
logger.info("Plugins loaded from {}", pluginsPath);

return pluginsHolder.list; // Normal exit
} catch (JAXBException ex) {
Expand Down
4 changes: 3 additions & 1 deletion app/src/main/java/org/audiveris/omr/sheet/Versions.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@
* than the current software.
* <p>
* The poll can be manual (via interactive GuiActions) or automatic according to a chosen polling
* period in batch or interactive modes.
* period.
* <p>
* NOTA: Poll is now restricted to interactive mode, to avoid too many connections on Github site.
*
* @author Hervé Bitteur
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2242,7 +2242,7 @@ public static class LoadBookTask
// Constructor needed for creation of HistoryMenu
public LoadBookTask ()
{
super(OmrGui.getApplication(), "empty");
super(OmrGui.getApplication(), "Loading");
}

/**
Expand Down
Loading

0 comments on commit 325c0fb

Please sign in to comment.