Update modules/ui/ui.py
Browse files- 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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]
|