Skip to content
This repository was archived by the owner on Jul 20, 2023. It is now read-only.

Commit 08c5d56

Browse files
bugfix: Colorscheme selector in the profile did not have a translation
1 parent 130d6da commit 08c5d56

File tree

3 files changed

+34
-10
lines changed

3 files changed

+34
-10
lines changed

locale/en/LC_MESSAGES/django.po

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2002,22 +2002,22 @@ msgstr "black"
20022002
msgid "Farbe"
20032003
msgstr "Color"
20042004

2005-
#: userprofile/forms.py
2005+
#: userprofile/forms.py userprofile/models.py
2006+
msgid "Farbschema"
2007+
msgstr "Color-scheme"
2008+
2009+
#: userprofile/models.py
20062010
msgid "Systemstandard (Standard)"
20072011
msgstr "System standard (default)"
20082012

2009-
#: userprofile/forms.py
2013+
#: userprofile/models.py
20102014
msgid "Hell"
20112015
msgstr "Light"
20122016

2013-
#: userprofile/forms.py
2017+
#: userprofile/models.py
20142018
msgid "Dunkel"
20152019
msgstr "Dark"
20162020

2017-
#: userprofile/forms.py userprofile/models.py
2018-
msgid "Farbschema"
2019-
msgstr "Color-scheme"
2020-
20212021
#: userprofile/models.py
20222022
msgid "Sort-ID"
20232023
msgstr "Sort id"
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Generated by Django 4.0 on 2021-12-16 21:07
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
("userprofile", "0010_profile_colormode"),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name="profile",
15+
name="colormode",
16+
field=models.CharField(
17+
blank=True,
18+
choices=[("default", "Systemstandard (Standard)"), ("light", "Hell"), ("dark", "Dunkel")],
19+
default="default",
20+
max_length=30,
21+
verbose_name="Farbschema",
22+
),
23+
),
24+
]

userprofile/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ class Profile(models.Model):
2121
CM_DARK = "dark"
2222
CM_LIGHT = "light"
2323
CM_CHOICES = (
24-
(CM_DEFAULT, "Systemstandard"),
25-
(CM_LIGHT, "Hell"),
26-
(CM_DARK, "Dunkel"),
24+
(CM_DEFAULT, _("Systemstandard (Standard)")),
25+
(CM_LIGHT, _("Hell")),
26+
(CM_DARK, _("Dunkel")),
2727
)
2828
colormode = models.CharField(
2929
_("Farbschema"),

0 commit comments

Comments
 (0)