diff options
| author | Patrick Storz <eduard.braun2@gmx.de> | 2019-08-03 23:34:27 +0000 |
|---|---|---|
| committer | Patrick Storz <eduard.braun2@gmx.de> | 2019-08-31 14:50:38 +0000 |
| commit | ea05ba3338bec1517826614f27935a36c3b0f0f8 (patch) | |
| tree | dce3126f09fe834a6bf165031d28c607dba73327 /src/extension/prefdialog/prefdialog.cpp | |
| parent | Remove unused "nopref" variant of effects (diff) | |
| download | inkscape-ea05ba3338bec1517826614f27935a36c3b0f0f8.tar.gz inkscape-ea05ba3338bec1517826614f27935a36c3b0f0f8.zip | |
Implement "translationdomain" attribute for extensions
Will allow extensions to ship their own message catalog used for
translation of the extension#s strings.
Needs to be set on the root <inkscape-extension> element of the .inx
Currently supported values:
- unset: use default textdomain (which happens to be 'inkscape')
- 'inkscape': use Inkscape's message catalog
- 'none': disable translation for the extension's strings
Diffstat (limited to '')
| -rw-r--r-- | src/extension/prefdialog/prefdialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/extension/prefdialog/prefdialog.cpp b/src/extension/prefdialog/prefdialog.cpp index 17deb7a20..a1966ec8d 100644 --- a/src/extension/prefdialog/prefdialog.cpp +++ b/src/extension/prefdialog/prefdialog.cpp @@ -35,7 +35,7 @@ namespace Extension { /** \brief Creates a new preference dialog for extension preferences - \param name Name of the Extension whose dialog this is + \param name Name of the Extension whose dialog this is (should already be translated) \param controls The extension specific widgets in the dialog This function initializes the dialog with the name of the extension @@ -43,7 +43,7 @@ namespace Extension { them. It also places the passed-in widgets into the dialog. */ PrefDialog::PrefDialog (Glib::ustring name, Gtk::Widget * controls, Effect * effect) : - Gtk::Dialog(_(name.c_str()), true), + Gtk::Dialog(name, true), _name(name), _button_ok(nullptr), _button_cancel(nullptr), |
