home recent topics recent posts search faq  

Schaudin.com Forum



register | lost password | |
Messages in this topic - RSS

Home » RC-WinTrans Support » Make Satellite DLL from WinTrans 9 project

For support issues and specific questions related to RC-WinTrans' use, features and functions.
02.12.2011 11:06:50

AlexC
AlexC
Posts: 9
Hi,

Is it possible from a windows 7 command script to generate translatede satellite DLLS for a C# project via the RWTcmd.exe ?


The context is a commad script like this :
setlocal
echo off

SET LangCode=zh-CN
SET ProjExten=%~x2
SET TargetFile=%4
SET WinTransProj=%2
SET RcSrcFile=%1
SET WinTransDB="%~dpn2.fsmdb"

RWTCmd.exe /IsProjectUpToDate %WinTransProj% %LangCode% /a
REM If up to date just go write translated Satellite DLL
if %errorlevel%==1 goto WriteDll

RWTCmd.exe /UpdateAll %WinTransProj% %LangCode% /a
:WriteDll
REM Write the translated Satellite DL
RWTCmd.exe /??? %WinTransProj% %LangCode% %TargetFile%

IF %errorlevel%==0 GOTO TheEnd
ECHO ERROR:Could not make %TargetFile% from %WinTransProj%
EXIT 3
GOTO TheEnd

:TheEnd
ECHO Wrote %TargetFile% based on %WinTransProj%
endlocal


Thanks
Alex
0 permalink
05.12.2011 10:30:15

Support
Support
Administrator
Posts: 216
Hello Alex,

yes, this is possible.

Use "/WriteTargetFile" or "/WriteAllTargetFiles".

Note: Modify your command line call (also the parameters used!).
. RWTCmd.exe /??? %WinTransProj% %LangCode% %TargetFile%

The source file in your RC-WinTrans translation project must be a .NET EXE (or DLL)- then RC-WinTrans generates a translated satellite DLL.
When you are translating .RESX files then RC-WinTrans generates translated .RESX files and the satellite DLLs are created by your Visual Studio development environment.

Regards,
Support, Schaudin.com
.
edited by Support on 05.12.2011
0 permalink
06.12.2011 10:53:30

AlexC
AlexC
Posts: 9
Thanks, solved now
That works perfectly ,I just needed to remember to add the source resource.dll to the wintrans project and it was working.
Cheers
Alex
0 permalink

Home » RC-WinTrans Support » Make Satellite DLL from WinTrans 9 project





Powered by AspNetForum 6.9.6.0 © 2006-2010 Jitbit Software