Skip to content

Commit 35afdec

Browse files
committed
Update the form to chose the usecase translation
1 parent 8ecb045 commit 35afdec

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed
81 Bytes
Binary file not shown.

app/locale/de/LC_MESSAGES/django.po

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2437,3 +2437,5 @@ msgstr "Eigenheim Optimierung mit Luftwärmepumpe"
24372437
msgid "Optimization with CHP"
24382438
msgstr "Optimierung mit BHWK"
24392439

2440+
msgid "Create project from usecase"
2441+
msgstr "Projekt aus Anwendungsfall erstellen"

app/projects/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ def __init__(self, *args, **kwargs):
353353
usecase_url = kwargs.pop("usecase_url", "usecase_url")
354354
super().__init__(*args, **kwargs)
355355
if usecase_qs is not None:
356-
self.fields["usecase"].choices = [(uc.id, uc.name) for uc in usecase_qs]
356+
self.fields["usecase"].choices = [(uc.id, _(uc.name)) for uc in usecase_qs]
357357
self.fields["usecase"].label = (
358358
_("Select a use case (or")
359359
+ f"<a href='{usecase_url}'>"

0 commit comments

Comments
 (0)