aboutsummaryrefslogtreecommitdiffstats
path: root/src/account
diff options
context:
space:
mode:
Diffstat (limited to 'src/account')
-rw-r--r--src/account/forms.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/account/forms.py b/src/account/forms.py
index 3b9c627..dd1a0a9 100644
--- a/src/account/forms.py
+++ b/src/account/forms.py
@@ -10,6 +10,7 @@
import django.forms as forms
import pytz as pytz
+from django.utils.translation import gettext_lazy as _
from account.models import UserProfile
@@ -18,5 +19,10 @@ class AccountSettingsForm(forms.ModelForm):
class Meta:
model = UserProfile
fields = ['company', 'email_addr', 'ssh_public_key', 'pgp_public_key', 'timezone']
+ labels = {
+ 'email_addr': _('Email Address'),
+ 'ssh_public_key': _('SSH Public Key'),
+ 'pgp_public_key': _('PGP Public Key')
+ }
timezone = forms.ChoiceField(choices=[(x, x) for x in pytz.common_timezones], initial='UTC')