diff options
| author | Patrick Storz <eduard.braun2@gmx.de> | 2019-02-17 00:06:56 +0000 |
|---|---|---|
| committer | Patrick Storz <eduard.braun2@gmx.de> | 2019-02-17 00:13:52 +0000 |
| commit | b1217475b861a290b8ef783330c6b97dedadd826 (patch) | |
| tree | d097294acbe20024a3ac0a087008190f12c81aea /src/help.cpp | |
| parent | Tutorials: Improve logic for loading localized versions (diff) | |
| download | inkscape-b1217475b861a290b8ef783330c6b97dedadd826.tar.gz inkscape-b1217475b861a290b8ef783330c6b97dedadd826.zip | |
Move logic to build localized filenames into io/ressource.cpp
Now all that's needed to prefer a localized version of the file
(if available) is a Boolean.
Diffstat (limited to 'src/help.cpp')
| -rw-r--r-- | src/help.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/help.cpp b/src/help.cpp index fd935e8c2..a32f8529a 100644 --- a/src/help.cpp +++ b/src/help.cpp @@ -35,11 +35,8 @@ void sp_help_about() void sp_help_open_tutorial(Glib::ustring name) { Glib::ustring filename = name + ".svg"; - // TRANSLATORS: 'en' is a ISO 639-1 language code. - // Replace with language code for your language (i.e. the name of your .po file) - Glib::ustring filename_localized = name + "." + _("en") + ".svg"; - - filename = get_filename(TUTORIALS, filename.c_str(), filename_localized.c_str()); + + filename = get_filename(TUTORIALS, filename.c_str(), true); if (!filename.empty()) { sp_file_open(filename.c_str(), nullptr, false, false); } else { |
