Ejemplo n.º 1
0
 def __init__(self, title, min_points, max_points=-1):
     if max_points == -1:
         title = ("%s (%s+ points)"
                  % (title, thousands_separated_number(min_points)))
     else:
         title = ("%s (%s - %s points)"
                  % (title,
                     thousands_separated_number(min_points),
                     thousands_separated_number(max_points)))
     super(AvatarPointsCategory, self).__init__(title)
     self.min_points = min_points
     self.max_points = max_points
Ejemplo n.º 2
0
 def extended_description(self):
     return ("Verdien %s energie punten" %
             util.thousands_separated_number(self.required_points))
Ejemplo n.º 3
0
 def extended_description(self):
     return "Earn %s energy points" % util.thousands_separated_number(self.required_points)
Ejemplo n.º 4
0
def thousands_separated(content):
    return util.thousands_separated_number(content)
Ejemplo n.º 5
0
 def __init__(self, title, min_points):
     if min_points > 0:
         title = ("%s (%s+ points)"
                 % (title, thousands_separated_number(min_points)))
     super(AvatarPointsCategory, self).__init__(title)
     self.min_points = min_points
Ejemplo n.º 6
0
 def need_points_desc(points, verb):
     return "You need at least %s energy points to %s." % (util.thousands_separated_number(points), verb)
Ejemplo n.º 7
0
 def extended_description(self):
     return u"צבור %s נקודות אנרגיה" % util.thousands_separated_number(self.required_points)