home recent topics recent posts search faq  

Schaudin.com Forum



register | lost password | |

AlexC - all messages by user

02.12.2011 11:06:50
Topic:
Make Satellite DLL from WinTrans 9 project

AlexC
AlexC
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
06.12.2011 10:53:30
Topic:
Make Satellite DLL from WinTrans 9 project

AlexC
AlexC
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
13.12.2011 12:35:40
Topic:
Add project to projects tab view via rwtcmd

AlexC
AlexC
Hi,
is there a way via rwtcmd to add a project to the projects tab view in WinTrans 9 ?
The reason is that is needed by the /ImportFromProject and /ExportProject.

The idea is to something like this

rwtcmd /AddToProjectsTab ...
rwtcmd /ImportFromProject ...

Thanks
Alex
08.02.2012 10:19:42
Topic:
Long process time for projects with added .NET dir

AlexC
AlexC
Hi
I have several .NET projects i use WinTrans to translate. I use the EXE/DLL as the source in WinTrans, and the i get WinTrans to generate the translated satellite DLL. This works in the default configuration for most EXE/DLL translation.
Some of the WinTrans configuration can not pass or generate the files in the standard configuration. To get it to work i add .NET seacrch directory in the menu Tools|Options...|.NET
Now the thing is, this really slows the process down a lot, the process time is 100+ seconds.
For the projects where I do not have any .NET search directories added the time is only seconds or about 30 seconds for the biggest projects.

The .NET search dir i add contains some Developer Express DLLs.

So my questions is if there is a way I can speed the projects up with the added .NET search dirs ?

Thanks
29.11.2012 12:52:21
Topic:
rwtcmd /IsTranslated always returns 1 ?

AlexC
AlexC
Hi,
I use the command rwtcmd /IsTranslated to keep track of which projects we still need to do some translation work on.

After I installed RC-WinTrans 9.2.0.5 rwtcmd /IsTranslated always returns 1, eg. the project in question is 100% translated.

We also have a nightly build system running that reported everything was traslated just after I updated to 9.2.0.5, which I am pretty sure is not the case.

So is there a know issue with rwtcmd /IsTranslated not return the correct value ?

Thanks for the help
12.02.2013 15:52:22
Topic:
rwtcmd /IsTranslated always returns 1 ?

AlexC
AlexC
Hi,
Just wanted to inform that the december service release (9.2.2.2) did solve this problem.
Thanks for the help
Alex
05.04.2013 13:05:07
Topic:
can rwtcmd have an option to modify .NET dir list?

AlexC
AlexC
Hi,

Would it be possible to have an option to rwtcmd that could add and remove Component Reference Directories ?
It is the list you can modify in RC-WinTrans via Tools|Options... and then the .NET tab.

The backgroud for this is to try and run WinTrans translations projects in parallel in a nightly build system, where some of the WinTrans projects needs to add some directories to the .NET dir list to be able to translate succesfulle. I don't want to add these extra directories permanetly to the .NET dir list as it increases the time it takes to do a translation.

Best regards
Alex
15.04.2013 10:09:28
Topic:
can rwtcmd have an option to modify .NET dir list?

AlexC
AlexC
If you were able to pass in a refernece directory via the rwtcmd it would work very well, i think.

Then it should be possible to do two or more translations in parallel, each with different reference directories
/Alex
07.09.2017 12:57:50
Topic:
Executing RCWinTrans 11 in parallel throws error

AlexC
AlexC
Hi,
I am very interested to hear if you get this working.
We are doing something similar and if we could do wintrans translation in paralle it would speed up our builds significantly.
Best regards and good luck
Alex
19.12.2018 14:42:21
Topic:
Automatic machine translation

AlexC
AlexC
Hi,
Is there a way to automatically run the machine translation on a project, e.g. via scripting/command line?
It is a bit tedious to translation 50+ project with 100+ strings for 10 different languages if you have to click for each string.
Best regards/thank you for the help
Alex
26.06.2019 13:30:40
Topic:
Piping of output in new command line interface

AlexC
AlexC
Hi,
I am working on rolling the use of the new command interface out to a build server, that does automatic builds during the night.
Current we are using the old command line interface via RWTCmd.exe and the output can be piped to a log file with ">" and "2>&1".
How do you pipe the output from the new command line interface using RCWinTrans.exe into a file?
I have tried to use the ">" and "2>&1" like this
NightTest.cmd > NightTest.log 2>&1
where NightTest.cmd contains a call to RCWinTrans.exe
But I still get some output in the console like this (just a random selection of the output):
Language: French (France) (fr-FR)
Checked: 1 of 1 files
Up to date: 1 files
Yes
Returned value: 1

Best regards
Alex
04.07.2019 15:15:08
Topic:
Executing RCWinTrans 11 in parallel throws error

AlexC
AlexC
Any news or updates regarding this?
09.07.2019 16:19:25
Topic:
Executing RCWinTrans 11 in parallel throws error

