summaryrefslogtreecommitdiffstats
path: root/src/preferences.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2019-03-11 17:49:11 +0000
committerTavmjong Bah <tavmjong@free.fr>2019-03-11 17:49:11 +0000
commitff16fd297eb4a5cb695129fc1c74f238503060f9 (patch)
tree974bcfaa7f033881bd0f0f7e9a7ea9264e81f1c8 /src/preferences.cpp
parentUpdate translation dialog for flipped axis (diff)
downloadinkscape-ff16fd297eb4a5cb695129fc1c74f238503060f9.tar.gz
inkscape-ff16fd297eb4a5cb695129fc1c74f238503060f9.zip
Don't translate Caligraphy presets in Preferences::_loadDefaults.
Fixes GitLab issue 128.
Diffstat (limited to 'src/preferences.cpp')
-rw-r--r--src/preferences.cpp16
1 files changed, 10 insertions, 6 deletions
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")
+ };
}
/**