Exemplo 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
Exemplo n.º 2
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
Exemplo n.º 3
0
 def extended_description(self):
     return u"צבור %s נקודות אנרגיה" % util.thousands_separated_number(
         self.required_points)
Exemplo n.º 4
0
 def extended_description(self):
     return ("Verdien %s energie punten" %
             util.thousands_separated_number(self.required_points))
Exemplo n.º 5
0
 def extended_description(self):
     return ("Verdien %s energie punten" %
             util.thousands_separated_number(self.required_points))
Exemplo n.º 6
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
Exemplo n.º 7
0
 def extended_description(self):
     return ("Earn %s energy points" %
             util.thousands_separated_number(self.required_points))
Exemplo n.º 8
0
 def extended_description(self):
     return "Earn %s energy points" % util.thousands_separated_number(self.required_points)
Exemplo n.º 9
0
def thousands_separated(content):
    return util.thousands_separated_number(content)
Exemplo n.º 10
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
Exemplo n.º 11
0
def thousands_separated(content):
    return util.thousands_separated_number(content)
Exemplo n.º 12
0
 def need_points_desc(points, verb):
     return "You need at least %s energy points to %s." % (util.thousands_separated_number(points), verb)
Exemplo n.º 13
0
 def need_points_desc(points, verb):
     return ("You need at least %s energy points to %s."
             % (util.thousands_separated_number(points), verb))
Exemplo n.º 14
0
 def extended_description(self):
     return u"צבור %s נקודות אנרגיה" % util.thousands_separated_number(self.required_points)