Commit ab4b9079 authored by Gaute Hope's avatar Gaute Hope

Fix gettext error by not loading easy-string for crontab tasks

parent d8031824
......@@ -422,7 +422,7 @@ class Crontab:
return True
#read tasks in crontab
def read (self):
def read (self, easy = True):
data = []
......@@ -447,9 +447,9 @@ class Crontab:
#add task to treemodel in mainWindow
if minute == "@reboot":
data.append([title, self.__easy__ (minute, hour, day, month, weekday), preview, line, linecount, time, self, None, job_id, "", "","", _("Recurrent"), "crontab", output, _("At reboot")])
data.append([title, (self.__easy__ (minute, hour, day, month, weekday) if easy else "") , preview, line, linecount, time, self, None, job_id, "", "","", _("Recurrent"), "crontab", output, _("At reboot")])
else:
data.append([title, self.__easy__ (minute, hour, day, month, weekday), preview, line, linecount, time, self, None, job_id, "", "","", _("Recurrent"), "crontab", output, time])
data.append([title, (self.__easy__ (minute, hour, day, month, weekday) if easy else ""), preview, line, linecount, time, self, None, job_id, "", "","", _("Recurrent"), "crontab", output, time])
linecount = linecount + 1
......
......@@ -84,7 +84,7 @@ else:
d = GnomeScheduleDB ()
c = crontab.Crontab (is_root, user, uid, gid, home_dir)
tasks = c.read ()
tasks = c.read (easy = False)
crontabc = 0
cl = []
for task in tasks:
......
......@@ -88,7 +88,7 @@ else:
d = pickle.load (of)
c = crontab.Crontab (is_root, user, uid, gid, home_dir)
c.read ()
c.read (easy = False)
crontabc = 0
for task in d.crontab:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment