migrate to gitea
This commit is contained in:
33
main.py
Normal file
33
main.py
Normal 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()
|
||||
Reference in New Issue
Block a user