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|
6 |
+
'select_language': "Select language",
|
7 |
+
|
8 |
+
# Auth tabs
|
9 |
+
'login': "Login",
|
10 |
+
'register': "Sign Up",
|
11 |
+
|
12 |
+
# Login form
|
13 |
+
'email': "Email",
|
14 |
+
'password': "Password",
|
15 |
+
'login_button': "Login",
|
16 |
+
'invalid_credentials': "Invalid credentials",
|
17 |
+
|
18 |
+
# Registration form
|
19 |
+
'name': "Name",
|
20 |
+
'lastname': "Last Name",
|
21 |
+
'institution': "Institution",
|
22 |
+
'current_role': "Role in your institution",
|
23 |
+
'professor': "Professor",
|
24 |
+
'student': "Student",
|
25 |
+
'administrative': "Administrative",
|
26 |
+
'institutional_email': "Institutional email",
|
27 |
+
'interest_reason': "Why are you interested in trying AIdeaText?",
|
28 |
+
'submit_application': "Submit application",
|
29 |
+
'complete_all_fields': "Please complete all fields.",
|
30 |
+
'use_institutional_email': "Please use an institutional email.",
|
31 |
+
'application_sent': "Your application has been sent. We will contact you soon.",
|
32 |
+
'application_error': "There was a problem sending your application. Please try again later.",
|
33 |
+
|
34 |
+
# Info tabs
|
35 |
+
'use_cases': "Use Cases",
|
36 |
+
'presentation_videos': "Presentation Videos",
|
37 |
+
'academic_presentations': "Academic Presentations",
|
38 |
+
'event_photos': "Event Photos",
|
39 |
+
'version_control': "Version Control",
|
40 |
+
|
41 |
+
# Video selectors
|
42 |
+
'select_use_case': "Select a use case in English or Spanish:",
|
43 |
+
'select_presentation': "Select a presentation:",
|
44 |
+
|
45 |
+
# Version control info
|
46 |
+
'latest_version_title': "Latest Version Updates",
|
47 |
+
'version_updates': [
|
48 |
+
"Improved interface for a better user experience",
|
49 |
+
"Optimization of morphosyntactic analysis",
|
50 |
+
"Support for multiple languages",
|
51 |
+
"New discourse analysis module",
|
52 |
+
"Integrated chat system for support"
|
53 |
+
]
|
54 |
+
},
|
55 |
+
'es': {
|
56 |
+
# Language selector
|
57 |
+
'select_language': "Selecciona tu idioma",
|
58 |
+
|
59 |
+
# Auth tabs
|
60 |
+
'login': "Iniciar Sesión",
|
61 |
+
'register': "Registrarse",
|
62 |
+
|
63 |
+
# Login form
|
64 |
+
'email': "Correo electrónico",
|
65 |
+
'password': "Contraseña",
|
66 |
+
'login_button': "Iniciar Sesión",
|
67 |
+
'invalid_credentials': "Credenciales incorrectas",
|
68 |
+
|
69 |
+
# Registration form
|
70 |
+
'name': "Nombre",
|
71 |
+
'lastname': "Apellidos",
|
72 |
+
'institution': "Institución",
|
73 |
+
'current_role': "Rol en la institución donde labora",
|
74 |
+
'professor': "Profesor",
|
75 |
+
'student': "Estudiante",
|
76 |
+
'administrative': "Administrativo",
|
77 |
+
'institutional_email': "Correo electrónico de su institución",
|
78 |
+
'interest_reason': "¿Por qué estás interesado en probar AIdeaText?",
|
79 |
+
'submit_application': "Enviar solicitud",
|
80 |
+
'complete_all_fields': "Por favor, completa todos los campos.",
|
81 |
+
'use_institutional_email': "Por favor, utiliza un correo electrónico institucional.",
|
82 |
+
'application_sent': "Tu solicitud ha sido enviada. Te contactaremos pronto.",
|
83 |
+
'application_error': "Hubo un problema al enviar tu solicitud. Por favor, intenta de nuevo más tarde.",
|
84 |
+
|
85 |
+
# Info tabs
|
86 |
+
'use_cases': "Casos de uso",
|
87 |
+
'presentation_videos': "Videos de presentaciones",
|
88 |
+
'academic_presentations': "Ponencias académicas",
|
89 |
+
'event_photos': "Fotos de eventos",
|
90 |
+
'version_control': "Control de versiones",
|
91 |
+
|
92 |
+
# Video selectors
|
93 |
+
'select_use_case': "Selecciona un caso de uso en español o en inglés:",
|
94 |
+
'select_presentation': "Selecciona una conferencia:",
|
95 |
+
|
96 |
+
# Version control info
|
97 |
+
'latest_version_title': "Novedades de la versión actual",
|
98 |
+
'version_updates': [
|
99 |
+
"Interfaz mejorada para una mejor experiencia de usuario",
|
100 |
+
"Optimización del análisis morfosintáctico",
|
101 |
+
"Soporte para múltiples idiomas",
|
102 |
+
"Nuevo módulo de análisis del discurso",
|
103 |
+
"Sistema de chat integrado para soporte"
|
104 |
+
]
|
105 |
+
},
|
106 |
+
'fr': {
|
107 |
+
# Language selector
|
108 |
+
'select_language': "Sélectionner la langue",
|
109 |
+
|
110 |
+
# Auth tabs
|
111 |
+
'login': "Se connecter",
|
112 |
+
'register': "S'inscrire",
|
113 |
+
|
114 |
+
# Login form
|
115 |
+
'email': "E-mail",
|
116 |
+
'password': "Mot de passe",
|
117 |
+
'login_button': "Se connecter",
|
118 |
+
'invalid_credentials': "Identifiants incorrects",
|
119 |
+
|
120 |
+
# Registration form
|
121 |
+
'name': "Nom",
|
122 |
+
'lastname': "Nom de famille",
|
123 |
+
'institution': "Institution",
|
124 |
+
'current_role': "Rôle dans votre institution",
|
125 |
+
'professor': "Professeur",
|
126 |
+
'student': "Étudiant",
|
127 |
+
'administrative': "Administratif",
|
128 |
+
'institutional_email': "E-mail institutionnel",
|
129 |
+
'interest_reason': "Pourquoi êtes-vous intéressé à essayer AIdeaText?",
|
130 |
+
'submit_application': "Soumettre la demande",
|
131 |
+
'complete_all_fields': "Veuillez remplir tous les champs.",
|
132 |
+
'use_institutional_email': "Veuillez utiliser un e-mail institutionnel.",
|
133 |
+
'application_sent': "Votre demande a été envoyée. Nous vous contacterons bientôt.",
|
134 |
+
'application_error': "Un problème est survenu lors de l'envoi de votre demande. Veuillez réessayer plus tard.",
|
135 |
+
|
136 |
+
# Info tabs
|
137 |
+
'use_cases': "Cas d'utilisation",
|
138 |
+
'presentation_videos': "Vidéos de présentation",
|
139 |
+
'academic_presentations': "Présentations académiques",
|
140 |
+
'event_photos': "Photos d'événements",
|
141 |
+
'version_control': "Contrôle de version",
|
142 |
+
|
143 |
+
# Video selectors
|
144 |
+
'select_use_case': "Sélectionnez un cas d'utilisation en français ou en anglais:",
|
145 |
+
'select_presentation': "Sélectionnez une conférence:",
|
146 |
+
|
147 |
+
# Version control info
|
148 |
+
'latest_version_title': "Mises à jour de la dernière version",
|
149 |
+
'version_updates': [
|
150 |
+
"Interface améliorée pour une meilleure expérience utilisateur",
|
151 |
+
"Optimisation de l'analyse morphosyntaxique",
|
152 |
+
"Support pour plusieurs langues",
|
153 |
+
"Nouveau module d'analyse du discours",
|
154 |
+
"Système de chat intégré pour le support"
|
155 |
+
]
|
156 |
+
},
|
157 |
+
'pt': {
|
158 |
+
# Language selector
|
159 |
+
'select_language': "Selecionar idioma",
|
160 |
+
|
161 |
+
# Auth tabs
|
162 |
+
'login': "Entrar",
|
163 |
+
'register': "Registrar-se",
|
164 |
+
|
165 |
+
# Login form
|
166 |
+
'email': "Email",
|
167 |
+
'password': "Senha",
|
168 |
+
'login_button': "Entrar",
|
169 |
+
'invalid_credentials': "Credenciais inválidas",
|
170 |
+
|
171 |
+
# Registration form
|
172 |
+
'name': "Nome",
|
173 |
+
'lastname': "Sobrenome",
|
174 |
+
'institution': "Instituição",
|
175 |
+
'current_role': "Função na sua instituição",
|
176 |
+
'professor': "Professor",
|
177 |
+
'student': "Estudante",
|
178 |
+
'administrative': "Administrativo",
|
179 |
+
'institutional_email': "Email institucional",
|
180 |
+
'interest_reason': "Por que você está interessado em experimentar o AIdeaText?",
|
181 |
+
'submit_application': "Enviar solicitação",
|
182 |
+
'complete_all_fields': "Por favor, preencha todos os campos.",
|
183 |
+
'use_institutional_email': "Por favor, use um email institucional.",
|
184 |
+
'application_sent': "Sua solicitação foi enviada. Entraremos em contato em breve.",
|
185 |
+
'application_error': "Houve um problema ao enviar sua solicitação. Por favor, tente novamente mais tarde.",
|
186 |
+
|
187 |
+
# Info tabs
|
188 |
+
'use_cases': "Casos de uso",
|
189 |
+
'presentation_videos': "Vídeos de apresentação",
|
190 |
+
'academic_presentations': "Apresentações acadêmicas",
|
191 |
+
'event_photos': "Fotos de eventos",
|
192 |
+
'version_control': "Controle de versão",
|
193 |
+
|
194 |
+
# Video selectors
|
195 |
+
'select_use_case': "Selecione um caso de uso em português ou inglês:",
|
196 |
+
'select_presentation': "Selecione uma conferência:",
|
197 |
+
|
198 |
+
# Version control info
|
199 |
+
'latest_version_title': "Atualizações da versão mais recente",
|
200 |
+
'version_updates': [
|
201 |
+
"Interface melhorada para uma melhor experiência do usuário",
|
202 |
+
"Otimização da análise morfossintática",
|
203 |
+
"Suporte para vários idiomas",
|
204 |
+
"Novo módulo de análise do discurso",
|
205 |
+
"Sistema de chat integrado para suporte"
|
206 |
+
]
|
207 |
+
}
|
208 |
+
}
|
209 |
+
|
210 |
+
def get_landing_translations(lang_code):
|
211 |
+
"""
|
212 |
+
Get translations for the landing page based on language code.
|
213 |
+
|
214 |
+
Args:
|
215 |
+
lang_code (str): Language code ('en', 'es', 'fr', 'pt')
|
216 |
+
|
217 |
+
Returns:
|
218 |
+
dict: Dictionary with translations for the landing page
|
219 |
+
"""
|
220 |
+
# Default to Spanish if language not available
|
221 |
+
if lang_code not in LANDING_TRANSLATIONS:
|
222 |
+
lang_code = 'es'
|
223 |
+
|
224 |
+
return LANDING_TRANSLATIONS[lang_code]
|