Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [babel-dev] php string diffs for saving changes to document translations


Antoine Toulme wrote:


    The two solutions Gabe has enumerated look OK to me, but I'd have
    to try them out to be sure.  One thing that concerns me, however,
    is the need to re-play the entire transaction set if we want to
    see the latest file.  This is perhaps where Antoine's VCS idea
    comes in to play, since this is what it is designed to do.

    Denis



To address the problem of needing to re-play the entire transaction set I propose we save the most recent version in the database. The most common use case is someone wanting to update the current translation. The idea of saving the deltas was mostly as a way of tracking who did what when. The delta could also be used in the rare case we need to back out of a translation change.

+1 for looking into how wiki media (of any other wiki) does their magic. If we get lucky there might be some wiki code we can incorporate into Babel.

gO'




    On 03/16/2010 08:23 PM, Antoine Toulme wrote:
    Hi Gabe,

    wouldn't you be better off with a VCS for that ?

    I would recommend you also look at Bespin for an online editor
    that could help.

    An other alternative could be to use an editor like the one
    github uses so that people can make small changes online.

    I'm afraid otherwise you reinvent quite a few things to approach
    the same result.

    Now that's my 0.02 c, feel free to proceed with your plan,

    Antoine

    On Tue, Mar 16, 2010 at 16:22, Gabe O'Brien
    <gabe.obrien@xxxxxxxxxxx <mailto:gabe.obrien@xxxxxxxxxxx>> wrote:

        Hello Bablers,

          On our last status call Kit asked me to look into possible
        solutions to generating diffs for translations of
        documentation.  The idea is we could save the differences
        between translations as people work on a file and only save
        one working copy of the most recent translated document.  The
        diffs would serve as an audit trail and allow for recreating
        the translated document if needed.

          I found two possible solution for creating diffs in PHP.
         It would be great to get some feedback from Denis on which
        one would be better from a server standpoint.

        Possible Solutions:
          http://php.net/manual/en/book.xdiff.php
          http://pear.php.net/package/Text_Diff

        Gabe O'Brien
        The Eclipse Foundation
        _______________________________________________
        babel-dev mailing list
        babel-dev@xxxxxxxxxxx <mailto:babel-dev@xxxxxxxxxxx>
        https://dev.eclipse.org/mailman/listinfo/babel-dev



    _______________________________________________
    babel-dev mailing list
    babel-dev@xxxxxxxxxxx <mailto:babel-dev@xxxxxxxxxxx>
    https://dev.eclipse.org/mailman/listinfo/babel-dev


    _______________________________________________
    babel-dev mailing list
    babel-dev@xxxxxxxxxxx <mailto:babel-dev@xxxxxxxxxxx>
    https://dev.eclipse.org/mailman/listinfo/babel-dev


------------------------------------------------------------------------

_______________________________________________
babel-dev mailing list
babel-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/babel-dev



Back to the top