Skip to content

Commit

Permalink
add translation for setup
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasJoKuJonas committed May 8, 2024
1 parent 78748c1 commit 16197f8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions custom_components/webuntis/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ def _show_form_user(
"klasse",
"teacher",
], # "subject", "room"
translation_key="timetable_source",
mode="dropdown",
)
),
Expand Down
15 changes: 14 additions & 1 deletion custom_components/webuntis/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@
"username": "Username",
"password": "Password",
"timetable_source": "Timetable source",
"timetable_source_id": "Full name/Class/Subject/Room"
"timetable_source_id": "Full name/Class"
},
"data_description": {
"timetable_source": "Select the source of the timetable",
"timetable_source_id": "Enter the full name of the student/teacher or the class name"
}
}
}
Expand Down Expand Up @@ -127,6 +131,15 @@
"lesson_change": "Lesson was swapped"
}
},
"timetable_source": {
"options": {
"student": "Student",
"klasse": "Klasse",
"teacher": "Teacher",
"subject": "Subject",
"room": "Raum"
}
},
"notify_template": {
"options": {
"message_title": "Message & Title",
Expand Down

0 comments on commit 16197f8

Please sign in to comment.