Пример #1
0
 def PromptMismatch(self):
     # return True if same app version or user confirms
     return self.SameAppVersion() or askWarning(self.parent,
           _(u'The version of Bash used to create the selected backup file does not match the current Bash version!')+u'\n' +
           _(u'Backup v%s does not match v%s') % (self.verApp, basher.settings['bash.version']) + u'\n' +
           u'\n' +
           _(u'Do you want to restore this backup anyway?'),
           _(u'Warning: Version Mismatch!'))
Пример #2
0
 def PromptMismatch(self):
     # return True if same app version or user confirms
     return self.SameAppVersion() or askWarning(
         self.parent,
         _('The version of Bash used to create the selected backup file does not match the current Bash version!\n'
           ) + _('Backup v%s does not match v%s\n') %
         (self.verApp, basher.settings['bash.readme'][1]) + _('\n') +
         _('Do you want to restore this backup anyway?'),
         _('Warning: Version Mismatch!'))