Browse Source

Update translate

tags/3.2.1
Mike Khiretskiy 7 years ago
parent
commit
870e416da7
3 changed files with 9 additions and 9 deletions
  1. +2
    -2
      update/update.py
  2. +2
    -2
      update/utils/cl_setup_update.py
  3. +5
    -5
      update/variables/update.py

+ 2
- 2
update/update.py View File

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


+ 2
- 2
update/utils/cl_setup_update.py View File

@@ -32,8 +32,8 @@ class ClSetupUpdateAction(Action):
# ошибки, которые отображаются без подробностей
native_error = (FilesError, UpdateError, GitError)

successMessage = __("Updates autocheck settings configured!")
failedMessage = __("Failed to configure the updates autocheck settings!")
successMessage = __("Updates autocheck configured!")
failedMessage = __("Failed to configure the updates autocheck procedure!")
interruptMessage = __("Configuration manually interrupted")




+ 5
- 5
update/variables/update.py View File

@@ -800,7 +800,7 @@ class VariableClUpdateProfileSystem(Variable):
if not dv.Get('os_linux_name'):
raise VariableError()
except (DataVarsError, VariableError) as e:
raise VariableError(_("Profile is not Calculate"))
raise VariableError(_("The selected profile is not Calculate"))
else:
raise VariableError(_("Wrong Calculate profile"))

@@ -871,8 +871,8 @@ class VariableClUpdateProfileSyncSet(Variable):
opt = ["-s", "--sync"]

def init(self):
self.label = _("Synchronize repositories")
self.help = _("synchronize repositories")
self.label = _("Repositories to be synchronized")
self.help = _("repositories to be synchronized")


class VariableClUpdateAutocheckSet(Variable):
@@ -916,8 +916,8 @@ class VariableClUpdateAutocheckScheduleSet(Variable):
opt = ["--schedule"]

def init(self):
self.label = _("Consider auto-check schedule")
self.help = "consider auto-check schedule"
self.label = _("Consider the autocheck schedule")
self.help = _("consider the autocheck schedule")

class VariableClUpdateKernelVersion(ReadonlyVariable):
"""


Loading…
Cancel
Save