To inject sdlxliff file path into TM's TU

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Trados has very nice tool called "RecordSourceTU" already.
This code considering the same goal but with slightly different scenario.
It injects sdlxliff's full path information (only) into TM afterwards.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1. You have finished a project which has sdlxliff and TM of course
2. But, its TM lacks sdlxliff's information (in this case Full path) within it
3. This code select a sdlxliff and a TM
4. It checks sdlxliff TU's time window - the lastest and the oldest time info
5. It checks TM TU's same information and if it fits (within the time window), injects sdlxliff's info into it
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Code is quite simple and elementary stage, just confirmed it works.
You have to put "sqlite3.dll" at the same folder with this code. This file comes from SQLite site.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Enjoy..

..

.

Trados Studio interface showing a project with translation results and an error message 'No TM Database.'

..

.


Attached, AutoHotkey source code and sqlite.dll

TestedSuccessfully.zip



Generated Image Alt-Text
[edited by: Trados AI at 4:30 AM (GMT 0) on 5 Mar 2024]
Parents Reply Children
No Data