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]