AlexC
AlexC
Is the conclusion on this thread then that there is an issue on running RCWinTrans.exe in parallel and it will not be fixed?


I also get problems with RcWinTrans.exe when I try to do some operation on different databases simultaneously.
My setup is a windows command script, lets call it NighTest.cmd. NightTest.cmd kicks off a perl script that does work on different databases simultaneously. So, I will have eg. 4 instances of RCWinTrans.exe running at the same time doing work on 4 different databases. No database is accessed by more than 1 instance of RCWinTrans.exe at the same time.
When I run NightTest.cmd from a windows command prompt there don’t seem to be any issues with running RcWinTrans.exe in parallel except from the output to the console is off course messed up due to that 4 instances of RcWinTrans.exe is writing to the same console.
But I need to run NightTest.cmd from a Windows scheduled task and then the problems start to occur. If the scheduled task option “Run only when user is logged on” is checked things seems to work fine.
If the option “Run whether user is logged on or not” is checked I start to have problems with running RcWinTrans.exe in parallel, and in my case, I need this option to be checked. My guess is that the problems is related to not having a console when this option is checked.
In general, it is a bit of a mess to write to the console in stead of writing to standard output and standard error especially when a program can (should be able to) be run in parallel.


Best regards
Alex
25.02.2020 14:21:43
Topic:
Executing RCWinTrans 11 in parallel throws error

AlexC
AlexC
Hi,
Is there is news regarding changing the output from the console to stardard output?
Best regards
Alex
24.04.2020 12:00:07
Topic:
Purge history from fsmdb files

AlexC
AlexC
Hi
I had a closer look at the fsmdb files and to me it looks like there is some history information in the fsmdb files. Is that correct?
If so, is there a way to delete this history information?
Thank you for the help
Alex
edited by AlexC on 24.04.2020
18.02.2021 13:39:27
Topic:
Executing RCWinTrans 11 in parallel throws error

AlexC
AlexC
Hi

I have been debugging this parallel problem a lot more the last week.
My OS is windows server 2012 R2 version 6.3 Build 9600
My RC-WinTrans version is 11.5.2.74 and I am using the new command line interface.

I have a script that runs two processes in parallel. Each process works on their own database so it is not multiple access to the same database, but running RCWintrans.exe in parallel and each instance of RCWintrans.exe has exclusive access to the database it is working on.
Each process does an update and writes the target files.

When I run the script from a command line it works fine and I can see the two instances of RCWinTrans running when I monitor it in Process Explorer, so this is as expected.

But when I try to run the script as a scheduled task it starts to fail. Then scheduled task has the feature "Run whether user is logged on or not" enabled. I see that it is the update that is failing. And when I am monitoring it in Process Explorer I can that the WerFault.exe is started so there is some error reporting going on.
From my log files I have some times see error messages like these:
=========

RCWinTrans.exe /Update /proj MzChart_rc.rwtproject /lang ja-JP -all /log C:\Users\MZSERV~1\AppData\Local\Temp\wtout_4908.log

Date: Thursday, February 18, 2021 Time: 12:07



Update database...
Project/Database: "c:\f-share\latest\Source\MZ\Util\MzChart\MzChart_rc.rwtproject"
Language: Japanese (Japan) (ja-JP)
Number of files: 1
Data file error! Language: "ja-JP"; Source file: "c:\f-share\latest\Source\MZ\Util\MzChart\MzChart.rc"


Temp. file: C:\Users\mzservices\AppData\Local\Temp\mzchart\RC-WinTrans\RCT11681.rwtxlf


Not enough storage is available to complete this operation.




Error: Failed to run VBA function. VBA macro: "ConvProp", Function: "SupportedDatatypes"


Error: Failed to run VBA function. VBA macro: "ConvRC", Function: "SupportedDatatypes"


Error: Failed to run VBA function. VBA macro: "ConvIni", Function: "SupportedDatatypes"


Error: Failed to run VBA function. VBA macro: "ConvXliff", Function: "SupportedDatatypes"


Error: Failed to run VBA function. VBA macro: "ConvWin32EXE", Function: "SupportedDatatypes"


Error: Failed to run VBA function. VBA macro: "ConvSHL", Function: "SupportedDatatypes"


Error: Failed to run VBA function. VBA macro: "ConvXML", Function: "SupportedDatatypes"


Error: Failed to run VBA function. VBA macro: "ConvTABSep", Function: "SupportedDatatypes"


Error: Failed to run VBA function. VBA macro: "ConvXML", Function: "SupportedDatatypes"


Error: Failed to run VBA function. VBA macro: "ConvCHeader", Function: "SupportedDatatypes"


Error (401): The file "c:\f-share\latest\Source\MZ\Util\MzChart\MzChart.rc" could not be converted to the internal processing format.

=========

Further more I see error messages in the windows application logs:
First there is Application error:
=====

