Spaces:
Sleeping
Sleeping
Commit ·
2f253f7
1
Parent(s): 6d52594
Fix duplicate error messages in Malaysian language
Browse files- Fixed duplicate 'Tiada hasil tersedia' messages in results page
- Separated error and info messages with distinct translation keys
- Added results_module_not_available and results_contact_support translation keys
- Error now shows: 'Modul hasil tidak tersedia'
- Info now shows: 'Sila hubungi sokongan jika isu ini berterusan.'
- app.py +2 -2
- utils/translations.py +4 -0
app.py
CHANGED
|
@@ -493,8 +493,8 @@ def show_results_page():
|
|
| 493 |
if results_page_func is not None:
|
| 494 |
results_page_func()
|
| 495 |
else:
|
| 496 |
-
st.error(t('
|
| 497 |
-
st.info(t('
|
| 498 |
|
| 499 |
def show_help_improve_page():
|
| 500 |
"""Display Help Us Improve page"""
|
|
|
|
| 493 |
if results_page_func is not None:
|
| 494 |
results_page_func()
|
| 495 |
else:
|
| 496 |
+
st.error(t('results_module_not_available', 'Results module not available'))
|
| 497 |
+
st.info(t('results_contact_support', 'Please contact support if this issue persists.'))
|
| 498 |
|
| 499 |
def show_help_improve_page():
|
| 500 |
"""Display Help Us Improve page"""
|
utils/translations.py
CHANGED
|
@@ -129,6 +129,8 @@ TRANSLATIONS = {
|
|
| 129 |
# Results
|
| 130 |
'results_title': 'Analysis Results',
|
| 131 |
'results_no_results': 'No results available',
|
|
|
|
|
|
|
| 132 |
'results_header': 'Agricultural Analysis Results',
|
| 133 |
'results_summary': 'Summary',
|
| 134 |
'results_step_analysis': 'Step-by-Step Analysis',
|
|
@@ -537,6 +539,8 @@ TRANSLATIONS = {
|
|
| 537 |
# Results
|
| 538 |
'results_title': 'Hasil Analisis',
|
| 539 |
'results_no_results': 'Tiada hasil tersedia',
|
|
|
|
|
|
|
| 540 |
'results_header': 'Hasil Analisis Pertanian',
|
| 541 |
'results_summary': 'Ringkasan',
|
| 542 |
'results_step_analysis': 'Analisis Langkah Demi Langkah',
|
|
|
|
| 129 |
# Results
|
| 130 |
'results_title': 'Analysis Results',
|
| 131 |
'results_no_results': 'No results available',
|
| 132 |
+
'results_module_not_available': 'Results module not available',
|
| 133 |
+
'results_contact_support': 'Please contact support if this issue persists.',
|
| 134 |
'results_header': 'Agricultural Analysis Results',
|
| 135 |
'results_summary': 'Summary',
|
| 136 |
'results_step_analysis': 'Step-by-Step Analysis',
|
|
|
|
| 539 |
# Results
|
| 540 |
'results_title': 'Hasil Analisis',
|
| 541 |
'results_no_results': 'Tiada hasil tersedia',
|
| 542 |
+
'results_module_not_available': 'Modul hasil tidak tersedia',
|
| 543 |
+
'results_contact_support': 'Sila hubungi sokongan jika isu ini berterusan.',
|
| 544 |
'results_header': 'Hasil Analisis Pertanian',
|
| 545 |
'results_summary': 'Ringkasan',
|
| 546 |
'results_step_analysis': 'Analisis Langkah Demi Langkah',
|