.txt Dateien können jetzt auch auf die Icons gedroppt werden

This commit is contained in:
2026-02-24 15:44:32 +01:00
parent aba46bd13a
commit b2f93da92b
+19 -2
View File
@@ -28,6 +28,7 @@ mkdir "%TARGET_DIR%"
REM Prüfe Dateityp und wähle entsprechenden Workflow
if /I "%EXT%"==".json" goto retranslate_json
if /I "%EXT%"==".txt" goto retranslate_txt
if /I "%EXT%"==".dxf" goto translate_dxf
if /I "%EXT%"==".dwg" goto translate_dxf
goto invalid_filetype
@@ -64,20 +65,36 @@ echo === JSON file updated: %INPUT_FILE% ===
pause
goto :eof
:retranslate_txt
echo.
echo === Re-translating TXT file with current %LANG%.cfg ===
call translate.bat --retranslate-txt "%INPUT_FILE%" --translate %LANG%
if errorlevel 1 (
@echo == failed: re-translating TXT
pause
goto :eof
)
echo.
echo === TXT file updated: %INPUT_FILE% ===
pause
goto :eof
:invalid_filetype
@echo FEHLER: Ungültiger Dateityp: %EXT%
@echo Erlaubt sind: .dxf, .dwg, .json
@echo Erlaubt sind: .dxf, .dwg, .json, .txt
pause
goto :eof
:usage
@echo Usage: %0 ^<LANG^> ^<file.dxf^|file.json^>
@echo Usage: %0 ^<LANG^> ^<file.dxf^|file.json^|file.txt^>
@echo LANG: Zielsprache (CS, EN, FR, IT, ES)
@echo - .dxf/.dwg: Extrahiert und übersetzt Texte zur angegebenen Sprache
@echo - .json: Re-übersetzt vorhandene Übersetzungen mit aktueller LANG.cfg
@echo - .txt: Re-übersetzt TXT-Datei (translations/untranslated) mit aktueller LANG.cfg
@echo.
@echo Beispiele:
@echo %0 CS myfile.dxf
@echo %0 EN translations.json
@echo %0 CS translations_texts.txt
exit /B 1
goto :eof