Faulting application name: RCWinTrans.exe, version: 11.5.2.74, time stamp: 0x5eb863b3
Faulting module name: ntdll.dll, version: 6.3.9600.19678, time stamp: 0x5e82c0f7
Exception code: 0xc0000374
Fault offset: 0x000e5d84
Faulting process id: 0x1100
Faulting application start time: 0x01d705e4b15fe62b
Faulting application path: c:\Program Files (x86)\RC-WinTrans\RC-WinTrans 11\Program\RCWinTrans.exe
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
Report Id: ef3733b4-71d7-11eb-890c-00155d140905
Faulting package full name:
Faulting package-relative application ID:

=====
And after that there is an Windows Error Reporting event
=====

Fault bucket , type 0
Event Name: APPCRASH
Response: Not available
Cab Id: 0


Problem signature:
P1: RCWinTrans.exe
P2: 11.5.2.74
P3: 5eb863b3
P4: StackHash_44b4
P5: 6.3.9600.19678
P6: 5e82c0f7
P7: c0000374
P8: PCH_4C_FROM_ntdll+0x0003C62C
P9:
P10:


Attached files:
C:\Users\mzservices\AppData\Local\Temp\WERA87F.tmp.appcompat.txt
C:\Users\mzservices\AppData\Local\Temp\WERAEAA.tmp.WERInternalMetadata.xml
C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_RCWinTrans.exe_6f8c68d45b968877b57a86c6481a462889f66be9_4e70d803_cab_0c62aeb8\memory.hdmp
C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_RCWinTrans.exe_6f8c68d45b968877b57a86c6481a462889f66be9_4e70d803_cab_0c62aeb8\triagedump.dmp


These files may be available here:
C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_RCWinTrans.exe_6f8c68d45b968877b57a86c6481a462889f66be9_4e70d803_cab_0c62aeb8


Analysis symbol:
Rechecking for solution: 0
Report Id: ef3733b4-71d7-11eb-890c-00155d140905
Report Status: 4
Hashed bucket:

=====

There are different version of there Error Logs. some time it is ntdll.dll that is the Faulting module and I have also seen MSVCR100.dll as the faulting module.

Hope this can help you closing in on the problem.
Best regards
Alex

By the way, forgot the tell I have made sure that each instance of RcWintrans.exe have its own temporary directory, I modify then TMP and TEMP environments variables before calling RCWintrans.exe to a unique directory.
edited by AlexC on 18.02.2021


just noticed this logfile : "C:\Program Files (x86)\RC-WinTrans\RC-WinTrans 11\LoggingFile.log" it had this error message:

Starting RC-WinTrans...Date: Thursday, February 18, 2021 Time: 15:20
ApcOleInit
InitATL
LoadSettingFromINIFile
CSftTree::RegisterApp
Creating document templates
Creating main frame window...
Error: Creating main frame window failed!
Exit.



To me that seems like several problems here. This gives at least 2 questions:
1) Why cant WinTrans create the main windows.?
2) It cant be safe for running in parallel to have such a file all instances of RcWintrans is writng to?
edited by AlexC on 18.02.2021
edited by AlexC on 19.02.2021
01.06.2023 17:25:57
Topic:
Missing Empty1.macro

AlexC
AlexC
Hi
I just updated to RC-WinTrans 11 Professional version 11.5.87.889.
Now I get the following error message:
Error (213): The user macros file "C:\ProgramData\RC-WinTrans\Add-Ons\Empty1.macro" does not exist.
The file is not there, but everything seems to be working.
I am not sure on how concerned I should be about this error message.

Thanks for the help
Alex
02.06.2023 07:41:53
Topic:
Missing Empty1.macro

AlexC
AlexC
Thank you for your fast answer.
Also thank for you for bringing this forum back online, it was actual missed.
Best regards
Alex
19.02.2024 14:18:05
Topic:
How do I specify the Ignore IDs from CLI

AlexC
AlexC
Hi,
I have some translator Databases that I need to import back into the master database from where they was exported.
The issue is that the master database has been reconfigured a bit, the source and target has been relocated.

When I try from a command line with a command like this:
RCWinTrans.exe /ImportProject /proj c:\work\main\Products\Source\Amelia\Core\Source\Tools\ZoneMappingTool\ZoneMappingUI\ZoneMappingUI.rwtproject /lang pl-PL /extproj "c:\work\main\Projects\DSP\Translation of MIKE Releases\2024.2\MUP\pl-PL\ZoneMappingUI-TranslatorProject.fsmdb" /extlang pl-PL -text -replace
it do not import the updated strings from the translator database.

However if I try to do it via the GUI it works fine



I suspect that it is due to the Ignore IDs that it works.
My questions is, how do I specify the Ignore IDs from the command line?


Best regards
Alex Bo Christensen
23.02.2024 11:02:17
Topic:
How do I specify the Ignore IDs from CLI

AlexC
AlexC
Thank you for the reply.
I use a work around to solve this.
I export the translator database to an intermediate excel spreadsheet with the /ExportExcel command. I can then import from the spreadsheet with the /ImportExcel command and specifying the option -noid.
/Alex
pages: 1




Powered by AspNetForum 6.9.6.0 © 2006-2010 Jitbit Software