How to deal with multiple TMX files

52 views
Skip to first unread message

Hans list

unread,
May 30, 2012, 3:12:26 AM5/30/12
to cafetra...@googlegroups.com
Hi,

When I want to use several TMX files, I place them in a single subfolder and select this subfolder in the Project Manager when creating a new project. I also make the desired filter settings for this TMX folder (remove translation units where source=target, new duplicates only etc.).

When I first save All memories, CafeTran asks me for a name for the TM. I have some questions related to this and since I think that the answer will be relevant to some other users too, I ask them here ;).

1. After saving the combined TMX files for the first time, say as 'Acme.tmx', can I move the other TMX files out of the subfolder?

a. Do I understand it correctly that Acme.tmx will contain all translation units in the subfolder, minus the ones where source=target and minus the older duplicates?

2. When I choose to create a new ProjectTM on project creation, what is the status of this TM?

a. Will it receive all new translation units from the current project?

b. Should I merge it after with Acme.tmx after having finalized the current project?

Thanks,

Hans

Elmars Sumanis

unread,
May 30, 2012, 3:48:06 AM5/30/12
to cafetra...@googlegroups.com
Hi Hans,

I had the same problem of grouping TMs and solved it in a bit different way.
I use the External DB feature: made different DBs for different clients and all the time add there the content of my new relevant TMs.
IMHO opening a DB is much more simple than grouping  TMs in a folder :)
Of course, I regularly backup the CafeTran.app/Contents/Resources/Java/resources/databases folder where my External DBs reside on the Mac.
 
Hope this helps,
Elmārs


2012/5/30 Hans list <hans...@gmail.com>

Hans van den Broek

unread,
May 30, 2012, 4:34:16 AM5/30/12
to cafetra...@googlegroups.com

On 30 Mei 2012, at 14:48, Elmars Sumanis wrote:

Of course, I regularly backup the CafeTran.app/Contents/Resources/Java/resources/databases folder where my External DBs reside on the Mac.

Elmars, I still don't understand the use of external DBs, but I think the resources folder you mention is not intended for saving databases in. AFAIK, it only saves a .res file (kind of link) to the database. I wouldn't be surprised if uninstalling CT would result in deleting the resources folder, including your database, so if you have to use this feature, be sure you don't uninstall CT before you install an update. And even then I'm not sure your database will be "safe".

Cheers,

Hans

-- 

Hans van den Broek
Schrijf-, vertaal- en redigeerwerk
Peleman Rejowinangun KG1/513
RT029 RW009
Yogyakarta 55171
Indonesia
SKYPE: hanstranslations

Hans van den Broek

unread,
May 30, 2012, 4:41:50 AM5/30/12
to cafetra...@googlegroups.com

On 30 Mei 2012, at 14:12, Hans list wrote:

> 1. After saving the combined TMX files for the first time, say as 'Acme.tmx', can I move the other TMX files out of the subfolder?

I suppose so, yes.

> a. Do I understand it correctly that Acme.tmx will contain all translation units in the subfolder, minus the ones where source=target and minus the older duplicates?

Yes.

> 2. When I choose to create a new ProjectTM on project creation, what is the status of this TM?

It will accept new segment pairs (in contrast to an existing TM you set as Read Only).

> a. Will it receive all new translation units from the current project?

Yes.

> b. Should I merge it after with Acme.tmx after having finalized the current project?

Depends on the settings of the settings of Acme.tmx. Yes if Acme is Read Only, not if it isn't.

In fact, that's exactly my approach. My main TM is Read Only for speed reasons, so to keep it up-to-date, I'll have to merge the new project TM after having translated the last segment.

Elmars Sumanis

unread,
May 30, 2012, 4:54:44 AM5/30/12
to cafetra...@googlegroups.com
Hans, the folder I mentioned DOES include the real database.
The .res files you mention are saved in other folders, for example, CafeTran.app/Contents/Resources/Java/infos/resources/ and CafeTran.app/Contents/Resources/Java/infos/databases
Updates on Mac mainly include replacing of CafeTran.jar and files in CafeTran.app/Contents/Resources/Java/lib, so there is no need to remove my databases :)

Greetings,
Elmārs

2012/5/30 Hans van den Broek <ir...@indo.net.id>

Hans van den Broek

