diff --git a/po/POTFILES.in b/po/POTFILES.in index 90f74bc720a68caf11825d3999f2f1f21aa3b07f..9f84d91975b558b2c2dddc43cd9a56f3746d2126 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -107,8 +107,10 @@ src/file.cpp src/filter-enums.cpp src/gradient-chemistry.cpp src/gradient-drag.cpp +src/help.cpp src/helper/gettext.cpp src/helper/gettext.h +src/helper/verb-action.cpp src/inkscape-application.cpp src/inkscape.cpp src/inkview-application.cpp diff --git a/src/help.cpp b/src/help.cpp index a9f1fe9aac79b852b03a99d98fc53529fc3030c8..3c76797c0ff108cb9380e2442c05977203745a17 100644 --- a/src/help.cpp +++ b/src/help.cpp @@ -13,11 +13,14 @@ */ #include +#include #include "file.h" #include "help.h" +#include "io/sys.h" #include "path-prefix.h" #include "ui/dialog/aboutbox.h" +#include "ui/interface.h" void sp_help_about() { @@ -28,7 +31,13 @@ void sp_help_open_tutorial(GtkMenuItem *, void* data) { gchar const *name = static_cast(data); gchar *c = g_build_filename(INKSCAPE_TUTORIALSDIR, name, NULL); - sp_file_open(c, nullptr, false, false); + if (Inkscape::IO::file_test(c, G_FILE_TEST_EXISTS)) { + sp_file_open(c, nullptr, false, false); + } else { + sp_ui_error_dialog(_("The tutorial files are not installed.\nFor Linux, you may need to install " + "'inkscape-tutorials'; for Windows, please re-run the setup and select 'Tutorials'.\nThe " + "tutorials can also be found online at https://inkscape.org/learn/tutorials/")); + } g_free(c); }