tr2txt übersetzt nicht mehr in eine Sprache. Holt nur noch die Inhalte raus. dropItem_create entsprechend angepasst.
This commit is contained in:
@@ -13,7 +13,7 @@ set TARGET2=%PROJECT_BIN%\ioconverter.bat
|
||||
set ICON2=%PROJECT_DOC%\img\Icons\Icon_portal.ico
|
||||
|
||||
set SHORTCUT3=%INSTALL_DIR%\tr_dxf2txt.lnk
|
||||
set TARGET3=%PROJECT_BIN%\tr2txt_cs.bat
|
||||
set TARGET_TRTXT=%PROJECT_BIN%\tr2txt.bat
|
||||
set ICON3=%PROJECT_DOC%\img\Icons\dxf2txt.ico
|
||||
|
||||
set SHORTCUT_CS=%INSTALL_DIR%\tr_dxf2CS.lnk
|
||||
@@ -37,9 +37,9 @@ set TARGET_ES=%PROJECT_BIN%\tr2dxf_es.bat
|
||||
set ICON_ES=%PROJECT_DOC%\img\Icons\dxfES.ico
|
||||
|
||||
REM ersetze die Zeile mit setenv.bat durch die mit dem neuen Pfad
|
||||
powershell -Command "(Get-Content getexdraw.bat) -replace '^.*setenv.bat$', 'call %PROJECT_BIN%\setenv.bat' | Set-Content getexdraw.bat"
|
||||
powershell -Command "(Get-Content getexdraw.bat) -replace '^.*setenv.bat$', 'call %PROJECT_BIN%\setenv.bat' | Set-Content getexdraw.bat"
|
||||
powershell -Command "(Get-Content ioconverter.bat) -replace '^.*setenv.bat$', 'call %PROJECT_BIN%\setenv.bat' | Set-Content ioconverter.bat"
|
||||
powershell -Command "(Get-Content tr2txt_cs.bat) -replace '^.*setenv.bat$', 'call %PROJECT_BIN%\setenv.bat' | Set-Content tr2txt_cs.bat"
|
||||
powershell -Command "(Get-Content tr2txt.bat) -replace '^.*setenv.bat$', 'call %PROJECT_BIN%\setenv.bat' | Set-Content tr2txt.bat"
|
||||
|
||||
powershell -Command "(Get-Content tr2dxf_cs.bat) -replace '^.*setenv.bat$', 'call %PROJECT_BIN%\setenv.bat' | Set-Content tr2dxf_cs.bat"
|
||||
powershell -Command "(Get-Content tr2dxf_en.bat) -replace '^.*setenv.bat$', 'call %PROJECT_BIN%\setenv.bat' | Set-Content tr2dxf_en.bat"
|
||||
@@ -53,7 +53,7 @@ REM Icon2 anlegen für Ioconverter
|
||||
powershell -Command "$s=(New-Object -COM WScript.Shell).CreateShortcut('%SHORTCUT2%');$s.TargetPath='%TARGET2%';$s.IconLocation='%ICON2%';$s.Save()"
|
||||
|
||||
REM Icon für Txt Extraktion anlegen
|
||||
powershell -Command "$s=(New-Object -COM WScript.Shell).CreateShortcut('%SHORTCUT3%');$s.TargetPath='%TARGET3%';$s.IconLocation='%ICON3%';$s.Save()"
|
||||
powershell -Command "$s=(New-Object -COM WScript.Shell).CreateShortcut('%SHORTCUT3%');$s.TargetPath='%TARGET_TRTXT%';$s.IconLocation='%ICON3%';$s.Save()"
|
||||
|
||||
REM Icon für Übersetzungen anlegen
|
||||
powershell -Command "$s=(New-Object -COM WScript.Shell).CreateShortcut('%SHORTCUT_CS%');$s.TargetPath='%TARGET_CS%';$s.IconLocation='%ICON_CS%';$s.Save()"
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ for %%i in ("%~1") do (
|
||||
set "EXT=%%~xi"
|
||||
set "DIR=%%~dpi"
|
||||
)
|
||||
call C:\10-Develop\gitrepos\kabellaengen\bin\setenv.bat
|
||||
call C:\kabellaengen\bin\setenv.bat
|
||||
|
||||
REM echo Dateiname ohne Erweiterung: %FILENAME%
|
||||
REM echo Erweiterung: %EXT%
|
||||
|
||||
+3
-44
@@ -1,46 +1,5 @@
|
||||
@echo off
|
||||
REM Wrapper für Tschechisch-Übersetzungen
|
||||
REM Ruft tr2dxf.bat mit CS als Sprachparameter auf
|
||||
|
||||
if [%1]==[] goto usage
|
||||
for %%i in ("%~1") do (
|
||||
set "FILENAME=%%~ni"
|
||||
set "EXT=%%~xi"
|
||||
set "DIR=%%~dpi"
|
||||
)
|
||||
call C:\10-Develop\gitrepos\kabellaengen\bin\setenv.bat
|
||||
|
||||
REM echo Dateiname ohne Erweiterung: %FILENAME%
|
||||
REM echo Erweiterung: %EXT%
|
||||
REM echo Verzeichnis: %DIR%
|
||||
REM
|
||||
REM Namen der Ergebnisdateien
|
||||
set RESULT_DXF=%FILENAME%_cs.dxf
|
||||
|
||||
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 --translate CS --todxf %RESULT_DXF%
|
||||
if not exist "%PROJECT_WORK%\%RESULT_DXF%
|
||||
" (
|
||||
@echo == failed: extracting texts
|
||||
pause
|
||||
goto :eof
|
||||
)
|
||||
echo.
|
||||
echo === Translation file created: %PROJECT_WORK%\%RESULT_DXF% ===
|
||||
pause
|
||||
goto :eof
|
||||
|
||||
|
||||
:usage
|
||||
@echo Usage: %0 ^<dxfinWorkOrdner.dxf^>
|
||||
exit /B 1
|
||||
goto :eof
|
||||
|
||||
|
||||
call "%~dp0tr2dxf.bat" CS %1
|
||||
|
||||
+3
-44
@@ -1,46 +1,5 @@
|
||||
@echo off
|
||||
REM Wrapper für Englisch-Übersetzungen
|
||||
REM Ruft tr2dxf.bat mit EN als Sprachparameter auf
|
||||
|
||||
if [%1]==[] goto usage
|
||||
for %%i in ("%~1") do (
|
||||
set "FILENAME=%%~ni"
|
||||
set "EXT=%%~xi"
|
||||
set "DIR=%%~dpi"
|
||||
)
|
||||
call C:\kabellaengen\bin\setenv.bat
|
||||
|
||||
REM echo Dateiname ohne Erweiterung: %FILENAME%
|
||||
REM echo Erweiterung: %EXT%
|
||||
REM echo Verzeichnis: %DIR%
|
||||
REM
|
||||
REM Namen der Ergebnisdateien
|
||||
set RESULT_DXF=%FILENAME%_en.dxf
|
||||
|
||||
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 EN ===
|
||||
call translate.bat --filename %1 --translate EN --todxf %RESULT_DXF%
|
||||
if not exist "%PROJECT_WORK%\%RESULT_DXF%
|
||||
" (
|
||||
@echo == failed: extracting texts
|
||||
pause
|
||||
goto :eof
|
||||
)
|
||||
echo.
|
||||
echo === Translation file created: %PROJECT_WORK%\%RESULT_DXF% ===
|
||||
pause
|
||||
goto :eof
|
||||
|
||||
|
||||
:usage
|
||||
@echo Usage: %0 ^<dxfinWorkOrdner.dxf^>
|
||||
exit /B 1
|
||||
goto :eof
|
||||
|
||||
|
||||
call "%~dp0tr2dxf.bat" EN %1
|
||||
|
||||
+3
-44
@@ -1,46 +1,5 @@
|
||||
@echo off
|
||||
REM Wrapper für Spanisch-Übersetzungen
|
||||
REM Ruft tr2dxf.bat mit ES als Sprachparameter auf
|
||||
|
||||
if [%1]==[] goto usage
|
||||
for %%i in ("%~1") do (
|
||||
set "FILENAME=%%~ni"
|
||||
set "EXT=%%~xi"
|
||||
set "DIR=%%~dpi"
|
||||
)
|
||||
call C:\kabellaengen\bin\setenv.bat
|
||||
|
||||
REM echo Dateiname ohne Erweiterung: %FILENAME%
|
||||
REM echo Erweiterung: %EXT%
|
||||
REM echo Verzeichnis: %DIR%
|
||||
REM
|
||||
REM Namen der Ergebnisdateien
|
||||
set RESULT_DXF=%FILENAME%_es.dxf
|
||||
|
||||
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 ES ===
|
||||
call translate.bat --filename %1 --translate ES --todxf %RESULT_DXF%
|
||||
if not exist "%PROJECT_WORK%\%RESULT_DXF%
|
||||
" (
|
||||
@echo == failed: extracting texts
|
||||
pause
|
||||
goto :eof
|
||||
)
|
||||
echo.
|
||||
echo === Translation file created: %PROJECT_WORK%\%RESULT_DXF% ===
|
||||
pause
|
||||
goto :eof
|
||||
|
||||
|
||||
:usage
|
||||
@echo Usage: %0 ^<dxfinWorkOrdner.dxf^>
|
||||
exit /B 1
|
||||
goto :eof
|
||||
|
||||
|
||||
call "%~dp0tr2dxf.bat" ES %1
|
||||
|
||||
+3
-44
@@ -1,46 +1,5 @@
|
||||
@echo off
|
||||
REM Wrapper für Französisch-Übersetzungen
|
||||
REM Ruft tr2dxf.bat mit FR als Sprachparameter auf
|
||||
|
||||
if [%1]==[] goto usage
|
||||
for %%i in ("%~1") do (
|
||||
set "FILENAME=%%~ni"
|
||||
set "EXT=%%~xi"
|
||||
set "DIR=%%~dpi"
|
||||
)
|
||||
call C:\kabellaengen\bin\setenv.bat
|
||||
|
||||
REM echo Dateiname ohne Erweiterung: %FILENAME%
|
||||
REM echo Erweiterung: %EXT%
|
||||
REM echo Verzeichnis: %DIR%
|
||||
REM
|
||||
REM Namen der Ergebnisdateien
|
||||
set RESULT_DXF=%FILENAME%_fr.dxf
|
||||
|
||||
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 FR ===
|
||||
call translate.bat --filename %1 --translate FR --todxf %RESULT_DXF%
|
||||
if not exist "%PROJECT_WORK%\%RESULT_DXF%
|
||||
" (
|
||||
@echo == failed: extracting texts
|
||||
pause
|
||||
goto :eof
|
||||
)
|
||||
echo.
|
||||
echo === Translation file created: %PROJECT_WORK%\%RESULT_DXF% ===
|
||||
pause
|
||||
goto :eof
|
||||
|
||||
|
||||
:usage
|
||||
@echo Usage: %0 ^<dxfinWorkOrdner.dxf^>
|
||||
exit /B 1
|
||||
goto :eof
|
||||
|
||||
|
||||
call "%~dp0tr2dxf.bat" FR %1
|
||||
|
||||
+3
-44
@@ -1,46 +1,5 @@
|
||||
@echo off
|
||||
REM Wrapper für Italienisch-Übersetzungen
|
||||
REM Ruft tr2dxf.bat mit IT als Sprachparameter auf
|
||||
|
||||
if [%1]==[] goto usage
|
||||
for %%i in ("%~1") do (
|
||||
set "FILENAME=%%~ni"
|
||||
set "EXT=%%~xi"
|
||||
set "DIR=%%~dpi"
|
||||
)
|
||||
call C:\kabellaengen\bin\setenv.bat
|
||||
|
||||
REM echo Dateiname ohne Erweiterung: %FILENAME%
|
||||
REM echo Erweiterung: %EXT%
|
||||
REM echo Verzeichnis: %DIR%
|
||||
REM
|
||||
REM Namen der Ergebnisdateien
|
||||
set RESULT_DXF=%FILENAME%_it.dxf
|
||||
|
||||
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 IT ===
|
||||
call translate.bat --filename %1 --translate IT --todxf %RESULT_DXF%
|
||||
if not exist "%PROJECT_WORK%\%RESULT_DXF%
|
||||
" (
|
||||
@echo == failed: extracting texts
|
||||
pause
|
||||
goto :eof
|
||||
)
|
||||
echo.
|
||||
echo === Translation file created: %PROJECT_WORK%\%RESULT_DXF% ===
|
||||
pause
|
||||
goto :eof
|
||||
|
||||
|
||||
:usage
|
||||
@echo Usage: %0 ^<dxfinWorkOrdner.dxf^>
|
||||
exit /B 1
|
||||
goto :eof
|
||||
|
||||
|
||||
call "%~dp0tr2dxf.bat" IT %1
|
||||
|
||||
@@ -25,7 +25,7 @@ mkdir "%TARGET_DIR%"
|
||||
|
||||
echo.
|
||||
echo === Extracting TEXT, MTEXT and symbols, translating to CS ===
|
||||
call translate.bat --filename %1 --extract -t json,text --outname %RESULT_JSON% --translate CS
|
||||
call translate.bat --filename %1 --extract -t json,text --outname %RESULT_JSON%
|
||||
if not exist "%PROJECT_WORK%\%RESULT_JSON%
|
||||
" (
|
||||
@echo == failed: extracting texts
|
||||
Reference in New Issue
Block a user