unread,
May 30, 2012, 5:40:25 AM5/30/12
to cafetra...@googlegroups.com

On 30 Mei 2012, at 15:54, Elmars Sumanis wrote:

Updates on Mac mainly include replacing of CafeTran.jar and files in CafeTran.app/Contents/Resources/Java/lib, so there is no need to remove my databases :)

I hope you're right. If you uninstall an app the correct way, I'm afraid you will also trash the Java/resources/database folder, and there goes your TM. Now there's a Mac version of CT, I don't know what happens if you install a new version, but I would definitely keep my TMs somewhere else.

I just checked... According to App Cleaner, ALL the contents of the CT app will be deleted.

Igor Kmitowski

unread,
May 30, 2012, 6:52:46 AM5/30/12
to cafetra...@googlegroups.com
Hi everybody,

Both approaches of dealing with multiple memories are fine, although
Elmars' database approach is simpler and more elegant without shuffling
with TMX files. When you finish your translation job, just update a
selected database table with the Project TM (menu Memory | Store memory in
External DB).

When you start the new translation, select in the Project Manager a
desired database table (e.g. a client's memory) to load to RAM just like a
TMX file. Again, when the job is finished, you update the table with the
Project TM and so on...

The default database file (H2MemoryBase.h2) is located in the
..resources/databases within CT installation (package). It can and should
be backed up from time to time. You can also change the location of this
file (click Edit | Options | Database tab | Database connection button and
edit the Connection URL field) moving it outside the CafeTran installation
folder (package).

Cheerio,
Igor

--
Igor Kmitowski
Translator and Java developer
CafeTran website: http://www.cafetran.com
CafeTran support: cafetran...@gmail.com

Hans list

unread,
May 30, 2012, 8:46:44 AM5/30/12
to cafetra...@googlegroups.com
Hans van den Broek wrote:
>
> In fact, that's exactly my approach. My main TM is Read Only for speed reasons, so to keep it up-to-date, I'll have to merge the new project TM after having translated the last segment.

And how do you remove/delete obvious mistake that are being displayed in the main TM (in the TM pane)?

Hans list

unread,
May 30, 2012, 8:57:53 AM5/30/12
to cafetra...@googlegroups.com
Hi all,

On May 30, 2012, at 12:52 PM, Igor Kmitowski wrote:
>
> Both approaches of dealing with multiple memories are fine, although Elmars' database approach is simpler and more elegant without shuffling with TMX files. When you finish your translation job, just update a selected database table with the Project TM (menu Memory | Store memory in External DB).
>

I can understand that a DB is faster, nevertheless a large client TMX that I'm working with is handled fast enough on my fast iMac -- so for the time being I'd rather stick to the TMX files approach. I don't mind the shuffling, it's just that I want to be sure about procedures.

For me the TMX approach has several advantages:

- Finding and replacing with TextWrangler is possible, flexible and fast.
- Placing the TMX in my Dropbox allows me to use it on several computers (I guess this should be possible with a DB too, perhaps with more overhead).

So, I still want to make sure this is correct (though I have no reason to doubt Hans' guess ;)):

>>>
>>> 1. After saving the combined TMX files for the first time, say as
>>> 'Acme.tmx', can I move the other TMX files out of the subfolder?
>>>

Thanks,

Hans

Hans van den Broek

unread,
May 30, 2012, 9:13:07 AM5/30/12
to cafetra...@googlegroups.com

On 30 Mei 2012, at 19:46, Hans list wrote:

> And how do you remove/delete obvious mistake that are being displayed in the main TM (in the TM pane)?

I don't, I'm afraid.

Hans van den Broek

unread,
May 30, 2012, 9:19:16 AM5/30/12
to cafetra...@googlegroups.com

On 30 Mei 2012, at 19:57, Hans list wrote:

> - Placing the TMX in my Dropbox allows me to use it on several computers

Does it work? I thought of that as well, but every time you save the TM, Dropbox will start uploading the latest version. I'm a compulsive saver of both the project and "all memories", and it turned out Dropbox was still uploading my Big Mama when I saved it again. I gave up on it. Same for the project file, I think. No problems if the project file is small or if you set AutoSave high, but Dropbox was saving a large project file all the time.

Hans list

unread,
May 30, 2012, 9:39:11 AM5/30/12
to cafetra...@googlegroups.com

On May 30, 2012, at 3:19 PM, Hans van den Broek wrote:

>
> On 30 Mei 2012, at 19:57, Hans list wrote:
>
>> - Placing the TMX in my Dropbox allows me to use it on several computers
>
> Does it work?

Just started with it. So far, so good. I have glass fibre at the office.

> I thought of that as well, but every time you save the TM, Dropbox will start uploading the latest version. I'm a compulsive saver of both the project and "all memories", and it turned out Dropbox was still uploading my Big Mama when I saved it again.

That is not a problem at all. What you want to achieve (I guess) is this:

- Backup your 'precious little diamonds (I leave it all to you)'.

- Continue working on another computing after moving to that computer some time later.

You'll probably don't want to work in a team, with the same TM.

So, here's the deal: Dropbox stores everything local. It is constantly uploading/syncing. Not a problem. After you've stopped working on your iMac, the files will get synced with your Mac Mini after a short delay.

Igor Kmitowski

unread,
May 30, 2012, 2:35:49 PM5/30/12
to cafetra...@googlegroups.com
Hi Hans 

 

When I want to use several TMX files, I place them in a single subfolder and select this subfolder in the Project Manager when creating a new project. I also make the desired filter settings for this TMX folder (remove translation units where source=target, new duplicates only etc.). 

When I first save All memories, CafeTran asks me for a name for the TM. I have some questions related to this and since I think that the answer will be relevant to some other users too, I ask them here ;).

1. After saving the combined TMX files for the first time, say as 'Acme.tmx', can I move the other TMX files out of the subfolder?

Yes, you can.

 


a. Do I understand it correctly that Acme.tmx will contain all translation units in the subfolder, minus the ones where source=target and minus the older duplicates?

All selected filters will work. Note that there is no filter that removes all duplicates in one go yet. The duplicates flags in the Memory Options work in relation to the newly added segments in the workflow. I will add Remove duplicates filter since it is useful TM management feature.  

 


2. When I choose to create a new ProjectTM on project creation, what is the status of this TM?

The status is as the name suggests and it is always opened automatically with the project.
 

a. Will it receive all new translation units from the current project?

Yes, unless you decide to skip some segments pressing Next segment instead of Add current segment to memory. Alternatively, you can just save all project units as a TMX memory (Project | Save project as...  and select in the Files of type box: Memory
 

b. Should I merge it after with Acme.tmx after having finalized the current project?

Yes, if you wish so.

BR
Igor

 

Thanks,

Hans

Hans list

unread,
May 30, 2012, 3:12:00 PM5/30/12
to cafetra...@googlegroups.com
Hi Igor,

Igor Kmitowski wrote:
>
> All selected filters will work. Note that there is no filter that removes all duplicates in one go yet. The duplicates flags in the Memory Options work in relation to the newly added segments in the workflow. I will add Remove duplicates filter since it is useful TM management feature.
>

[...]
>

> b. Should I merge it after with Acme.tmx after having finalized the current project?
>
> Yes, if you wish so.
>

Thanks for clarifying this. So if I want to achieve that the newest duplicate of a TU, that was created in the ProjectTM, will be the only one in the merged TM (ProjectTM + old TM) there currently is no way to do this.

At this moment I should not create a ProjectTM but let CafeTran write directly to the old TM, since these duplicates, added on the fly are indeed merged (only the newest is kept). Right?

Hans

Igor Kmitowski

unread,
May 30, 2012, 4:17:55 PM5/30/12
to cafetra...@googlegroups.com
Hans,

> Thanks for clarifying this. So if I want to achieve that the newest
> duplicate of a TU, that was created in the ProjectTM, will be the only
> one in the merged TM (ProjectTM + old TM) there currently is no way to
> do this.
>
> At this moment I should not create a ProjectTM but let CafeTran write
> directly to the old TM, since these duplicates, added on the fly are
> indeed merged (only the newest is kept). Right?

You can do both, that is, create/write to a ProjectTM and write the old TM
simultaneously.

Removing duplicates as a separate Filter presents one problem. Which
translation of a duplicate source segment should be kept? The creation
date may be one criterion but is this better than actual content check by
the translator? The current implementation of handling duplicates in the
workflow gives you greater control over which duplicate should be kept or
updated.
Reply all
Reply to author
Forward
0 new messages