> Your example shows, that it is necessary to "update" before "commit". The same
> issue is valid for subversion and probably also for the other VCS.
>
> Maybe we should change pootle's code to do an update before commit by default?
>
>
> Did I get your point now?

Hey, you really wanted to say another thing, didn't you? If Pootle
does as you say all the last work will be lost!!

IMHO the things are that way:

Suppose you have the version 59 of the file translation.po. The
translation.po changes in the vcs, and before you update the local
copy with the newest 60 version (created after synchronize the
translation.po with a new .pot file), Pootle makes changes to the
local 59 copy, so for Pootle this is the new 60 version that it is not
the same as the vcs one.

So when Pootle tries to commit (in git is pull, isn't it?) the
translation.po it fails, because the two files (vcs one and Pootle
one) have the same version number, the 60. And of course, before a
local update (syncronize with the vcs version), you have to do a
commit to save into the vcs the latest changes made in Pootle.

If you have a .pot file, there is no problem. If first you make a
backup of the local modified translation.po (local 60 version bis),
and then you update the local copy downloading the newest .pot file
from the vcs, and also the version 60 of translation.po replacing the
local 60 version  (this should be a way of forcing doing this, but I
only know a few commands of svn). Then you could move the backup
(local 60 version bis) replacing the downloaded translation.po, making
it the new 61 version of translation.po, and finally you locally merge
it with your latest .pot file (the vcs one). Finally you only have to
do a commit to save the changes in the vcs.

But sometimes you don't have any .pot file, so we have a great problem
here. The only solution in this case is to use a Translation memory,
that saves all the translations made by the Pootle users. Then when
updating, if the file is updated (forcing the update, because the two
files are 60 version) with a newest version from the vcs, Pootle
should run an automatic translation with exact matching using the
translations saved in the database in order to try to maintain the
translation level of the file. Just after that Pootle should make a
commit (or a pull in git), to save the changes in the vcs.

I think this is the only way. I hope this will be helpful.

Ah. And of course, this things should be automated to avoid human intervention.

Another thing, is there any way to making translation memories in
Pootle, and importing and exporting them as TMX files??

Bye,
                       Leandro Regueiro

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Translate-pootle mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/translate-pootle

Reply via email to