From 068bb7dc78d0b3565c100b61acc859ede0adc0d4 Mon Sep 17 00:00:00 2001 From: Mike Chen Date: Wed, 29 Jul 2009 00:00:52 +0800 Subject: merge Evgeny's English and Botum's Spanish translations --- forum/models.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'forum/models.py') diff --git a/forum/models.py b/forum/models.py index 290c9d56..570db274 100644 --- a/forum/models.py +++ b/forum/models.py @@ -10,6 +10,7 @@ from django.contrib.contenttypes import generic from django.contrib.contenttypes.models import ContentType from django.template.defaultfilters import slugify from django.db.models.signals import post_delete, post_save, pre_save +from django.utils.translation import ugettext as _ import django.dispatch from forum.managers import * @@ -312,9 +313,9 @@ class Badge(models.Model): SILVER = 2 BRONZE = 3 TYPE_CHOICES = ( - (GOLD, u'金牌'), - (SILVER, u'银牌'), - (BRONZE, u'铜牌'), + (GOLD, _('gold')), + (SILVER, _('silver')), + (BRONZE, _('bronze')), ) name = models.CharField(max_length=50) @@ -650,4 +651,4 @@ mark_offensive.connect(record_mark_offensive, sender=Question) mark_offensive.connect(record_mark_offensive, sender=Answer) tags_updated.connect(record_update_tags, sender=Question) post_save.connect(record_favorite_question, sender=FavoriteQuestion) -user_updated.connect(record_user_full_updated, sender=User) \ No newline at end of file +user_updated.connect(record_user_full_updated, sender=User) -- cgit v1.2.3-1-g7c22