AIdeaText commited on
Commit
737e96a
·
verified ·
1 Parent(s): 139a62a

Update translations/en.py

Browse files
Files changed (1) hide show
  1. translations/en.py +356 -356
translations/en.py CHANGED
@@ -1,357 +1,357 @@
1
- # translations/en.py
2
-
3
- COMMON = {
4
- # A
5
- 'initial_instruction': "To start a new semantic analysis, upload a new text file (.txt)",
6
- 'analysis_complete': "Analysis complete and saved. To perform a new analysis, upload another file.",
7
- 'current_analysis_message': "Showing analysis of file: {}. To perform a new analysis, please upload another file.",
8
- 'upload_prompt': "Attach a file to start the analysis",
9
- 'analysis_completed': "Analysis completed",
10
- 'analysis_section': "Semantic Analysis",
11
- 'analyze_document': 'Analyze document',
12
- 'analysis_saved_success': 'Analysis saved successfully',
13
- 'analysis_save_error': 'Error saving the analysis',
14
- 'analyze_button': "Analyze text",
15
- 'analyzing_doc': "Analyzing document",
16
- 'activities_message':"Activities messages",
17
- 'activities_placeholder':"Activities placeholder",
18
- 'analysis_placeholder':"Analysis placeholder",
19
- 'analyze_button' : "Analyze",
20
- 'analysis_types_chart' : "Analyze type chart",
21
- 'analysis_from': "Analysis carried out on",
22
- # C
23
- 'chat_title': "Analysis Chat",
24
- 'export_button': "Export Current Analysis",
25
- 'export_success': "Analysis and chat exported successfully.",
26
- 'export_error': "There was a problem exporting the analysis and chat.",
27
- 'get_text': "Get text.",
28
- 'hello': "Hello",
29
- # L
30
- 'logout': "End session.",
31
- 'loading_data': "Loading data",
32
- 'load_selected_file': 'Load selected file',
33
- # N
34
- 'no_analysis': "No analysis available. Use the chat to perform an analysis.",
35
- 'nothing_to_export': "No analysis or chat to export.",
36
- 'results_title': "Analysis Results",
37
- 'select_language': "Language select",
38
- 'student_activities':"Student activities",
39
- # T
40
- 'total_analyses': "Total analyses",
41
- # W
42
- 'welcome': "Welcome to AIdeaText"
43
- }
44
-
45
- TABS = {
46
- 'current_situation_tab': "Current situation",
47
- 'morpho_tab': "Morphosyntactic analysis",
48
- 'semantic_live_tab': "Semantic live",
49
- 'semantic_tab': "Semantic analysis",
50
- 'discourse_live_tab': "Discourse live",
51
- 'discourse_tab': "Discourse analysis",
52
- 'activities_tab': "My activities",
53
- 'feedback_tab': "Feedback form"
54
- }
55
-
56
- CURRENT_SITUATION = {
57
- 'title': "My Current Situation",
58
- 'input_prompt': "Write or paste your text here:",
59
- 'first_analyze_button': "Analyze my writing",
60
- 'processing': "Analyzing...",
61
- 'analysis_error': "Error analyzing text",
62
- 'help': "We will analyze your text to determine its current status", # <-- Added this line
63
- # Radio buttons for text type
64
- 'text_type_header': "Text type",
65
- 'text_type_help': "Select the text type to adjust evaluation criteria",
66
- # Metrics
67
- 'vocabulary_label': "Vocabulary",
68
- 'vocabulary_help': "Richness and variety of vocabulary",
69
- 'structure_label': "Structure",
70
- 'structure_help': "Organization and complexity of sentences",
71
- 'cohesion_label': "Cohesion",
72
- 'cohesion_help': "Connection and fluidity between ideas",
73
- 'clarity_label': "Clarity",
74
- 'clarity_help': "Ease of text comprehension",
75
- # Metric states
76
- 'metric_improvement': "⚠️ Needs improvement",
77
- 'metric_acceptable': "📈 Acceptable",
78
- 'metric_optimal': "✅ Optimal",
79
- 'metric_target': "Goal: {:.2f}",
80
- # Errors
81
- 'error_interface': "An error occurred while loading the interface",
82
- 'error_results': "Error displaying results",
83
- 'error_chart': "Error displaying chart"
84
- }
85
-
86
- MORPHOSYNTACTIC = {
87
- #A
88
- 'arc_diagram': "Syntactic analysis: Arc diagram",
89
- #B
90
- 'tab_text_baseline': "Produce first text",
91
- 'tab_iterations': "Produce new versions of the first text",
92
-
93
- # Pestaña 1 texto base
94
- 'btn_new_morpho_analysis': "New morphosyntactic analysis",
95
- 'btn_analyze_baseline': "Analyze the entered text",
96
- 'input_baseline_text': "Enter the first text to analyze",
97
- 'warn_enter_text': "Please enter a text to analyze",
98
- 'error_processing_baseline': "Error processing the initial text",
99
- 'arc_diagram_baseline_label': "Arc diagram of the initial text",
100
- 'baseline_diagram_not_available': "Arc diagram of the initial text not available",
101
-
102
- # Pestaña 2 Iteración del texto
103
- 'info_first_analyze_base': "Check if the initial text exists",
104
- 'iteration_text_subheader': "New version of the initial text",
105
- 'input_iteration_text': "Enter a new version of the initial text and compare both texts' arcs",
106
- 'btn_analyze_iteration': "Analyze changes",
107
- 'warn_enter_iteration_text': "Enter a new version of the initial text and compare both texts' arcs",
108
- 'iteration_saved': "Changes saved successfully",
109
- 'error_iteration': "Error processing the new changes"
110
- }
111
-
112
- SEMANTIC = {
113
- # A
114
-
115
- # C
116
- 'chat_title': "Semantic Analysis Chat",
117
- 'chat_placeholder': "Ask a question or use a command (/summary, /entities, /sentiment, /topics, /concept_graph, /entity_graph, /topic_graph)",
118
- 'clear_chat': "Clear chat",
119
- 'conceptual_relations': "Conceptual Relations",
120
- # D
121
- 'delete_file': "Delete file",
122
- # E
123
- 'error_message': "There was a problem saving the semantic analysis. Please try again.",
124
- # F
125
- 'file_uploader': "Or upload a text file",
126
- 'file_upload_success': "File uploaded and saved successfully",
127
- 'file_upload_error': 'Error uploading file',
128
- 'file_section': "Files",
129
- 'file_loaded_success': "File loaded successfully",
130
- 'file_load_error': "Error loading file",
131
- 'file_upload_error': "Error uploading and saving file",
132
- 'file_deleted_success': 'File deleted successfully',
133
- 'file_delete_error': 'Error deleting file',
134
- # G
135
- 'graph_title': "Semantic Analysis Visualization",
136
- # I
137
- 'identified_entities': "Identified Entities",
138
- # K
139
- 'key_concepts': "Key Concepts",
140
- # N
141
- 'no_analysis': "No analysis available. Please upload or select a file.",
142
- 'no_results': "No results available. Please perform an analysis first.",
143
- 'no_file': "Please upload a file to start the analysis.",
144
- 'no_file_selected': "Please select an archive to start the analysis.",
145
- # S
146
- 'semantic_title': "Semantic Analysis",
147
- 'semantic_initial_message': "This is a general-purpose chatbot, but it has a specific function for visual text analysis: it generates a graph with the main entities of the text. To produce it, enter a text file in txt, pdf, doc, docx or odt format and press the 'analyze file' button. After generating the graph, you can interact with the chat based on the document.",
148
- 'send_button': "Send",
149
- 'select_saved_file': "Select saved file",
150
- 'success_message': "Semantic analysis saved successfully.",
151
- 'semantic_analyze_button': 'Semantic Analysis',
152
- 'semantic_export_button': 'Export Semantic Analysis',
153
- 'semantic_new_button': 'New Semantic Analysis',
154
- 'semantic_file_uploader': 'Upload a text file for semantic analysis',
155
- # T
156
- 'text_input_label': "Enter a text to analyze (max. 5,000 words):",
157
- 'text_input_placeholder': "The purpose of this application is to improve your writing skills...",
158
- 'title': "AIdeaText - Semantic Analysis",
159
- # U
160
- 'upload_file': "Upload file",
161
- # W
162
- 'warning_message': "Please enter a text or upload a file to analyze."
163
- }
164
-
165
- DISCOURSE = {
166
- 'file1_label': "Pattern Document",
167
- 'file2_label': "Compared Document",
168
- 'discourse_title': "AIdeaText - Discourse Analysis",
169
- 'file_uploader1': "Upload text file 1 (Pattern)",
170
- 'file_uploader2': "Upload text file 2 (Comparison)",
171
- 'discourse_analyze_button': "Discourse Analysis",
172
- 'discourse_initial_message': "This is a general purpose chatbot, but it has a specific function for visual text analysis: it generates two graphs with the main entities of each file to make a comparison between both texts. To produce it, enter one file first and then another in txt, pdf, doc, docx or odt format and press the 'analyze file' button. After the graph is generated, you can interact with the chat based on the document.",
173
- 'analyze_button': "Analyze texts",
174
- 'comparison': "Comparison of Semantic Relations",
175
- 'success_message': "Discourse analysis saved successfully.",
176
- 'error_message': "There was a problem saving the discourse analysis. Please try again.",
177
- 'warning_message': "Please upload both files to analyze.",
178
- 'no_results': "No results available. Please perform an analysis first.",
179
- 'key_concepts': "Key Concepts",
180
- 'graph_not_available': "The graph is not available.",
181
- 'concepts_not_available': "Key concepts are not available.",
182
- 'comparison_not_available': "The comparison is not available.",
183
- 'warning_message': "Please enter a text or upload a file to analyze.",
184
- 'morphosyntax_history': "Morphosyntax history",
185
- 'analysis_of': "Analysis of"
186
- }
187
-
188
- ACTIVITIES = {
189
- # Nuevas etiquetas actualizadas
190
- 'current_situation_activities': "Records of function: My Current Situation",
191
- 'morpho_activities': "Records of my morphosyntactic analyses",
192
- 'semantic_activities': "Records of my semantic analyses",
193
- 'discourse_activities': "Records of my text comparison analyses",
194
- 'chat_activities': "Records of my conversations with the virtual tutor",
195
-
196
- # Mantener otras claves existentes
197
- 'current_situation_tab': "Current situation",
198
- 'morpho_tab': "Morphosyntactic analysis",
199
- 'semantic_tab': "Semantic analysis",
200
- 'discourse_tab': "Text comparison analysis",
201
- 'activities_tab': "My activities record",
202
- 'feedback_tab': "Feedback form",
203
-
204
- # Resto de las claves que estén en el diccionario ACTIVITIES
205
- 'analysis_types_chart_title': "Types of analyses performed",
206
- 'analysis_types_chart_x': "Analysis type",
207
- 'analysis_types_chart_y': "Count",
208
- 'analysis_from': "Analysis from",
209
- 'assistant': "Assistant",
210
- 'activities_summary': "Activities and Progress Summary",
211
- 'chat_history_expander': "Chat History",
212
- 'chat_from': "Chat from",
213
- 'combined_graph': "Combined Graph",
214
- 'conceptual_relations_graph': "Conceptual Relations Graph",
215
- 'conversation': "Conversation",
216
- 'discourse_analyses_expander': "Text Comparison Analyses History", # Actualizado
217
- 'discourse_analyses': "Text Comparison Analyses", # Actualizado
218
- 'discourse_history': "Text Comparison Analysis History", # Actualizado
219
- 'document': "Document",
220
- 'data_load_error': "Error loading student data",
221
- 'graph_display_error': "Could not display the graph",
222
- 'graph_doc1': "Graph document 1",
223
- 'graph_doc2': "Graph document 2",
224
- 'key_concepts': "Key concepts",
225
- 'loading_data': "Loading student data...",
226
- 'morphological_analysis': "Morphological Analysis",
227
- 'morphosyntax_analyses_expander': "Morphosyntactic Analyses History",
228
- 'morphosyntax_history': "Morphosyntactic Analysis History",
229
- 'no_arc_diagram': "No arc diagram found for this analysis.",
230
- 'no_chat_history': "No conversations with the Virtual Tutor were found.", # Actualizado
231
- 'no_data_warning': "No analysis data found for this student.",
232
- 'progress_of': "Progress of",
233
- 'semantic_analyses': "Semantic Analyses",
234
- 'semantic_analyses_expander': "Semantic Analyses History",
235
- 'semantic_history': "Semantic Analysis History",
236
- 'show_debug_data': "Show debug data",
237
- 'student_debug_data': "Student data (for debugging):",
238
- 'summary_title': "Activities Summary",
239
- 'title': "My Activities Record", # Actualizado
240
- 'timestamp': "Timestamp",
241
- 'total_analyses': "Total analyses performed:",
242
- 'try_analysis': "Try performing some text analyses first.",
243
- 'user': "User",
244
-
245
- # Nuevas traducciones específicas para la sección de actividades
246
- 'diagnosis_tab': "Diagnosis",
247
- 'recommendations_tab': "Recommendations",
248
- 'key_metrics': "Key metrics",
249
- 'details': "Details",
250
- 'analyzed_text': "Analyzed text",
251
- 'analysis_date': "Date",
252
- 'academic_article': "Academic article",
253
- 'student_essay': "Student essay",
254
- 'general_communication': "General communication",
255
- 'no_diagnosis': "No diagnosis data available",
256
- 'no_recommendations': "No recommendations available",
257
- 'error_current_situation': "Error displaying current situation analysis",
258
- 'no_current_situation': "No current situation analyses recorded",
259
- 'no_morpho_analyses': "No morphosyntactic analyses recorded",
260
- 'error_morpho': "Error displaying morphosyntactic analysis",
261
- 'no_semantic_analyses': "No semantic analyses recorded",
262
- 'error_semantic': "Error displaying semantic analysis",
263
- 'no_discourse_analyses': "No text comparison analyses recorded", # Actualizado
264
- 'error_discourse': "Error displaying text comparison analysis", # Actualizado
265
- 'no_chat_history': "No conversation records with the virtual tutor", # Actualizado
266
- 'error_chat': "Error displaying conversation records", # Actualizado
267
- 'error_loading_activities': "Error loading activities",
268
- 'chat_date': "Conversation date",
269
- 'invalid_chat_format': "Invalid chat format",
270
- 'comparison_results': "Comparison results",
271
- 'concepts_text_1': "Concepts Text 1",
272
- 'concepts_text_2': "Concepts Text 2",
273
- 'no_visualization': "No comparative visualization available",
274
- 'no_graph': "No visualization available",
275
- 'error_loading_graph': "Error loading graph",
276
- 'syntactic_diagrams': "Syntactic diagrams"
277
- }
278
-
279
- FEEDBACK = {
280
- 'email': "Email",
281
- 'feedback': "Feedback",
282
- 'feedback_title': "Feedback form",
283
- 'feedback_error': "There was a problem submitting the form. Please try again.",
284
- 'feedback_success': "Thank for your feedback",
285
- 'complete_all_fields': "Please, complete all fields",
286
- 'name': "Name",
287
- 'submit': "Submit"
288
- }
289
-
290
-
291
- CHATBOT_TRANSLATIONS = {
292
- 'chat_title': "AIdeaText Assistant",
293
- 'input_placeholder': "Any questions?",
294
- 'initial_message': "Hi! I'm your assistant. How can I help?",
295
- 'expand_chat': "Open assistant",
296
- 'clear_chat': "Clear chat",
297
- 'processing': "Processing...",
298
- 'error_message': "Sorry, an error occurred"
299
- }
300
-
301
- TEXT_TYPES = {
302
- 'descriptive': [
303
- 'What are you describing?',
304
- 'What are its main characteristics?',
305
- 'How does it look, sound, smell, or feel?',
306
- 'What makes it unique or special?'
307
- ],
308
- 'narrative': [
309
- 'Who is the protagonist?',
310
- 'Where and when does the story take place?',
311
- 'What event starts the action?',
312
- 'What happens next?',
313
- 'How does the story end?'
314
- ],
315
- 'expository': [
316
- 'What is the main topic?',
317
- 'What important aspects do you want to explain?',
318
- 'Can you provide examples or data to support your explanation?',
319
- 'How does this topic relate to other concepts?'
320
- ],
321
- 'argumentative': [
322
- 'What is your main thesis or argument?',
323
- 'What are your supporting arguments?',
324
- 'What evidence do you have to back up your arguments?',
325
- 'What are the counterarguments and how do you refute them?',
326
- 'What is your conclusion?'
327
- ],
328
- 'instructive': [
329
- 'What task or process are you explaining?',
330
- 'What materials or tools are needed?',
331
- 'What are the steps to follow?',
332
- 'Are there any important precautions or tips to mention?'
333
- ],
334
- 'pitch': [
335
- 'What?',
336
- 'What for?',
337
- 'For whom?',
338
- 'How?'
339
- ]
340
- }
341
-
342
- # Configuration of the language model for English
343
- NLP_MODEL = 'en_core_web_lg'
344
-
345
- # Esta línea es crucial:
346
- TRANSLATIONS = {
347
- 'COMMON': COMMON,
348
- 'TABS': TABS,
349
- 'MORPHOSYNTACTIC': MORPHOSYNTACTIC,
350
- 'SEMANTIC': SEMANTIC,
351
- 'DISCOURSE': DISCOURSE,
352
- 'ACTIVITIES': ACTIVITIES,
353
- 'FEEDBACK': FEEDBACK,
354
- 'TEXT_TYPES': TEXT_TYPES,
355
- 'CURRENT_SITUATION': CURRENT_SITUATION, # Añadir esta línea
356
- 'NLP_MODEL': NLP_MODEL
357
  }
 
