Update year to 2009 in various places
[zeroinstall/zeroinstall-rsl.git] / zeroinstall / 0launch-gui / freshness.py
blob159ecdeaa65378f736b235cec1d94bfc2c74bca0
1 # Copyright (C) 2009, Thomas Leonard
2 # See the README file for details, or visit http://0install.net.
4 class Freshness(object):
5 __slots__ = ['time', 'text']
7 def __init__(self, time, text):
8 self.time = time
9 self.text = text
11 def __str__(self):
12 return self.text
14 freshness_levels = [
15 Freshness(-1, _('No automatic updates')),
16 #Freshness(60, _('Up to one minute old')),
17 #Freshness(60 * 60, _('Up to one hour old')),
18 Freshness(24 * 60 * 60, _('Up to one day old')),
19 Freshness(7 * 24 * 60 * 60, _('Up to one week old')),
20 Freshness(30 * 24 * 60 * 60, _('Up to one month old')),
21 Freshness(365 * 24 * 60 * 60, _('Up to one year old')),