]> git.openstreetmap.org Git - osqa.git/blob - forum_modules/default_badges/settings.py
initial import
[osqa.git] / forum_modules / default_badges / settings.py
1 from forum.settings import BADGES_SET
2 from forum.settings.base import Setting
3 from django.utils.translation import ugettext_lazy as _
4
5 POPULAR_QUESTION_VIEWS = Setting('POPULAR_QUESTION_VIEWS', 1000, BADGES_SET, dict(
6 label = _("Popular Question views"),
7 help_text = _("""
8 Number of question views required to award a Popular Question badge to the question author
9 """)))
10
11 NOTABLE_QUESTION_VIEWS = Setting('NOTABLE_QUESTION_VIEWS', 2500, BADGES_SET, dict(
12 label = _("Notable Question views"),
13 help_text = _("""
14 Number of question views required to award a Notable Question badge to the question author
15 """)))
16
17 FAMOUS_QUESTION_VIEWS = Setting('FAMOUS_QUESTION_VIEWS', 10000, BADGES_SET, dict(
18 label = _("Famous Question views"),
19 help_text = _("""
20 Number of question views required to award a Famous Question badge to the question author
21 """)))
22
23 NICE_ANSWER_VOTES_UP = Setting('NICE_ANSWER_VOTES_UP', 10, BADGES_SET, dict(
24 label = _("Nice Answer up votes"),
25 help_text = _("""
26 Number of up votes required to award a Nice Answer badge to the answer author
27 """)))
28
29 NICE_QUESTION_VOTES_UP = Setting('NICE_QUESTION_VOTES_UP', 10, BADGES_SET, dict(
30 label = _("Nice Question up votes"),
31 help_text = _("""
32 Number of up votes required to award a Nice Question badge to the question author
33 """)))
34
35 GOOD_ANSWER_VOTES_UP = Setting('GOOD_ANSWER_VOTES_UP', 25, BADGES_SET, dict(
36 label = _("Good Answer up votes"),
37 help_text = _("""
38 Number of up votes required to award a Good Answer badge to the answer author
39 """)))
40
41 GOOD_QUESTION_VOTES_UP = Setting('GOOD_QUESTION_VOTES_UP', 25, BADGES_SET, dict(
42 label = _("Good Question up votes"),
43 help_text = _("""
44 Number of up votes required to award a Good Question badge to the question author
45 """)))
46
47 GREAT_ANSWER_VOTES_UP = Setting('GREAT_ANSWER_VOTES_UP', 100, BADGES_SET, dict(
48 label = _("Great Answer up votes"),
49 help_text = _("""
50 Number of up votes required to award a Great Answer badge to the answer author
51 """)))
52
53 GREAT_QUESTION_VOTES_UP = Setting('GREAT_QUESTION_VOTES_UP', 100, BADGES_SET, dict(
54 label = _("Great Question up votes"),
55 help_text = _("""
56 Number of up votes required to award a Great Question badge to the question author
57 """)))
58
59 FAVORITE_QUESTION_FAVS = Setting('FAVORITE_QUESTION_FAVS', 25, BADGES_SET, dict(
60 label = _("Favorite Question favorite count"),
61 help_text = _("""
62 How many times a question needs to be favorited by other users to award a Favorite Question badge to the question author
63 """)))
64
65 STELLAR_QUESTION_FAVS = Setting('STELLAR_QUESTION_FAVS', 100, BADGES_SET, dict(
66 label = _("Stellar Question favorite count"),
67 help_text = _("""
68 How many times a question needs to be favorited by other users to award a Stellar Question badge to the question author
69 """)))
70
71 DISCIPLINED_MIN_SCORE = Setting('DISCIPLINED_MIN_SCORE', 3, BADGES_SET, dict(
72 label = _("Disciplined minimum score"),
73 help_text = _("""
74 Minimum score a question needs to have to award the Disciplined badge to an author of a question who deletes it.
75 """)))
76
77 PEER_PRESSURE_MAX_SCORE = Setting('PEER_PRESSURE_MAX_SCORE', -3, BADGES_SET, dict(
78 label = _("Peer Pressure maximum score"),
79 help_text = _("""
80 Maximum score a question needs to have to award the Peer Pressure badge to an author of a question who deletes it.
81 """)))
82
83 CIVIC_DUTY_VOTES = Setting('CIVIC_DUTY_VOTES', 300, BADGES_SET, dict(
84 label = _("Civic Duty votes"),
85 help_text = _("""
86 Number of votes an user needs to cast to be awarded the Civic Duty badge.
87 """)))
88
89 PUNDIT_COMMENT_COUNT = Setting('PUNDIT_COMMENT_COUNT', 10, BADGES_SET, dict(
90 label = _("Pundit number of comments"),
91 help_text = _("""
92 Number of comments an user needs to post to be awarded the Pundit badge.
93 """)))
94
95 SELF_LEARNER_UP_VOTES = Setting('SELF_LEARNER_UP_VOTES', 3, BADGES_SET, dict(
96 label = _("Self Learner up votes"),
97 help_text = _("""
98 Number of up votes an answer from the question author needs to have for the author to be awarded the Self Learner badge.
99 """)))
100
101 STRUNK_AND_WHITE_EDITS = Setting('STRUNK_AND_WHITE_EDITS', 100, BADGES_SET, dict(
102 label = _("Strunk and White updates"),
103 help_text = _("""
104 Number of question or answer updates an user needs to make to be awarded the Strunk & White badge.
105 """)))
106
107 ENLIGHTENED_UP_VOTES = Setting('ENLIGHTENED_UP_VOTES', 10, BADGES_SET, dict(
108 label = _("Enlightened up votes"),
109 help_text = _("""
110 Number of up votes an accepted answer needs to have for the author to be awarded the Enlightened badge.
111 """)))
112
113 GURU_UP_VOTES = Setting('GURU_UP_VOTES', 40, BADGES_SET, dict(
114 label = _("Guru up votes"),
115 help_text = _("""
116 Number of up votes an accepted answer needs to have for the author to be awarded the Guru badge.
117 """)))
118
119 NECROMANCER_UP_VOTES = Setting('NECROMANCER_UP_VOTES', 5, BADGES_SET, dict(
120 label = _("Necromancer up votes"),
121 help_text = _("""
122 Number of up votes an answer needs to have for the author to be awarded the Necromancer badge.
123 """)))
124
125 NECROMANCER_DIF_DAYS = Setting('NECROMANCER_DIF_DAYS', 60, BADGES_SET, dict(
126 label = _("Necromancer difference in days"),
127 help_text = _("""
128 Difference in days betwen the posted date of a question and an answer for the answer author to be awarded the Necromancer badge.
129 """)))
130
131 TAXONOMIST_USE_COUNT = Setting('TAXONOMIST_USE_COUNT', 50, BADGES_SET, dict(
132 label = _("Taxonomist usage count"),
133 help_text = _("""
134 How many usages a tag needs to have for the tag creator to be awarded the Taxonomist badge. 
135 """)))
136