DropIcons für alle Vier Verknüpfungen erweitert zur Extraktion des TExtes und zur ÜBersetzung einer dxf Datei

This commit is contained in:
2025-12-05 16:18:10 +01:00
parent 308da2dcf7
commit 4e7e218db4
4 changed files with 65 additions and 3 deletions
+46
View File
@@ -0,0 +1,46 @@
@echo off
if [%1]==[] goto usage
for %%i in ("%~1") do (
set "FILENAME=%%~ni"
set "EXT=%%~xi"
set "DIR=%%~dpi"
)
call "%~dp0setenv.bat"
REM echo Dateiname ohne Erweiterung: %FILENAME%
REM echo Erweiterung: %EXT%
REM echo Verzeichnis: %DIR%
REM
REM Namen der Ergebnisdateien
set RESULT_JSON=%FILENAME%_texts.json
if exist "%~dp0_setenv.bat" (
echo Lade lokale Umgebungseinstellungen aus _setenv.bat...
call "%~dp0_setenv.bat"
)
REM Zielverzeichnis
set TARGET_DIR=%PROJECT_WORK%
mkdir "%TARGET_DIR%"
echo.
echo === Extracting TEXT, MTEXT and symbols, translating to CS ===
call translate.bat --filename %1 --extract -t json --outname %RESULT_JSON% --translate CS
if not exist "%PROJECT_WORK%\%RESULT_JSON%
" (
@echo == failed: extracting texts
pause
goto :eof
)
echo.
echo === Translation file created: %PROJECT_WORK%\%RESULT_JSON% ===
pause
goto :eof
:usage
@echo Usage: %0 ^<dxfinWorkOrdner.dxf^>
exit /B 1
goto :eof