コード例 #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
コード例 #2
0
ファイル: avatars.py プロジェクト: PaulWagener/khan-website
 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
コード例 #3
0
 def extended_description(self):
     return u"צבור %s נקודות אנרגיה" % util.thousands_separated_number(
         self.required_points)
コード例 #4
0
 def extended_description(self):
     return ("Verdien %s energie punten" %
             util.thousands_separated_number(self.required_points))
コード例 #5
0
 def extended_description(self):
     return ("Verdien %s energie punten" %
             util.thousands_separated_number(self.required_points))
コード例 #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
コード例 #7
0
 def extended_description(self):
     return ("Earn %s energy points" %
             util.thousands_separated_number(self.required_points))
コード例 #8
0
 def extended_description(self):
     return "Earn %s energy points" % util.thousands_separated_number(self.required_points)
コード例 #9
0
def thousands_separated(content):
    return util.thousands_separated_number(content)
コード例 #10
0
ファイル: avatars.py プロジェクト: Hao-Hsuan/KhanLatest
 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
コード例 #11
0
ファイル: templatefilters.py プロジェクト: di445/khanacademy
def thousands_separated(content):
    return util.thousands_separated_number(content)
コード例 #12
0
ファイル: privileges.py プロジェクト: KhanWorld/KhanAcademy
 def need_points_desc(points, verb):
     return "You need at least %s energy points to %s." % (util.thousands_separated_number(points), verb)
コード例 #13
0
 def need_points_desc(points, verb):
     return ("You need at least %s energy points to %s."
             % (util.thousands_separated_number(points), verb))
コード例 #14
0
ファイル: points_badges.py プロジェクト: di445/server
 def extended_description(self):
     return u"צבור %s נקודות אנרגיה" % util.thousands_separated_number(self.required_points)