summaryrefslogtreecommitdiffstats
path: root/src/extension/prefdialog/parameter.h
diff options
context:
space:
mode:
authorPatrick Storz <eduard.braun2@gmx.de>2019-08-01 20:15:48 +0000
committerPatrick Storz <eduard.braun2@gmx.de>2019-08-31 14:50:38 +0000
commit62f20457cf5ee85ac42dcd24b564ea68c1b3441d (patch)
treee181b3fbe2d408451d6e18b371d753465d13758b /src/extension/prefdialog/parameter.h
parentParameter: remove unused constructors (diff)
downloadinkscape-62f20457cf5ee85ac42dcd24b564ea68c1b3441d.tar.gz
inkscape-62f20457cf5ee85ac42dcd24b564ea68c1b3441d.zip
Add function to get proper translation within context of Parameter
Diffstat (limited to 'src/extension/prefdialog/parameter.h')
-rw-r--r--src/extension/prefdialog/parameter.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/extension/prefdialog/parameter.h b/src/extension/prefdialog/parameter.h
index af37a0ba6..e9dbd6efc 100644
--- a/src/extension/prefdialog/parameter.h
+++ b/src/extension/prefdialog/parameter.h
@@ -208,6 +208,10 @@ protected:
* Build the name to write the parameter from the extension's ID and the name of this parameter.
*/
gchar *pref_name() const;
+
+ /** gets the gettext translation for msgid
+ * Handles translation domain of the extension and message context of the parameter internally */
+ const char *get_translation(const char* msgid);
};
} // namespace Extension