From ff16fd297eb4a5cb695129fc1c74f238503060f9 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Mon, 11 Mar 2019 18:49:11 +0100 Subject: Don't translate Caligraphy presets in Preferences::_loadDefaults. Fixes GitLab issue 128. --- src/preferences.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'src/preferences.cpp') diff --git a/src/preferences.cpp b/src/preferences.cpp index 12a860cac..326647aad 100644 --- a/src/preferences.cpp +++ b/src/preferences.cpp @@ -129,12 +129,16 @@ void Preferences::_loadDefaults() // Raw string literal cannot contain translatable strings. Fortunately, we only translate // caligraphy presets. - setString("/tools/calligraphic/preset/cp0/name", _("Dip pen")); - setString("/tools/calligraphic/preset/cp1/name", _("Marker")); - setString("/tools/calligraphic/preset/cp2/name", _("Brush")); - setString("/tools/calligraphic/preset/cp3/name", _("Wiggly")); - setString("/tools/calligraphic/preset/cp4/name", _("Splotchy")); - setString("/tools/calligraphic/preset/cp5/name", _("Tracing")); + // Note: actual translation is done in CalligraphyToolbar::build_presets_list(), we just + // mark the strings as translatable here (see GitLab issue 128): + Glib::ustring dummy_array[] = { + _("Dip pen"), + _("Marker"), + _("Brush"), + _("Wiggly"), + _("Splotchy"), + _("Tracing") + }; } /** -- cgit v1.2.3