To import Lots of tmxs into a tmx

Former Member
Former Member


; You select a SDL Trados Studio TM exported file (.tmx) as a Base(Final/Compiled)_tmx
; You select a Folder which has lots, lots of ".tmx"s inside of it

; Then, this Code copies all the TUs from the folder (in the tmxs) into the Base_tmx
; In its process, it injects SDL TM fields named "origin_File" which shows its origin tmx file name, for all and every TUs

; It does not touch all the TUs in the Base_tmx (at starting stage). So, you'd better use the empty one (or not)
; You do not have anything to worry about SDL TM fields, it is done all automatically 

; Now, you just import a tmx once (the Base_tmx), DONE !!!

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; It does NOT make any kind of BackUps. That is your business, not mine.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

currently it processed "2" tmxs (I do not have thousands of them. Each of them has only one TU within it.)
the name of SDL TM fields is "origin_File"
it shows briefly only the name of tmx it came from (not Path, should be useless)

Two screenshots of Trados Studio interface showing the process of selecting a .tmx file and a folder with multiple .tmx files for translation memory compilation.

details

Screenshot of Trados Studio with highlighted sections showing the injection of 'origin_File' SDL TM fields into translation units from a selected .tmx file.

compile thousands TUs into OneFile.zip

Enjoy..



Generated Image Alt-Text
[edited by: Trados AI at 4:23 AM (GMT 0) on 5 Mar 2024]
Parents Reply Children
  • I don’t think that’s true Kelly. Many people take the code and read posts without ever responding. That’s just the nature of communities.  I like to read through your code and try to understand it... it’s a good learning experience. I even keep a folder for AHK scripts on my laptop and have many of your scripts in there. But the ones with Korean I usually delete if I can’t figure out what should be in there.

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub