From 62f20457cf5ee85ac42dcd24b564ea68c1b3441d Mon Sep 17 00:00:00 2001 From: Patrick Storz Date: Thu, 1 Aug 2019 22:15:48 +0200 Subject: Add function to get proper translation within context of Parameter --- src/extension/prefdialog/parameter-string.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/extension/prefdialog/parameter-string.cpp') diff --git a/src/extension/prefdialog/parameter-string.cpp b/src/extension/prefdialog/parameter-string.cpp index d93102a20..96ba5c4fa 100644 --- a/src/extension/prefdialog/parameter-string.cpp +++ b/src/extension/prefdialog/parameter-string.cpp @@ -18,7 +18,6 @@ #include "xml/node.h" #include "extension/extension.h" #include "preferences.h" -#include namespace Inkscape { namespace Extension { @@ -44,11 +43,7 @@ ParamString::ParamString(Inkscape::XML::Node *xml, Inkscape::Extension::Extensio // translate value if (!_value.empty()) { if (_translatable == YES) { // translate only if explicitly marked translatable - if (_context) { - _value = g_dpgettext2(nullptr, _context, _value.c_str()); - } else { - _value = _(_value.c_str()); - } + _value = get_translation(_value.c_str()); } } -- cgit v1.2.3