diff options
author | Mike Chen <chagel@gmail.com> | 2009-07-29 00:01:16 +0800 |
---|---|---|
committer | Mike Chen <chagel@gmail.com> | 2009-07-29 00:01:16 +0800 |
commit | b6aa7c847234ed985ec693c53633a7f0f3e2cd9c (patch) | |
tree | 0ec7772b1fa7c1a88bd60c585cc0c8a7adbccc1a /forum/const.py | |
parent | 0173b3d5978a81d785ec1431f09f325e45114709 (diff) | |
download | askbot-b6aa7c847234ed985ec693c53633a7f0f3e2cd9c.tar.gz askbot-b6aa7c847234ed985ec693c53633a7f0f3e2cd9c.tar.bz2 askbot-b6aa7c847234ed985ec693c53633a7f0f3e2cd9c.zip |
merge Evgeny's English and Botum's Spanish translations
Diffstat (limited to 'forum/const.py')
-rw-r--r-- | forum/const.py | 74 |
1 files changed, 36 insertions, 38 deletions
diff --git a/forum/const.py b/forum/const.py index d285de7d..f6649cc4 100644 --- a/forum/const.py +++ b/forum/const.py @@ -1,18 +1,19 @@ -# encoding:utf-8 +# encoding:utf-8 +from django.utils.translation import ugettext as _ """ All constants could be used in other modules For reasons that models, views can't have unicode text in this project, all unicode text go here. """ CLOSE_REASONS = ( - (1, u'完全重复的问题'), - (2, u'不是编程技术问题'), - (3, u'太主观性、引起争吵的问题'), - (4, u'不是一个可以回答的“问题”'), - (5, u'问题已经解决,已得到正确答案'), - (6, u'已经过时、不可重现的问题'), - (7, u'太局部、本地化的问题'), - (8, u'恶意言论'), - (9, u'垃圾广告'), + (1, _('duplicate question')), + (2, _('question if off-topic or not relevant')), + (3, _('too subjective and argumentative')), + (4, _('is not an answer to the question')), + (5, _('the question is answered, right answer was accepted')), + (6, _('problem is not reproducible or outdated')), + #(7, u'太局部、本地化的问题',) + (7, _('question contains offensive inappropriate, or malicious remarks')), + (8, _('spam or advertising')), ) TYPE_REPUTATION = ( @@ -52,38 +53,35 @@ TYPE_ACTIVITY_USER_FULL_UPDATED = 17 #TYPE_ACTIVITY_EDIT_ANSWER=18 TYPE_ACTIVITY = ( - (TYPE_ACTIVITY_ASK_QUESTION, u'提问'), - (TYPE_ACTIVITY_ANSWER, u'回答'), - (TYPE_ACTIVITY_COMMENT_QUESTION, u'评论问题'), - (TYPE_ACTIVITY_COMMENT_ANSWER, u'评论回答'), - (TYPE_ACTIVITY_UPDATE_QUESTION, u'修改问题'), - (TYPE_ACTIVITY_UPDATE_ANSWER, u'修改回答'), - (TYPE_ACTIVITY_PRIZE, u'获奖'), - (TYPE_ACTIVITY_MARK_ANSWER, u'标记最佳答案'), - (TYPE_ACTIVITY_VOTE_UP, u'投赞成票'), - (TYPE_ACTIVITY_VOTE_DOWN, u'投反对票'), - (TYPE_ACTIVITY_CANCEL_VOTE, u'撤销投票'), - (TYPE_ACTIVITY_DELETE_QUESTION, u'删除问题'), - (TYPE_ACTIVITY_DELETE_ANSWER, u'删除回答'), - (TYPE_ACTIVITY_MARK_OFFENSIVE, u'标记垃圾帖'), - (TYPE_ACTIVITY_UPDATE_TAGS, u'更新标签'), - (TYPE_ACTIVITY_FAVORITE, u'收藏'), - (TYPE_ACTIVITY_USER_FULL_UPDATED, u'完成个人所有资料'), - #(TYPE_ACTIVITY_EDIT_QUESTION, u'编辑问题'), - #(TYPE_ACTIVITY_EDIT_ANSWER, u'编辑答案'), + (TYPE_ACTIVITY_ASK_QUESTION, _('question')), + (TYPE_ACTIVITY_ANSWER, _('answer')), + (TYPE_ACTIVITY_COMMENT_QUESTION, _('commented question')), + (TYPE_ACTIVITY_COMMENT_ANSWER, _('commented answer')), + (TYPE_ACTIVITY_UPDATE_QUESTION, _('edited question')), + (TYPE_ACTIVITY_UPDATE_ANSWER, _('edited answer')), + (TYPE_ACTIVITY_PRIZE, _('received award')), + (TYPE_ACTIVITY_MARK_ANSWER, _('marked best answer')), + (TYPE_ACTIVITY_VOTE_UP, _('upvoted')), + (TYPE_ACTIVITY_VOTE_DOWN, _('downvoted')), + (TYPE_ACTIVITY_CANCEL_VOTE, _('canceled vote')), + (TYPE_ACTIVITY_DELETE_QUESTION, _('deleted question')), + (TYPE_ACTIVITY_DELETE_ANSWER, _('deleted answer')), + (TYPE_ACTIVITY_MARK_OFFENSIVE, _('marked offensive')), + (TYPE_ACTIVITY_UPDATE_TAGS, _('updated tags')), + (TYPE_ACTIVITY_FAVORITE, _('selected favorite')), + (TYPE_ACTIVITY_USER_FULL_UPDATED, _('completed user profile')), ) TYPE_RESPONSE = { - 'QUESTION_ANSWERED' : u'回答问题', - 'QUESTION_COMMENTED': u'问题评论', - 'ANSWER_COMMENTED' : u'回答评论', - 'ANSWER_ACCEPTED' : u'最佳答案', + 'QUESTION_ANSWERED' : 'question_answered', + 'QUESTION_COMMENTED': 'question_commented', + 'ANSWER_COMMENTED' : 'answer_commented', + 'ANSWER_ACCEPTED' : 'answer_accepted', } CONST = { - 'closed' : u' [已关闭]', - 'deleted' : u' [已删除]', - 'default_version' : u'初始版本', - 'retagged' : u'更新了标签', - + 'closed' : _('[closed]'), + 'deleted' : _('[deleted]'), + 'default_version' : _('initial version'), + 'retagged' : _('retagged'), } |