Allow translating of dir_open plugin

This commit is contained in:
Paweł Kotiuk 2021-07-02 21:49:25 +02:00
parent 810ccc2478
commit a61c7b5445
2 changed files with 3 additions and 1 deletions

View File

@ -24,6 +24,7 @@ terminatorlib/paned.py
terminatorlib/plugin.py terminatorlib/plugin.py
terminatorlib/plugins/activitywatch.py terminatorlib/plugins/activitywatch.py
terminatorlib/plugins/custom_commands.py terminatorlib/plugins/custom_commands.py
terminatorlib/plugins/dir_open.py
terminatorlib/plugins/logger.py terminatorlib/plugins/logger.py
terminatorlib/plugins/maven.py terminatorlib/plugins/maven.py
terminatorlib/plugins/terminalshot.py terminatorlib/plugins/terminalshot.py

View File

@ -2,6 +2,7 @@ from gi.repository import Gtk
from terminatorlib.config import Config from terminatorlib.config import Config
from terminatorlib.terminal import Terminal from terminatorlib.terminal import Terminal
from terminatorlib.translation import _
import terminatorlib.plugin as plugin import terminatorlib.plugin as plugin
AVAILABLE = ['CurrDirOpen'] AVAILABLE = ['CurrDirOpen']
@ -22,7 +23,7 @@ class CurrDirOpen(plugin.MenuItem):
self.cwd = terminal.get_cwd() self.cwd = terminal.get_cwd()
self.terminal = terminal self.terminal = terminal
menuitem = Gtk.ImageMenuItem("Open current directory") menuitem = Gtk.ImageMenuItem(_('Open current directory'))
image = Gtk.Image() image = Gtk.Image()
image.set_from_icon_name('folder', Gtk.IconSize.MENU) image.set_from_icon_name('folder', Gtk.IconSize.MENU)
menuitem.set_image(image) menuitem.set_image(image)