added passwort for login and download, token-system

This commit is contained in:
oxidiert
2025-08-18 16:27:11 +02:00
parent 148af18496
commit a1736d0241
6 changed files with 192 additions and 85 deletions

View File

@ -17,7 +17,7 @@ object LanguageManager {
}
private fun injectDynamicValues(text: String): String {
val points = INTEGRATION_INDEX_POINTS ?: 0
val points = RHS_POINTS ?: 0
val color = when (points) {
in 1..12 -> "#4CAF50" // Grün
in 13..36 -> "#FFEB3B" // Gelb
@ -26,7 +26,7 @@ object LanguageManager {
}
val coloredPoints = "<b><font color='$color'>$points</font></b>"
return text.replace("INTEGRATION_INDEX_POINTS", coloredPoints)
return text.replace("RHS_POINTS", coloredPoints)
}
// Sprachdatenbank: Map<Sprachcode, Map<Text-ID, Text>>
@ -285,7 +285,7 @@ object LanguageManager {
"select_one_answer_per_row" to "Bitte wählen Sie eine Antwort pro Reihe aus!",
"no_next_question_defined" to "Keine Weiterleitungsseite definiert",
"date_consultation_health_interview_result" to "Datum Beratungsgespräch (zum Ergebnis Gesundheitsinterview grün/gelb/rot)",
"consultation_decision" to "Beratungsentscheidung (INTEGRATION_INDEX_POINTS)",
"consultation_decision" to "Beratungsentscheidung (RHS_POINTS)",
"consent_conversation_in_6_months" to "Einverständnis Gespräch in 6 Monaten:",
"participation_in_coaching" to "Teilnahme am Coaching",
"decision_after_reflection_period" to "Entscheidung am .............. (Datum) nach Bedenkzeit",
@ -580,7 +580,7 @@ object LanguageManager {
"select_one_answer_per_row" to "Please select one answer per row!",
"no_next_question_defined" to "No forwarding page defined",
"date_consultation_health_interview_result" to "Date of counseling interview (health interview result green/yellow/red)",
"consultation_decision" to "Counseling decision (INTEGRATION_INDEX_POINTS)",
"consultation_decision" to "Counseling decision (RHS_POINTS)",
"consent_conversation_in_6_months" to "Consent for conversation in 6 months:",
"participation_in_coaching" to "Participation in coaching",
"decision_after_reflection_period" to "Decision on .............. (date) after reflection period",
@ -878,7 +878,7 @@ object LanguageManager {
"select_one_answer_per_row" to "Veuillez sélectionner une réponse par ligne !",
"no_next_question_defined" to "Aucune page de redirection définie",
"date_consultation_health_interview_result" to "Date de lentretien de conseil (résultat de lentretien santé vert/jaune/rouge)",
"consultation_decision" to "Décision de conseil (INTEGRATION_INDEX_POINTS)",
"consultation_decision" to "Décision de conseil (RHS_POINTS)",
"consent_conversation_in_6_months" to "Consentement pour entretien dans 6 mois :",
"participation_in_coaching" to "Participation au coaching",
"decision_after_reflection_period" to "Décision le .............. (date) après période de réflexion",
@ -1172,7 +1172,7 @@ object LanguageManager {
"select_one_answer_per_row" to "Пожалуйста, выберите один ответ в каждой строке!",
"no_next_question_defined" to "Следующая страница не определена",
"date_consultation_health_interview_result" to "Дата консультации (результат медицинского интервью: зеленый/желтый/красный)",
"consultation_decision" to "Решение по консультации (INTEGRATION_INDEX_POINTS)",
"consultation_decision" to "Решение по консультации (RHS_POINTS)",
"consent_conversation_in_6_months" to "Согласие на разговор через 6 месяцев:",
"participation_in_coaching" to "Участие в коучинге",
"decision_after_reflection_period" to "Решение от .............. (дата) после периода раздумий",
@ -1470,7 +1470,7 @@ object LanguageManager {
"select_one_answer_per_row" to "Будь ласка, оберіть по одній відповіді в кожному рядку!",
"no_next_question_defined" to "Наступна сторінка не визначена",
"date_consultation_health_interview_result" to "Дата консультації (результат медичного інтерв’ю зелений/жовтий/червоний)",
"consultation_decision" to "Рішення консультації (INTEGRATION_INDEX_POINTS)",
"consultation_decision" to "Рішення консультації (RHS_POINTS)",
"consent_conversation_in_6_months" to "Згода на розмову через 6 місяців:",
"participation_in_coaching" to "Участь у коучингу",
"decision_after_reflection_period" to "Рішення .............. (дата) після періоду роздумів",
@ -1768,7 +1768,7 @@ object LanguageManager {
"select_one_answer_per_row" to "Lütfen her satır için bir cevap seçin!",
"no_next_question_defined" to "Bir yönlendirme sayfası tanımlanmadı",
"date_consultation_health_interview_result" to "Danışma görüşmesi tarihi (sağlık görüşmesi sonucu yeşil/sarı/kırmızı)",
"consultation_decision" to "Danışma kararı (INTEGRATION_INDEX_POINTS)",
"consultation_decision" to "Danışma kararı (RHS_POINTS)",
"consent_conversation_in_6_months" to "6 ay içinde görüşme onayı:",
"participation_in_coaching" to "Koçluğa katılım",
"decision_after_reflection_period" to "Karar .............. (tarih) tarihinde düşünme süresinden sonra verildi",
@ -2066,7 +2066,7 @@ object LanguageManager {
"select_one_answer_per_row" to "Proszę wybrać jedną odpowiedź w każdym wierszu!",
"no_next_question_defined" to "Nie zdefiniowano strony przekierowania",
"date_consultation_health_interview_result" to "Data rozmowy doradczej (wynik wywiadu zdrowotnego: zielony/żółty/czerwony)",
"consultation_decision" to "Decyzja doradcza (INTEGRATION_INDEX_POINTS)",
"consultation_decision" to "Decyzja doradcza (RHS_POINTS)",
"consent_conversation_in_6_months" to "Zgoda na rozmowę za 6 miesięcy:",
"participation_in_coaching" to "Udział w coachingu",
"decision_after_reflection_period" to "Decyzja dnia .............. (data) po czasie do namysłu",
@ -2662,7 +2662,7 @@ object LanguageManager {
"select_one_answer_per_row" to "Vă rugăm să selectați un răspuns pe rând!",
"no_next_question_defined" to "Nu este definită o pagină de redirecționare",
"date_consultation_health_interview_result" to "Data consilierii (rezultatul interviului de sănătate verde/galben/roșu)",
"consultation_decision" to "Decizia consilierii (INTEGRATION_INDEX_POINTS)",
"consultation_decision" to "Decizia consilierii (RHS_POINTS)",
"consent_conversation_in_6_months" to "Consimțământ discuție peste 6 luni:",
"participation_in_coaching" to "Participare la coaching",
"decision_after_reflection_period" to "Decizie la .............. (dată) după perioada de reflecție",
@ -2960,7 +2960,7 @@ object LanguageManager {
"select_one_answer_per_row" to "Por favor, seleccione una respuesta por fila.",
"no_next_question_defined" to "No se definió ninguna pregunta de continuación",
"date_consultation_health_interview_result" to "Fecha de la entrevista de orientación (sobre el resultado de la entrevista de salud: verde/amarillo/rojo)",
"consultation_decision" to "Decisión de orientación (INTEGRATION_INDEX_POINTS)",
"consultation_decision" to "Decisión de orientación (RHS_POINTS)",
"consent_conversation_in_6_months" to "Consentimiento para entrevista en 6 meses:",
"participation_in_coaching" to "Participación en el coaching",
"decision_after_reflection_period" to "Decisión tomada el .............. (fecha) después del período de reflexión",