[sabayon] Removed complicated, and hard-to-translate time based save confirm messages with a single nice easy



commit b9a83b7b3031491ab98538b61493f9ef2519571d
Author: Scott Balneaves <sbalneav ltsp org>
Date:   Sat Dec 19 23:28:17 2009 -0600

    Removed complicated, and hard-to-translate time based save confirm messages with a single nice easy to translate string.

 admin-tool/saveconfirm.py |   43 +------------------------------------------
 1 files changed, 1 insertions(+), 42 deletions(-)
---
diff --git a/admin-tool/saveconfirm.py b/admin-tool/saveconfirm.py
index b53b98d..42f9c91 100755
--- a/admin-tool/saveconfirm.py
+++ b/admin-tool/saveconfirm.py
@@ -41,47 +41,6 @@ class SaveConfirmationAlert (gtk.MessageDialog):
                          _("Save changes to profile \"%s\" before closing?") % profile_name
                          + "</b>")
 
-        if seconds < 55:
-            secondary_msg = ngettext ("If you don't save, changes from the last %ld second "
-                                      "will be permanently lost.",
-                                      "If you don't save, changes from the last %ld seconds "
-                                      "will be permanently lost.",
-                                      seconds) % seconds
-        elif seconds < 75:
-            secondary_msg = _("If you don't save, changes from the last minute will be permanently lost.")
-            
-        elif seconds < 110:
-            seconds -= 60
-            secondary_msg = ngettext ("If you don't save, changes from the last minute and %ld "
-                                      "second will be permanently lost.",
-                                      "If you don't save, changes from the last minute and %ld "
-                                      "seconds will be permanently lost.",
-                                      seconds) % seconds
-        elif seconds < 3600:
-            minutes = seconds / 60
-            secondary_msg = ngettext ("If you don't save, changes from the last %ld minute "
-                                      "will be permanently lost.",
-                                      "If you don't save, changes from the last %ld minutes "
-                                      "will be permanently lost.",
-                                      minutes) % minutes
-        elif seconds < 7200:
-            seconds -= 3600;
-            minutes = seconds / 60;
-            if minutes < 5:
-                secondary_msg = _("If you don't save, changes from the last hour "
-                                  "will be permanently lost.")
-            else:
-                secondary_msg = ngettext ("If you don't save, changes from the last hour and %d "
-                                          "minute will be permanently lost.",
-                                          "If you don't save, changes from the last hour and %d "
-                                          "minutes will be permanently lost.",
-                                          minutes) % minutes
-        else:
-            hours = seconds / 3600;
-            secondary_msg = ngettext ("If you don't save, changes from the last %d hour "
-                                      "will be permanently lost.",
-                                      "If you don't save, changes from the last %d hours "
-                                      "will be permanently lost.",
-                                      hours) % hours
+        secondary_msg = _("If you don't save, all changes will be permanently lost.")
                                                             
         self.format_secondary_text (secondary_msg)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]