02.12.2011 11:06:50
Topic:
Make Satellite DLL from WinTrans 9 project
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
|
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
|
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
|
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
|
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
|
Hi, Just wanted to inform that the december service release (9.2.2.2) did solve this problem. Thanks for the help Alex |
07.09.2017 12:57:50
Topic:
Executing RCWinTrans 11 in parallel throws error
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 |
04.07.2019 15:15:08
Topic:
Executing RCWinTrans 11 in parallel throws error
AlexC
|
Any news or updates regarding this? |
09.07.2019 16:19:25
Topic:
Executing RCWinTrans 11 in parallel throws error
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
|
Hi, Is there is news regarding changing the output from the console to stardard output? Best regards Alex |
18.02.2021 13:39:27
Topic:
Executing RCWinTrans 11 in parallel throws error
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
|
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
|
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
|
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
|
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 |
06.06.2024 14:33:13
Topic:
NET8 support
AlexC
|
Hi, We are staring to use the .NET8 framework. I tried to look up if RC-WinTrans 11.5 actual support .NET8, but could not find anything about that. Can you help with an answer on that?
Thank you for the answer Alex |
10.06.2024 12:57:24
Topic:
NET8 support
AlexC
|
Thank you for the answer.
Will RC-WinTrans have .NET 8 support in the upcomming version 12?
Or do you have another plan to include NET 8 support in WinTrans , in a update to version 12 or in a later release?
/Alex |
12.06.2024 08:27:26
Topic:
NET8 support
AlexC
|
Hi Thanks for that answer. Do you have a date for when an update to version 12 with .NET8 support will be released ?
We have an release later this year, in the fall properly something like September or October, so we are planning if we should stick with passing and generating assemblies or we should rework to work on resx files instead. Best regards Alex |
27.06.2024 09:36:46
Topic:
Ukrainian language code
AlexC
|
Hi, I was trying to translate some resx files to Ukrainian and WinTrans used the lang. code uk-UK like this:
Hence the translated resx files would be named something with 'uk-UK' in them, e.g. resources.uk-UK.resx. When I tried to use these Ukrainian translated resx files with Visual Studio 2022 I could not get them to work, e.g. I could not get VS2022 to generate the Ukrainian assembly. I had it working fine with 11 other languages so I was a bit puzzled.
After some googling i found several places that mentioned that the Ukrainian language is 'uk-UA'. Then I tried to rename my Ukrainian resx files accordingly, replacing the 'uk-UK' with 'uk-UA'. After that VS2022 picked up the resx files and made the assembly DLL.
So can you help out here with what is going on? Has the language code for Ukrainian change? Many thanks for the help Best regards Alex |
1
|