From 39919ca596ef801605f5eef55751d2f860a03824 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phan?= Date: Wed, 14 May 2025 15:01:00 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20config.toml=20pour=20th=C3=A8me=20light?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 - assets/locales/en copy.json | 276 ------------------------------------ 2 files changed, 277 deletions(-) delete mode 100644 assets/locales/en copy.json diff --git a/.gitignore b/.gitignore index f37558c..c24c97e 100644 --- a/.gitignore +++ b/.gitignore @@ -15,7 +15,6 @@ __pycache__/ # Ignorer config locale .ropeproject/ -.streamlit/ venv/ .venv/ Local/ diff --git a/assets/locales/en copy.json b/assets/locales/en copy.json deleted file mode 100644 index 86a5128..0000000 --- a/assets/locales/en copy.json +++ /dev/null @@ -1,276 +0,0 @@ -{ - "app": { - "title": "Fabnum – Chain Analysis", - "description": "Ecosystem exploration and vulnerability identification.", - "dev_mode": "You are in the development environment." - }, - "header": { - "title": "FabNum - Digital Manufacturing Chain", - "subtitle": "Ecosystem exploration and vulnerability identification." - }, - "footer": { - "copyright": "Fabnum © 2025", - "contact": "Contact", - "license": "License", - "license_text": "CC BY-NC-ND", - "eco_note": "🌱 CO₂ calculations via", - "eco_provider": "The Green Web Foundation", - "powered_by": "🚀 Powered by", - "powered_by_name": "Streamlit" - }, - "sidebar": { - "menu": "Main Menu", - "navigation": "Main Navigation", - "theme": "Theme", - "theme_light": "Light", - "theme_dark": "Dark", - "theme_instructions_only": "Theme changes can only be made from the Instructions tab.", - "impact": "Environmental Impact", - "loading": "Loading..." - }, - "auth": { - "title": "Authentication", - "username": "Username_token", - "token": "Gitea Personal Access Token", - "login": "Login", - "logout": "Logout", - "logged_as": "Logged in as", - "error": "❌ Access denied.", - "gitea_error": "❌ Unable to verify user with Gitea.", - "success": "Successfully logged out." - }, - "navigation": { - "instructions": "Instructions", - "personnalisation": "Customization", - "analyse": "Analysis", - "visualisations": "Visualizations", - "fiches": "Cards" - }, - "pages": { - "instructions": { - "title": "Instructions" - }, - "personnalisation": { - "title": "Final Product Customization", - "help": "How to use this tab?", - "help_content": [ - "1. Click on \"Add a final product\" to create a new product", - "2. Give your product a name", - "3. Select an appropriate assembly operation (if relevant)", - "4. Choose the components that make up your product from the list provided", - "5. Save your configuration for future reuse", - "6. You will be able to modify or delete your custom products later" - ], - "add_new_product": "Add a new final product", - "new_product_name": "New product name (unique)", - "assembly_operation": "Assembly operation (optional)", - "none": "-- None --", - "components_to_link": "Components to link", - "create_product": "Create product", - "added": "added", - "modify_product": "Modify an added final product", - "products_to_modify": "Products to modify", - "delete": "Delete", - "linked_assembly_operation": "Linked assembly operation", - "components_linked_to": "Components linked to", - "update": "Update", - "updated": "updated", - "deleted": "deleted", - "save_restore_config": "Save or restore configuration", - "export_config": "Export configuration", - "download_json": "Download (JSON)", - "import_config": "Import a JSON configuration (max 100 KB)", - "file_too_large": "File too large (max 100 KB).", - "no_products_found": "No products found in the file.", - "select_products_to_restore": "Select products to restore", - "products_to_restore": "Products to restore", - "restore_selected": "Restore selected items", - "config_restored": "Partial configuration successfully restored.", - "import_error": "Import error:" - }, - "analyse": { - "title": "Graph Analysis", - "help": "How to use this tab?", - "help_content": [ - "1. Select the starting level (final product, component, or mineral)", - "2. Choose the desired destination level", - "3. Refine your selection by specifying either one or more specific minerals to target or specific items at each level (optional)", - "4. Define the analysis criteria by selecting the relevant vulnerability indices", - "5. Choose the index combination mode (AND/OR) according to your analysis needs", - "6. Explore the generated graph using zoom and panning controls; you can switch to full screen mode for the graph" - ], - "selection_nodes": "Selection of start and end nodes", - "select_level": "-- Select a level --", - "start_level": "Start level", - "end_level": "End level", - "select_minerals": "Select one or more minerals", - "filter_by_minerals": "Filter by minerals (optional)", - "fine_selection": "Fine selection of items", - "filter_start_nodes": "Filter by start nodes (optional)", - "filter_end_nodes": "Filter by end nodes (optional)", - "vulnerability_filters": "Selection of filters to identify vulnerabilities", - "filter_ics": "Filter paths containing at least one critical mineral for a component (ICS > 66%)", - "filter_ivc": "Filter paths containing at least one critical mineral in relation to sectoral competition (IVC > 30)", - "filter_ihh": "Filter paths containing at least one critical operation in relation to geographical or industrial concentration (IHH countries or actors > 25)", - "apply_ihh_filter": "Apply IHH filter on:", - "countries": "Countries", - "actors": "Actors", - "filter_isg": "Filter paths containing an unstable country (ISG ≥ 60)", - "filter_logic": "Filter logic", - "or": "OR", - "and": "AND", - "run_analysis": "Run analysis", - "sankey": { - "no_paths": "No paths found for the specified criteria.", - "no_matching_paths": "No paths match the criteria.", - "filtered_hierarchy": "Hierarchy filtered by levels and nodes", - "download_dot": "Download filtered DOT file", - "relation": "Relation" - } - }, - "visualisations": { - "title": "Visualizations", - "help": "How to use this tab?", - "help_content": [ - "1. Explore the graphs presenting the Herfindahl-Hirschmann Index (IHH)", - "2. Analyze its relationship with the average criticality of minerals or their Competitive Vulnerability Index (IVC)", - "3. Zoom in on the graphs to better discover the information", - "", - "It is important to remember that the IHH has two thresholds:", - "* below 15, concentration is considered to be low", - "* above 25, it is considered to be high", - "", - "Thus, the higher a point is positioned in the top right of the graphs, the higher the risks.", - "The graphs present 2 horizontal and vertical lines to mark these thresholds." - ], - "ihh_criticality": "Herfindahl-Hirschmann Index - IHH vs Criticality", - "ihh_criticality_desc": "The size of the points indicates the substitutability criticality of the mineral.", - "ihh_ivc": "Herfindahl-Hirschmann Index - IHH vs IVC", - "ihh_ivc_desc": "The size of the points indicates the competitive criticality of the mineral.", - "launch": "Launch", - "no_data": "No data to display.", - "categories": { - "assembly": "Assembly", - "manufacturing": "Manufacturing", - "processing": "Processing", - "extraction": "Extraction" - }, - "axis_titles": { - "ihh_countries": "IHH Countries (%)", - "ihh_actors": "IHH Actors (%)", - "ihh_extraction": "IHH Extraction (%)", - "ihh_reserves": "IHH Reserves (%)" - }, - "chart_titles": { - "concentration_criticality": "Concentration and Criticality – {0}", - "concentration_resources": "Concentration of Critical Resources vs IVC Vulnerability" - } - }, - "fiches": { - "title": "Card Discovery", - "help": "How to use this tab?", - "help_content": [ - "1. Browse the list of available cards by category", - "2. Select a card to display its full content", - "3. Consult detailed data, graphs, and additional analyses", - "4. Use this information to deepen your understanding of the identified vulnerabilities", - "", - "The categories are as follows:", - "* Assembly: operation of assembling final products from components", - "* Related: various operations necessary to manufacture digital technology, but not directly entering its composition", - "* Criticalities: indices used to identify and evaluate vulnerabilities", - "* Manufacturing: operation of manufacturing components from minerals", - "* Mineral: description and operations of extraction and processing of minerals" - ], - "no_files": "No cards available at the moment.", - "choose_category": "Choose a card category", - "select_folder": "-- Select a folder --", - "choose_file": "Choose a card", - "select_file": "-- Select a card --", - "loading_error": "Error loading the card:", - "download_pdf": "Download this card as PDF", - "pdf_unavailable": "The PDF file for this card is not available.", - "ticket_management": "Ticket management for this card", - "tickets": { - "create_new": "Create a new ticket linked to this card", - "model_load_error": "Unable to load the ticket template.", - "contribution_type": "Contribution type", - "specify": "Specify", - "other": "Other", - "concerned_card": "Concerned card", - "subject": "Subject of the proposal", - "preview": "Preview ticket", - "cancel": "Cancel", - "preview_title": "Ticket preview", - "summary": "Summary", - "title": "Title", - "labels": "Labels", - "confirm": "Confirm ticket creation", - "created": "Ticket created and form cleared.", - "model_error": "Template loading error:", - "no_linked_tickets": "No tickets linked to this card.", - "associated_tickets": "Tickets associated with this card", - "moderation_notice": "ticket(s) awaiting moderation are not displayed.", - "status": { - "awaiting": "Awaiting processing", - "in_progress": "In progress", - "completed": "Completed", - "rejected": "Rejected", - "others": "Others" - }, - "no_title": "No title", - "unknown": "unknown", - "subject_label": "Subject", - "no_labels": "none", - "comments": "Comment(s):", - "no_comments": "No comments.", - "comment_error": "Error retrieving comments:", - "opened_by": "Opened by", - "on_date": "on", - "updated": "UPDATED" - } - } - }, - "node_levels": { - "0": "Final product", - "1": "Component", - "2": "Mineral", - "10": "Operation", - "11": "Operation country", - "12": "Operation actor", - "99": "Geographic country" - }, - "errors": { - "log_read_error": "Log reading error:", - "graph_preview_error": "Graph preview error:", - "graph_creation_error": "Error creating the graph:", - "ihh_criticality_error": "Error in IHH vs Criticality visualization:", - "ihh_ivc_error": "Error in IHH vs IVC visualization:", - "comment_fetch_error": "Error retrieving comments:", - "template_load_error": "Template loading error:", - "import_error": "Import error:" - }, - "buttons": { - "download": "Download", - "run": "Run", - "save": "Save", - "cancel": "Cancel", - "confirm": "Confirm", - "filter": "Filter", - "search": "Search", - "create": "Create", - "update": "Update", - "delete": "Delete", - "preview": "Preview", - "export": "Export", - "import": "Import", - "restore": "Restore", - "browse_files": "Browse files" - }, - "ui": { - "file_uploader": { - "drag_drop_here": "Drag and drop file here", - "size_limit": "100 KB limit per file • JSON" - } - } -}