~aw/sabayon-template/trunk

« back to all changes in this revision

Viewing changes to admin-tool/saveconfirm.py

  • Committer: Bazaar Package Importer
  • Author(s): Scott Balneaves
  • Date: 2009-12-28 16:58:21 UTC
  • mfrom: (1.1.16 upstream)
  • Revision ID: james.westby@ubuntu.com-20091228165821-38riqcxr41abmelj
Tags: 2.29.5~rc1-0ubuntu1
* New upstream release
  - Depend on Pessulus
  - Added manual
  - Fixed several crasher bugs
  - Added apply by group
  - Symlinks now saved in zipfile
* debian
  - Updated deps in control
  - removed sabayon.8, sabayon-apply.8, install.manpages (upstream man)

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
                         _("Save changes to profile \"%s\" before closing?") % profile_name
42
42
                         + "</b>")
43
43
 
44
 
        if seconds < 55:
45
 
            secondary_msg = ngettext ("If you don't save, changes from the last %ld second "
46
 
                                      "will be permanently lost.",
47
 
                                      "If you don't save, changes from the last %ld seconds "
48
 
                                      "will be permanently lost.",
49
 
                                      seconds) % seconds
50
 
        elif seconds < 75:
51
 
            secondary_msg = _("If you don't save, changes from the last minute will be permanently lost.")
52
 
            
53
 
        elif seconds < 110:
54
 
            seconds -= 60
55
 
            secondary_msg = ngettext ("If you don't save, changes from the last minute and %ld "
56
 
                                      "second will be permanently lost.",
57
 
                                      "If you don't save, changes from the last minute and %ld "
58
 
                                      "seconds will be permanently lost.",
59
 
                                      seconds) % seconds
60
 
        elif seconds < 3600:
61
 
            minutes = seconds / 60
62
 
            secondary_msg = ngettext ("If you don't save, changes from the last %ld minute "
63
 
                                      "will be permanently lost.",
64
 
                                      "If you don't save, changes from the last %ld minutes "
65
 
                                      "will be permanently lost.",
66
 
                                      minutes) % minutes
67
 
        elif seconds < 7200:
68
 
            seconds -= 3600;
69
 
            minutes = seconds / 60;
70
 
            if minutes < 5:
71
 
                secondary_msg = _("If you don't save, changes from the last hour "
72
 
                                  "will be permanently lost.")
73
 
            else:
74
 
                secondary_msg = ngettext ("If you don't save, changes from the last hour and %d "
75
 
                                          "minute will be permanently lost.",
76
 
                                          "If you don't save, changes from the last hour and %d "
77
 
                                          "minutes will be permanently lost.",
78
 
                                          minutes) % minutes
79
 
        else:
80
 
            hours = seconds / 3600;
81
 
            secondary_msg = ngettext ("If you don't save, changes from the last %d hour "
82
 
                                      "will be permanently lost.",
83
 
                                      "If you don't save, changes from the last %d hours "
84
 
                                      "will be permanently lost.",
85
 
                                      hours) % hours
 
44
        secondary_msg = _("If you don't save, all changes will be permanently lost.")
86
45
                                                            
87
46
        self.format_secondary_text (secondary_msg)