migrate to gitea

This commit is contained in:
jonasgaudian
2026-02-14 18:12:28 +01:00
commit 7c17f0f0cf
21 changed files with 2037 additions and 0 deletions

33
main.py Normal file
View File

@@ -0,0 +1,33 @@
#!/usr/bin/env python3
"""
Android XML Translation Tool
Translates Android values XML files using local LLM (LM Studio compatible)
"""
import sys
from translation_tool import TranslationTool
def main():
"""Main entry point"""
if len(sys.argv) > 1:
config_path = sys.argv[1]
else:
config_path = "config.yaml"
try:
tool = TranslationTool(config_path)
tool.run()
except KeyboardInterrupt:
from ui import UI
ui = UI()
ui.show_interrupted()
except Exception as e:
from ui import UI
ui = UI()
ui.show_error(str(e))
sys.exit(1)
if __name__ == "__main__":
main()