DGT-OmegaT 3.4-TEST and 3.5-DEV, 2.1 published

This change comes from a discussion in the OmegaT users list.

Actually if a change is done in a segment, it is only in memory and if OmegaT is closed uncorrectly, changes are lost unless you have explicitly saved the project.

Some people would prefer that project save occurs on every segment change, but since save implies conversion to TMX (project_save.tmx) this could significantly decrease performances.

To solve the problem I introduce a new project memory plugin. It is integrated in the core, to activate it, simply create a file named project_save.properties with only the following line:

class=org.omegat.core.matching.external.NoDelaySaver

This is a standard properties file, you can add comments if you want. Actually only the property "class" is defined for this plugin (other plugins have more properties and we may add other properties for this one later)

Once the plugin is activated, each time you modify a segment it is also sent to a file project_save.tmp; contrarily to TMX, this file is not an XML, it is a kind of Tab-separated values file which grows without the need to be fully saved each time. Once you save the project, this file disappears. But if on the contrary, OmegaT is closed without saving (either because you asked for it or because it was broken accidentally) then the file is here, and next time you open OmegaT with the same project, all segments which are in this file will be re-imported inside the project.

Thanks to that you should never loose a segment unless you want it by deleting the file.

This feature is to be experimented.

Theme: 
OmegaT

Add new comment

Limited HTML

  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.