Initial commit

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
dinlo
2026-05-31 18:45:38 +08:00
commit 4655401fd3
22 changed files with 2848 additions and 0 deletions
+51
View File
@@ -0,0 +1,51 @@
@echo off
chcp 65001 >nul 2>&1
title Ollama Translator GUI
echo.
echo ========================================
echo Starting Ollama Translator GUI
echo ========================================
echo.
REM Check Python
python --version >nul 2>&1
if errorlevel 1 (
echo [ERROR] Python not found!
echo Please install Python 3.8 or higher
pause
exit /b 1
)
REM Check Ollama
ollama --version >nul 2>&1
if errorlevel 1 (
echo [WARNING] Ollama not found in PATH
echo Make sure Ollama is installed
echo.
)
REM Check dependencies
python -c "import customtkinter" >nul 2>&1
if errorlevel 1 (
echo [INFO] Installing dependencies...
pip install -r requirements.txt
if errorlevel 1 (
echo [ERROR] Failed to install dependencies
pause
exit /b 1
)
)
echo [OK] All checks passed
echo [INFO] Starting application...
echo.
REM Run application
python translator_gui.py
if errorlevel 1 (
echo.
echo [ERROR] Application exited with error
pause
)