How dfint/df-translation-toolkit works
Main Components Organization
• Convert Module
• Create Mod Module
• Create POT Module
• Parse Module
• Translate Module
Core Components
a. Command Line Interface Layer:
• Main CLI entry point (cli.py)
• It to the five main functional modules
• Use a hexagonal architecture representation to show the CLI as the primary interface
b. Module Breakdown:
• Convert Module: Show flow from PO files to CSV files
• Create Mod Module: Template processing and mod generation flow
• Create POT Module: Multiple source inputs (raw objects, speech, steam text, string dump)
• Parse Module: Text parsing capabilities
• Translate Module: Translation processing flow
c. Utilities Layer:
• Shared utilities as a supporting layer
• Backup, CSV utils, PO utils, and string fixing utilities
Data Flow Representation
• Input files → Parse Module
• Parse Module → Convert Module
• Convert Module → Output files
• Template files → Create Mod Module
• Create Mod Module → Generated mods
• Source files → Create POT Module
• Create POT Module → POT files
Key Elements to Highlight
a. File Processing Chain:
• Transformation pipeline from input to output
• Validation checkpoints
• Backup operations
b. Utility Integration:
• How shared utilities support multiple modules
• Cross-module dependencies
Implementation Details
Use these specific elements:
• Double lines for main data transformation paths