summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2019-02-10 17:29:12 +0000
committerTavmjong Bah <tavmjong@free.fr>2019-02-10 17:29:12 +0000
commit70b31017f155db9a052073656248fd43e675f591 (patch)
tree5309fd9825c210af023441ae7af07aae58bd4af1 /src
parentMeshToolbar: GtkAction migration (diff)
downloadinkscape-70b31017f155db9a052073656248fd43e675f591.tar.gz
inkscape-70b31017f155db9a052073656248fd43e675f591.zip
Fix (hopefully) Internationalization of default Calligraphy presets.
Diffstat (limited to 'src')
-rw-r--r--src/preferences-skeleton.h12
-rw-r--r--src/preferences.cpp9
2 files changed, 15 insertions, 6 deletions
diff --git a/src/preferences-skeleton.h b/src/preferences-skeleton.h
index 101552971..061d49956 100644
--- a/src/preferences-skeleton.h
+++ b/src/preferences-skeleton.h
@@ -115,12 +115,12 @@ R"=====(
tracebackground="0" usepressure="1" usetilt="0" keep_selected="1">
<group id="preset">
- <group id="cp0" name=' N_("Dip pen") ' mass="2" wiggle="0.0" angle="30.0" thinning="10" tremor="0.0" flatness="90" cap_rounding="0.0" tracebackground="0" usepressure="1" usetilt="1" />
- <group id="cp1" name=' N_("Marker") ' mass="2" wiggle="0.0" angle="90.0" thinning="0.0" tremor="0.0" flatness="0.0" cap_rounding="1.0" tracebackground="0" usepressure="0" usetilt="0" />
- <group id="cp2" name=' N_("Brush") ' mass="2" wiggle="25" angle="45.0" thinning="-40" tremor="0.0" flatness="16" cap_rounding=".1" tracebackground="0" usepressure="1" usetilt="1" />
- <group id="cp3" name=' N_("Wiggly") ' usetilt="1" tracebackground="0" usepressure="1" cap_rounding="0.1" flatness="16" tremor="18" thinning="-30" angle="30" wiggle="50" mass="0" />
- <group id="cp4" name=' N_("Splotchy") ' width="100" usetilt="1" tracebackground="0" usepressure="0" cap_rounding="1" flatness="0" tremor="10" thinning="30" angle="30" wiggle="0" mass="0" />
- <group id="cp5" name=' N_("Tracing") ' width="50" mass="0" wiggle="0.0" angle="0.0" thinning="0.0" tremor="0.0" flatness="0" cap_rounding="0.0" tracebackground="1" usepressure="1" usetilt="1"/>
+ <group id="cp0" name="Dip pen" mass="2" wiggle="0.0" angle="30.0" thinning="10" tremor="0.0" flatness="90" cap_rounding="0.0" tracebackground="0" usepressure="1" usetilt="1" />
+ <group id="cp1" name="Marker" mass="2" wiggle="0.0" angle="90.0" thinning="0.0" tremor="0.0" flatness="0.0" cap_rounding="1.0" tracebackground="0" usepressure="0" usetilt="0" />
+ <group id="cp2" name="Brush" mass="2" wiggle="25" angle="45.0" thinning="-40" tremor="0.0" flatness="16" cap_rounding=".1" tracebackground="0" usepressure="1" usetilt="1" />
+ <group id="cp3" name="Wiggly" usetilt="1" tracebackground="0" usepressure="1" cap_rounding="0.1" flatness="16" tremor="18" thinning="-30" angle="30" wiggle="50" mass="0" />
+ <group id="cp4" name="Splotch" width="100" usetilt="1" tracebackground="0" usepressure="0" cap_rounding="1" flatness="0" tremor="10" thinning="30" angle="30" wiggle="0" mass="0" />
+ <group id="cp5" name="Tracing" width="50" mass="0" wiggle="0.0" angle="0.0" thinning="0.0" tremor="0.0" flatness="0" cap_rounding="0.0" tracebackground="1" usepressure="1" usetilt="1"/>
</group>
</eventcontext>
diff --git a/src/preferences.cpp b/src/preferences.cpp
index 84a56e0f8..12a860cac 100644
--- a/src/preferences.cpp
+++ b/src/preferences.cpp
@@ -126,6 +126,15 @@ void Preferences::_loadDefaults()
// No maximise for Quartz, see lp:1302627
setInt("/options/defaultwindowsize/value", -1);
#endif
+
+ // 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"));
}
/**