AIdeaText commited on
Commit
db4ea90
1 Parent(s): 3c9e41a

Update modules/ui/ui.py

Browse files
Files changed (1) hide show
  1. modules/ui/ui.py +19 -1
modules/ui/ui.py CHANGED
@@ -237,6 +237,7 @@ def register_form():
237
 
238
  ################################################################################
239
  def display_feedback_form(lang_code):
 
240
  translations = {
241
  'es': {
242
  'title': "Formulario de Retroalimentación",
@@ -247,7 +248,24 @@ def display_feedback_form(lang_code):
247
  'success': "¡Gracias por tu retroalimentación!",
248
  'error': "Hubo un problema al enviar el formulario. Por favor, intenta de nuevo."
249
  },
250
- # ... (traducciones para otros idiomas)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
251
  }
252
 
253
  t = translations[lang_code]
 
237
 
238
  ################################################################################
239
  def display_feedback_form(lang_code):
240
+ logging.info(f"display_feedback_form called with lang_code: {lang_code}")
241
  translations = {
242
  'es': {
243
  'title': "Formulario de Retroalimentación",
 
248
  'success': "¡Gracias por tu retroalimentación!",
249
  'error': "Hubo un problema al enviar el formulario. Por favor, intenta de nuevo."
250
  },
251
+ 'en': {
252
+ 'title': "Feedback Form",
253
+ 'name': "Name",
254
+ 'email': "Email",
255
+ 'feedback': "Your feedback",
256
+ 'submit': "Submit",
257
+ 'success': "Thank you for your feedback!",
258
+ 'error': "There was a problem submitting the form. Please try again."
259
+ },
260
+ 'fr': {
261
+ 'title': "Formulaire de Rétroaction",
262
+ 'name': "Nom",
263
+ 'email': "Adresse e-mail",
264
+ 'feedback': "Votre rétroaction",
265
+ 'submit': "Envoyer",
266
+ 'success': "Merci pour votre rétroaction !",
267
+ 'error': "Un problème est survenu lors de l'envoi du formulaire. Veuillez réessayer."
268
+ }
269
  }
270
 
271
  t = translations[lang_code]