summaryrefslogtreecommitdiff
path: root/portato/plugins
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--portato/plugins/etc_proposals.py7
-rw-r--r--portato/plugins/resume_loop.py3
2 files changed, 6 insertions, 4 deletions
diff --git a/portato/plugins/etc_proposals.py b/portato/plugins/etc_proposals.py
index e6c3187..81370e0 100644
--- a/portato/plugins/etc_proposals.py
+++ b/portato/plugins/etc_proposals.py
@@ -14,6 +14,7 @@ from portato.helper import *
from portato.backend import system
from subprocess import Popen
+from gettext import lgettext as _
from etcproposals.etcproposals_lib import EtcProposals, __version__
try:
@@ -60,7 +61,7 @@ def etc_prop (*args, **kwargs):
if f:
Popen([PROG, "--fastexit"]+f)
else:
- error("Cannot start etc-proposals. No graphical frontend installed!")
+ error(_("Cannot start etc-proposals. No graphical frontend installed!"))
def etc_prop_menu (*args, **kwargs):
if am_i_root():
@@ -72,6 +73,6 @@ def etc_prop_menu (*args, **kwargs):
if f:
Popen([PROG]+f)
else:
- error("Cannot start etc-proposals. No graphical frontend installed!")
+ error(_("Cannot start etc-proposals. No graphical frontend installed!"))
else:
- error("Cannot start etc-proposals. Not root!")
+ error(_("Cannot start etc-proposals. Not root!"))
diff --git a/portato/plugins/resume_loop.py b/portato/plugins/resume_loop.py
index b33f4c7..c4191a8 100644
--- a/portato/plugins/resume_loop.py
+++ b/portato/plugins/resume_loop.py
@@ -12,6 +12,7 @@
import pty, time
from subprocess import Popen, STDOUT
+from gettext import lgettext as _
from portato.backend import system
from portato.helper import debug, warning
@@ -26,7 +27,7 @@ def set_data (*args, **kwargs):
def resume_loop (retcode, *args, **kwargs):
if retcode is None:
- warning("Resume-loop called while process is still running!")
+ warning(_("Resume-loop called while process is still running!"))
elif retcode == 0:
# everything ok - ignore
#pass