1
+ # translations/en.py
2
+
3
+ COMMON = {
4
+ # A
5
+ 'initial_instruction': "To start a new semantic analysis, upload a new text file (.txt)",
6
+ 'analysis_complete': "Analysis complete and saved. To perform a new analysis, upload another file.",
7
+ 'current_analysis_message': "Showing analysis of file: {}. To perform a new analysis, please upload another file.",
8
+ 'upload_prompt': "Attach a file to start the analysis",
9
+ 'analysis_completed': "Analysis completed",
10
+ 'analysis_section': "Semantic Analysis",
11
+ 'analyze_document': 'Analyze document',
12
+ 'analysis_saved_success': 'Analysis saved successfully',
13
+ 'analysis_save_error': 'Error saving the analysis',
14
+ 'analyze_button': "Analyze text",
15
+ 'analyzing_doc': "Analyzing document",
16
+ 'activities_message':"Activities messages",
17
+ 'activities_placeholder':"Activities placeholder",
18
+ 'analysis_placeholder':"Analysis placeholder",
19
+ 'analyze_button' : "Analyze",
20
+ 'analysis_types_chart' : "Analyze type chart",
21
+ 'analysis_from': "Analysis carried out on",
22
+ # C
23
+ 'chat_title': "Analysis Chat",
24
+ 'export_button': "Export Current Analysis",
25
+ 'export_success': "Analysis and chat exported successfully.",
26
+ 'export_error': "There was a problem exporting the analysis and chat.",
27
+ 'get_text': "Get text.",
28
+ 'hello': "Hello",
29
+ # L
30
+ 'logout': "End session.",
31
+ 'loading_data': "Loading data",
32
+ 'load_selected_file': 'Load selected file',
33
+ # N
34
+ 'no_analysis': "No analysis available. Use the chat to perform an analysis.",
35
+ 'nothing_to_export': "No analysis or chat to export.",
36
+ 'results_title': "Analysis Results",
37
+ 'select_language': "Language select",
38
+ 'student_activities':"Student activities",
39
+ # T
40
+ 'total_analyses': "Total analyses",
41
+ # W
42
+ 'welcome': "Welcome to AIdeaText"
43
+ }
44
+
45
+ TABS = {
46
+ 'current_situation_tab': "Current situation",
47
+ 'morpho_tab': "Morphosyntactic analysis",
48
+ 'semantic_live_tab': "Semantic live",
49
+ 'semantic_tab': "Semantic analysis",
50
+ 'discourse_live_tab': "Discourse live",
51
+ 'discourse_tab': "Discourse analysis",
52
+ 'activities_tab': "My activities",
53
+ 'feedback_tab': "Feedback form"
54
+ }
55
+
56
+ CURRENT_SITUATION = {
57
+ 'title': "My Current Situation",
58
+ 'input_prompt': "Write or paste your text here:",
59
+ 'first_analyze_button': "Analyze my writing",
60
+ 'processing': "Analyzing...",
61
+ 'analysis_error': "Error analyzing text",
62
+ 'help': "We will analyze your text to determine its current status", # <-- Added this line
63
+ # Radio buttons for text type
64
+ 'text_type_header': "Text type",
65
+ 'text_type_help': "Select the text type to adjust evaluation criteria",
66
+ # Metrics
67
+ 'vocabulary_label': "Vocabulary",
68
+ 'vocabulary_help': "Richness and variety of vocabulary",
69
+ 'structure_label': "Structure",
70
+ 'structure_help': "Organization and complexity of sentences",
71
+ 'cohesion_label': "Cohesion",
72
+ 'cohesion_help': "Connection and fluidity between ideas",
73
+ 'clarity_label': "Clarity",
74
+ 'clarity_help': "Ease of text comprehension",
75
+ # Metric states
76
+ 'metric_improvement': "⚠️ Needs improvement",
77
+ 'metric_acceptable': "📈 Acceptable",
78
+ 'metric_optimal': "✅ Optimal",
79
+ 'metric_target': "Goal: {:.2f}",
80
+ # Errors
81
+ 'error_interface': "An error occurred while loading the interface",
82
+ 'error_results': "Error displaying results",
83
+ 'error_chart': "Error displaying chart"
84
+ }
85
+
86
+ MORPHOSYNTACTIC = {
87
+ #A
88
+ 'arc_diagram': "Syntactic analysis: Arc diagram",
89
+ #B
90
+ 'tab_text_baseline': "Produce first text",
91
+ 'tab_iterations': "Produce new versions of the first text",
92
+
93
+ # Pestaña 1 texto base
94
+ 'btn_new_morpho_analysis': "New morphosyntactic analysis",
95
+ 'btn_analyze_baseline': "Analyze the entered text",
96
+ 'input_baseline_text': "Enter the first text to analyze",
97
+ 'warn_enter_text': "Please enter a text to analyze",
98
+ 'error_processing_baseline': "Error processing the initial text",
99
+ 'arc_diagram_baseline_label': "Arc diagram of the initial text",
100
+ 'baseline_diagram_not_available': "Arc diagram of the initial text not available",
101
+
102
+ # Pestaña 2 Iteración del texto
103
+ 'info_first_analyze_base': "Check if the initial text exists",
104
+ 'iteration_text_subheader': "New version of the initial text",
105
+ 'input_iteration_text': "Enter a new version of the initial text and compare both texts' arcs",
106
+ 'btn_analyze_iteration': "Analyze changes",
107
+ 'warn_enter_iteration_text': "Enter a new version of the initial text and compare both texts' arcs",
108
+ 'iteration_saved': "Changes saved successfully",
109
+ 'error_iteration': "Error processing the new changes"
110
+ }
111
+
112
+ SEMANTIC = {
113
+ # A
114
+
115
+ # C
116
+ 'chat_title': "Semantic Analysis Chat",
117
+ 'chat_placeholder': "Ask a question or use a command (/summary, /entities, /sentiment, /topics, /concept_graph, /entity_graph, /topic_graph)",
118
+ 'clear_chat': "Clear chat",
119
+ 'conceptual_relations': "Conceptual Relations",
120
+ # D
121
+ 'delete_file': "Delete file",
122
+ # E
123
+ 'error_message': "There was a problem saving the semantic analysis. Please try again.",
124
+ # F
125
+ 'file_uploader': "Or upload a text file",
126
+ 'file_upload_success': "File uploaded and saved successfully",
127
+ 'file_upload_error': 'Error uploading file',
128
+ 'file_section': "Files",
129
+ 'file_loaded_success': "File loaded successfully",
130
+ 'file_load_error': "Error loading file",
131
+ 'file_upload_error': "Error uploading and saving file",
132
+ 'file_deleted_success': 'File deleted successfully',
133
+ 'file_delete_error': 'Error deleting file',
134
+ # G
135
+ 'graph_title': "Semantic Analysis Visualization",
136
+ # I
137
+ 'identified_entities': "Identified Entities",
138
+ # K
139
+ 'key_concepts': "Key Concepts",
140
+ # N
141
+ 'no_analysis': "No analysis available. Please upload or select a file.",
142
+ 'no_results': "No results available. Please perform an analysis first.",
143
+ 'no_file': "Please upload a file to start the analysis.",
144
+ 'no_file_selected': "Please select an archive to start the analysis.",
145
+ # S
146
+ 'semantic_title': "Semantic Analysis",
147
+ 'semantic_initial_message': "This is a general-purpose chatbot, but it has a specific function for visual text analysis: it generates a graph with the main entities of the text. To produce it, enter a text file in txt, pdf, doc, docx or odt format and press the 'analyze file' button. After generating the graph, you can interact with the chat based on the document.",
148
+ 'send_button': "Send",
149
+ 'select_saved_file': "Select saved file",
150
+ 'success_message': "Semantic analysis saved successfully.",
151
+ 'semantic_analyze_button': 'Semantic Analysis',
152
+ 'semantic_export_button': 'Export Semantic Analysis',
153
+ 'semantic_new_button': 'New Semantic Analysis',
154
+ 'semantic_file_uploader': 'Upload a text file for semantic analysis',
155
+ # T
156
+ 'text_input_label': "Enter a text to analyze (max. 5,000 words):",
157
+ 'text_input_placeholder': "The purpose of this application is to improve your writing skills...",
158
+ 'title': "AIdeaText - Semantic Analysis",
159
+ # U
160
+ 'upload_file': "Upload file",
161
+ # W
162
+ 'warning_message': "Please enter a text or upload a file to analyze."
163
+ }
164
+
165
+ DISCOURSE = {
166
+ 'file1_label': "Pattern Document",
167
+ 'file2_label': "Compared Document",
168
+ 'discourse_title': "AIdeaText - Discourse Analysis",
169
+ 'file_uploader1': "Upload text file 1 (Pattern)",
170
+ 'file_uploader2': "Upload text file 2 (Comparison)",
171
+ 'discourse_analyze_button': "Compare texts",
172
+ 'discourse_initial_message': "This is a general purpose chatbot, but it has a specific function for visual text analysis: it generates two graphs with the main entities of each file to make a comparison between both texts. To produce it, enter one file first and then another in txt, pdf, doc, docx or odt format and press the 'analyze file' button. After the graph is generated, you can interact with the chat based on the document.",
173
+ 'analyze_button': "Analyze texts",
174
+ 'comparison': "Comparison of Semantic Relations",
175
+ 'success_message': "Discourse analysis saved successfully.",
176
+ 'error_message': "There was a problem saving the discourse analysis. Please try again.",
177
+ 'warning_message': "Please upload both files to analyze.",
178
+ 'no_results': "No results available. Please perform an analysis first.",
179
+ 'key_concepts': "Key Concepts",
180
+ 'graph_not_available': "The graph is not available.",
181
+ 'concepts_not_available': "Key concepts are not available.",
182
+ 'comparison_not_available': "The comparison is not available.",
183
+ 'warning_message': "Please enter a text or upload a file to analyze.",
184
+ 'morphosyntax_history': "Morphosyntax history",
185
+ 'analysis_of': "Analysis of"
186
+ }
187
+
188
+ ACTIVITIES = {
189
+ # Nuevas etiquetas actualizadas
190
+ 'current_situation_activities': "Records of function: My Current Situation",
191
+ 'morpho_activities': "Records of my morphosyntactic analyses",
192
+ 'semantic_activities': "Records of my semantic analyses",
193
+ 'discourse_activities': "Records of my text comparison analyses",
194
+ 'chat_activities': "Records of my conversations with the virtual tutor",
195
+
196
+ # Mantener otras claves existentes
197
+ 'current_situation_tab': "Current situation",
198
+ 'morpho_tab': "Morphosyntactic analysis",
199
+ 'semantic_tab': "Semantic analysis",
200
+ 'discourse_tab': "Text comparison analysis",
201
+ 'activities_tab': "My activities record",
202
+ 'feedback_tab': "Feedback form",
203
+
204
+ # Resto de las claves que estén en el diccionario ACTIVITIES
205
+ 'analysis_types_chart_title': "Types of analyses performed",
206
+ 'analysis_types_chart_x': "Analysis type",
207
+ 'analysis_types_chart_y': "Count",
208
+ 'analysis_from': "Analysis from",
209
+ 'assistant': "Assistant",
210
+ 'activities_summary': "Activities and Progress Summary",
211
+ 'chat_history_expander': "Chat History",
212
+ 'chat_from': "Chat from",
213
+ 'combined_graph': "Combined Graph",
214
+ 'conceptual_relations_graph': "Conceptual Relations Graph",
215
+ 'conversation': "Conversation",
216
+ 'discourse_analyses_expander': "Text Comparison Analyses History", # Actualizado
217
+ 'discourse_analyses': "Text Comparison Analyses", # Actualizado
218
+ 'discourse_history': "Text Comparison Analysis History", # Actualizado
219
+ 'document': "Document",
220
+ 'data_load_error': "Error loading student data",
221
+ 'graph_display_error': "Could not display the graph",
222
+ 'graph_doc1': "Graph document 1",
223
+ 'graph_doc2': "Graph document 2",
224
+ 'key_concepts': "Key concepts",
225
+ 'loading_data': "Loading student data...",
226
+ 'morphological_analysis': "Morphological Analysis",
227
+ 'morphosyntax_analyses_expander': "Morphosyntactic Analyses History",
228
+ 'morphosyntax_history': "Morphosyntactic Analysis History",
229
+ 'no_arc_diagram': "No arc diagram found for this analysis.",
230
+ 'no_chat_history': "No conversations with the Virtual Tutor were found.", # Actualizado
231
+ 'no_data_warning': "No analysis data found for this student.",
232
+ 'progress_of': "Progress of",
233
+ 'semantic_analyses': "Semantic Analyses",
234
+ 'semantic_analyses_expander': "Semantic Analyses History",
235
+ 'semantic_history': "Semantic Analysis History",
236
+ 'show_debug_data': "Show debug data",
237
+ 'student_debug_data': "Student data (for debugging):",
238
+ 'summary_title': "Activities Summary",
239
+ 'title': "My Activities Record", # Actualizado
240
+ 'timestamp': "Timestamp",
241
+ 'total_analyses': "Total analyses performed:",
242
+ 'try_analysis': "Try performing some text analyses first.",
243
+ 'user': "User",
244
+
245
+ # Nuevas traducciones específicas para la sección de actividades
246
+ 'diagnosis_tab': "Diagnosis",
247
+ 'recommendations_tab': "Recommendations",
248
+ 'key_metrics': "Key metrics",
249
+ 'details': "Details",
250
+ 'analyzed_text': "Analyzed text",
251
+ 'analysis_date': "Date",
252
+ 'academic_article': "Academic article",
253
+ 'student_essay': "Student essay",
254
+ 'general_communication': "General communication",
255
+ 'no_diagnosis': "No diagnosis data available",
256
+ 'no_recommendations': "No recommendations available",
257
+ 'error_current_situation': "Error displaying current situation analysis",
258
+ 'no_current_situation': "No current situation analyses recorded",
259
+ 'no_morpho_analyses': "No morphosyntactic analyses recorded",
260
+ 'error_morpho': "Error displaying morphosyntactic analysis",
261
+ 'no_semantic_analyses': "No semantic analyses recorded",
262
+ 'error_semantic': "Error displaying semantic analysis",
263
+ 'no_discourse_analyses': "No text comparison analyses recorded", # Actualizado
264
+ 'error_discourse': "Error displaying text comparison analysis", # Actualizado
265
+ 'no_chat_history': "No conversation records with the virtual tutor", # Actualizado
266
+ 'error_chat': "Error displaying conversation records", # Actualizado
267
+ 'error_loading_activities': "Error loading activities",
268
+ 'chat_date': "Conversation date",
269
+ 'invalid_chat_format': "Invalid chat format",
270
+ 'comparison_results': "Comparison results",
271
+ 'concepts_text_1': "Concepts Text 1",
272
+ 'concepts_text_2': "Concepts Text 2",
273
+ 'no_visualization': "No comparative visualization available",
274
+ 'no_graph': "No visualization available",
275
+ 'error_loading_graph': "Error loading graph",
276
+ 'syntactic_diagrams': "Syntactic diagrams"
277
+ }
278
+
279
+ FEEDBACK = {
280
+ 'email': "Email",
281
+ 'feedback': "Feedback",
282
+ 'feedback_title': "Feedback form",
283
+ 'feedback_error': "There was a problem submitting the form. Please try again.",
284
+ 'feedback_success': "Thank for your feedback",
285
+ 'complete_all_fields': "Please, complete all fields",
286
+ 'name': "Name",
287
+ 'submit': "Submit"
288
+ }
289
+
290
+
291
+ CHATBOT_TRANSLATIONS = {
292
+ 'chat_title': "AIdeaText Assistant",
293
+ 'input_placeholder': "Any questions?",
294
+ 'initial_message': "Hi! I'm your assistant. How can I help?",
295
+ 'expand_chat': "Open assistant",
296
+ 'clear_chat': "Clear chat",
297
+ 'processing': "Processing...",
298
+ 'error_message': "Sorry, an error occurred"
299
+ }
300
+
301
+ TEXT_TYPES = {
302
+ 'descriptive': [
303
+ 'What are you describing?',
304
+ 'What are its main characteristics?',
305
+ 'How does it look, sound, smell, or feel?',
306
+ 'What makes it unique or special?'
307
+ ],
308
+ 'narrative': [
309
+ 'Who is the protagonist?',
310
+ 'Where and when does the story take place?',
311
+ 'What event starts the action?',
312
+ 'What happens next?',
313
+ 'How does the story end?'
314
+ ],
315
+ 'expository': [
316
+ 'What is the main topic?',
317
+ 'What important aspects do you want to explain?',
318
+ 'Can you provide examples or data to support your explanation?',
319
+ 'How does this topic relate to other concepts?'
320
+ ],
321
+ 'argumentative': [
322
+ 'What is your main thesis or argument?',
323
+ 'What are your supporting arguments?',
324
+ 'What evidence do you have to back up your arguments?',
325
+ 'What are the counterarguments and how do you refute them?',
326
+ 'What is your conclusion?'
327
+ ],
328
+ 'instructive': [
329
+ 'What task or process are you explaining?',
330
+ 'What materials or tools are needed?',
331
+ 'What are the steps to follow?',
332
+ 'Are there any important precautions or tips to mention?'
333
+ ],
334
+ 'pitch': [
335
+ 'What?',
336
+ 'What for?',
337
+ 'For whom?',
338
+ 'How?'
339
+ ]
340
+ }
341
+
342
+ # Configuration of the language model for English
343
+ NLP_MODEL = 'en_core_web_lg'
344
+
345
+ # Esta línea es crucial:
346
+ TRANSLATIONS = {
347
+ 'COMMON': COMMON,
348
+ 'TABS': TABS,
349
+ 'MORPHOSYNTACTIC': MORPHOSYNTACTIC,
350
+ 'SEMANTIC': SEMANTIC,
351
+ 'DISCOURSE': DISCOURSE,
352
+ 'ACTIVITIES': ACTIVITIES,
353
+ 'FEEDBACK': FEEDBACK,
354
+ 'TEXT_TYPES': TEXT_TYPES,
355
+ 'CURRENT_SITUATION': CURRENT_SITUATION, # Añadir esta línea
356
+ 'NLP_MODEL': NLP_MODEL
357
  }