[damned-lies] Mark a string as translatable in EditMemberRoleForm (#630507)
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Mark a string as translatable in EditMemberRoleForm (#630507)
- Date: Fri, 24 Sep 2010 12:00:28 +0000 (UTC)
commit d8397e098e9248305a2e46f84023cd3d0503f30e
Author: Claude Paroz <claude 2xlibre net>
Date: Fri Sep 24 13:59:20 2010 +0200
Mark a string as translatable in EditMemberRoleForm (#630507)
Initial patch from Andika Triwidada
teams/forms.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/teams/forms.py b/teams/forms.py
index 3b2926b..1441abc 100644
--- a/teams/forms.py
+++ b/teams/forms.py
@@ -1,4 +1,5 @@
from django import forms
+from django.utils.translation import ugettext as _
from teams.models import Team, ROLE_CHOICES
class EditTeamDetailsForm(forms.ModelForm):
@@ -17,7 +18,7 @@ class EditMemberRoleForm(forms.Form):
def __init__(self, roles, *args, **kwargs):
super(EditMemberRoleForm, self).__init__(*args, **kwargs)
choices = list(ROLE_CHOICES[:-1]) # exclude last element: coordinator
- choices.append(('remove','Remove From Team'))
+ choices.append(('remove', _("Remove From Team")))
for role in roles:
self.fields[str(role.pk)] = forms.ChoiceField(
choices=choices,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]