Update translate

master3.3
Mike Khiretskiy 10 years ago
parent b617910438
commit 870e416da7

@ -128,7 +128,7 @@ class Update:
Проверить по расписанию необходимость запуска команды Проверить по расписанию необходимость запуска команды
""" """
if not status: if not status:
self.printWARNING(_("Update autocheck is not enabled")) self.printWARNING(_("Updates autocheck is not enabled"))
return False return False
line = EmergeLog(EmergeLogNamedTask("schedule")).get_last_time() line = EmergeLog(EmergeLogNamedTask("schedule")).get_last_time()
re_interval = re.compile("^(\d+)\s*(hours?|days?|weeks?)?", re.I) re_interval = re.compile("^(\d+)\s*(hours?|days?|weeks?)?", re.I)
@ -150,7 +150,7 @@ class Update:
linetime = line.partition(":")[0] linetime = line.partition(":")[0]
if linetime.isdigit(): if linetime.isdigit():
if (time.time() - int(linetime)) < (est - 10 * MINUTE): if (time.time() - int(linetime)) < (est - 10 * MINUTE):
self.printWARNING(_("Update time is not yet come")) self.printWARNING(_("Please wait for the update time"))
return False return False
self.mark_schedule() self.mark_schedule()
return True return True

@ -32,8 +32,8 @@ class ClSetupUpdateAction(Action):
# ошибки, которые отображаются без подробностей # ошибки, которые отображаются без подробностей
native_error = (FilesError, UpdateError, GitError) native_error = (FilesError, UpdateError, GitError)
successMessage = __("Updates autocheck settings configured!") successMessage = __("Updates autocheck configured!")
failedMessage = __("Failed to configure the updates autocheck settings!") failedMessage = __("Failed to configure the updates autocheck procedure!")
interruptMessage = __("Configuration manually interrupted") interruptMessage = __("Configuration manually interrupted")

@ -800,7 +800,7 @@ class VariableClUpdateProfileSystem(Variable):
if not dv.Get('os_linux_name'): if not dv.Get('os_linux_name'):
raise VariableError() raise VariableError()
except (DataVarsError, VariableError) as e: except (DataVarsError, VariableError) as e:
raise VariableError(_("Profile is not Calculate")) raise VariableError(_("The selected profile is not Calculate"))
else: else:
raise VariableError(_("Wrong Calculate profile")) raise VariableError(_("Wrong Calculate profile"))
@ -871,8 +871,8 @@ class VariableClUpdateProfileSyncSet(Variable):
opt = ["-s", "--sync"] opt = ["-s", "--sync"]
def init(self): def init(self):
self.label = _("Synchronize repositories") self.label = _("Repositories to be synchronized")
self.help = _("synchronize repositories") self.help = _("repositories to be synchronized")
class VariableClUpdateAutocheckSet(Variable): class VariableClUpdateAutocheckSet(Variable):
@ -916,8 +916,8 @@ class VariableClUpdateAutocheckScheduleSet(Variable):
opt = ["--schedule"] opt = ["--schedule"]
def init(self): def init(self):
self.label = _("Consider auto-check schedule") self.label = _("Consider the autocheck schedule")
self.help = "consider auto-check schedule" self.help = _("consider the autocheck schedule")
class VariableClUpdateKernelVersion(ReadonlyVariable): class VariableClUpdateKernelVersion(ReadonlyVariable):
""" """

Loading…
Cancel
Save