19 lines
719 B
Python
19 lines
719 B
Python
from translations.lang_mappings import UI_TRANSLATIONS
|
|
|
|
def display_tables(current_tables, language=None):
|
|
"""Version simplifiée qui ignore le paramètre language"""
|
|
if not current_tables:
|
|
return None
|
|
|
|
html = ""
|
|
for table in current_tables:
|
|
table_data = table.get('data', '')
|
|
html += f"""
|
|
<div style="margin-bottom: 20px; border: 1px solid #ddd; padding: 15px; border-radius: 8px;">
|
|
<h3>{table.get('caption', 'Tableau')}</h3>
|
|
<p style="color:#666; font-size:0.9em;">Source: {table.get('source', 'N/A')}, Page: {table.get('page', 'N/A')}</p>
|
|
<pre>{table_data}</pre>
|
|
</div>
|
|
"""
|
|
|
|
return html if html else None |