File size: 7,846 Bytes
429308b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 |
# landing_translations.py
LANDING_TRANSLATIONS = {
'en': {
# Language selector
'select_language': "Select language - Selecciona tu idioma - Виберіть мову",
# Auth tabs
'login': "Login",
'register': "Sign Up",
# Login form
'email': "Email",
'password': "Password",
'login_button': "Login",
'invalid_credentials': "Invalid credentials",
# Registration form
'name': "Name",
'lastname': "Last Name",
'institution': "Institution",
'current_role': "Role in your institution",
'professor': "Professor",
'student': "Student",
'administrative': "Administrative",
'institutional_email': "Institutional email",
'interest_reason': "Why are you interested in trying AIdeaText?",
'submit_application': "Submit application",
'complete_all_fields': "Please complete all fields.",
'use_institutional_email': "Please use an institutional email.",
'application_sent': "Your application has been sent. We will contact you soon.",
'application_error': "There was a problem sending your application. Please try again later.",
# Info tabs
'use_cases': "Use Cases",
'presentation_videos': "Presentation Videos",
'academic_presentations': "Academic Presentations",
'event_photos': "Event Photos",
'version_control': "Version Control",
# Video selectors
'select_use_case': "Select a use case in English, Spanish or Ukrainian:",
'select_presentation': "Select a presentation:",
# Version control info
'latest_version_title': "Latest Version Updates",
'version_updates': [
"Improved interface for a better user experience",
"Optimization of morphosyntactic analysis",
"Support for Ukrainian language",
"New discourse analysis module",
"Integrated chat system for support"
]
},
'es': {
# Language selector
'select_language': "Selecciona tu idioma - Select language - Виберіть мову",
# Auth tabs
'login': "Iniciar Sesión",
'register': "Registrarse",
# Login form
'email': "Correo electrónico",
'password': "Contraseña",
'login_button': "Iniciar Sesión",
'invalid_credentials': "Credenciales incorrectas",
# Registration form
'name': "Nombre",
'lastname': "Apellidos",
'institution': "Institución",
'current_role': "Rol en la institución donde labora",
'professor': "Profesor",
'student': "Estudiante",
'administrative': "Administrativo",
'institutional_email': "Correo electrónico de su institución",
'interest_reason': "¿Por qué estás interesado en probar AIdeaText?",
'submit_application': "Enviar solicitud",
'complete_all_fields': "Por favor, completa todos los campos.",
'use_institutional_email': "Por favor, utiliza un correo electrónico institucional.",
'application_sent': "Tu solicitud ha sido enviada. Te contactaremos pronto.",
'application_error': "Hubo un problema al enviar tu solicitud. Por favor, intenta de nuevo más tarde.",
# Info tabs
'use_cases': "Casos de uso",
'presentation_videos': "Videos de presentaciones",
'academic_presentations': "Ponencias académicas",
'event_photos': "Fotos de eventos",
'version_control': "Control de versiones",
# Video selectors
'select_use_case': "Selecciona un caso de uso en español, inglés o ucraniano:",
'select_presentation': "Selecciona una conferencia:",
# Version control info
'latest_version_title': "Novedades de la versión actual",
'version_updates': [
"Interfaz mejorada para una mejor experiencia de usuario",
"Optimización del análisis morfosintáctico",
"Soporte para el idioma ucraniano",
"Nuevo módulo de análisis del discurso",
"Sistema de chat integrado para soporte"
]
},
'uk': {
# Language selector
'select_language': "Виберіть мову - Selecciona tu idioma - Select language",
# Auth tabs
'login': "Увійти",
'register': "Зареєструватися",
# Login form
'email': "Електронна пошта",
'password': "Пароль",
'login_button': "Увійти",
'invalid_credentials': "Невірні облікові дані",
# Registration form
'name': "Ім'я",
'lastname': "Прізвище",
'institution': "Установа",
'current_role': "Роль у вашій установі",
'professor': "Викладач",
'student': "Студент",
'administrative': "Адміністративний персонал",
'institutional_email': "Інституційна електронна пошта",
'interest_reason': "Чому ви зацікавлені у випробуванні AIdeaText?",
'submit_application': "Надіслати заявку",
'complete_all_fields': "Будь ласка, заповніть усі поля.",
'use_institutional_email': "Будь ласка, використовуйте інституційну електронну пошту.",
'application_sent': "Вашу заявку надіслано. Ми зв'яжемося з вами найближчим часом.",
'application_error': "Виникла проблема з надсиланням вашої заявки. Будь ласка, спробуйте пізніше.",
# Info tabs
'use_cases': "Приклади використання",
'presentation_videos': "Презентаційні відео",
'academic_presentations': "Академічні презентації",
'event_photos': "Фото подій",
'version_control': "Контроль версій",
# Video selectors
'select_use_case': "Виберіть приклад використання українською, англійською або іспанською мовою:",
'select_presentation': "Виберіть презентацію:",
# Version control info
'latest_version_title': "Останні оновлення версії",
'version_updates': [
"Покращений інтерфейс для кращого досвіду користувача",
"Оптимізація морфосинтаксичного аналізу",
"Підтримка української мови",
"Новий модуль аналізу дискурсу",
"Інтегрована система чату для підтримки"
]
}
}
def get_landing_translations(lang_code):
"""
Get translations for the landing page based on language code.
Args:
lang_code (str): Language code ('en', 'es', 'uk')
Returns:
dict: Dictionary with translations for the landing page
"""
# Default to Spanish if language not available
if lang_code not in LANDING_TRANSLATIONS:
lang_code = 'es'
return LANDING_TRANSLATIONS[lang_code] |