Coder Social home page Coder Social logo

Comments (5)

davidfraser avatar davidfraser commented on July 20, 2024

The option is already abstracted in convert/convert.py, we would need to add
more intelligence to make it work for mozilla though.
This is because in OOo, we are already dealing with a big file that we can
arbritrarily split up as we choose whereas in mozilla we really are dealing with
different files.

from translate.

transl8bzimport avatar transl8bzimport commented on July 20, 2024

Originally posted by David Farning:

Thought that I would ask for some feed back before running too far with this.

I am working on adding a —mergefile option to moz2po.

It is pretty nonintrusive

adding
parser.add_mergefile_option()
to moz2po.

adding
add_mergefile_option()
to convert.

adding a conditional to convertdtd and convertprop which calls
something like outputfile.merge(outputpoline)
instead of
outputfile.writelines(outputpolines)

So that instead of writing a new .po file file each time convert[dtd|prop] is
called, outputlines are merge via tools.pomerge into options.outputfile.

Right now I am hard codeing some file name to prevent mucking to much with
function signatures. Also it is pretty inefficent because I rerun pomerge for
each new file rather than pass an Mergefile object around.

from translate.

transl8bzimport avatar transl8bzimport commented on July 20, 2024

Originally posted by David Farning:

Created [attachment 26](http://bugs.locamotion.org/attachment.cgi?id=26)

mergefile1

from translate.

transl8bzimport avatar transl8bzimport commented on July 20, 2024

Originally posted by David Farning:

Attached is a proposed patch that implements moz2po —mergefile upto the point
where it calls pomerge.mergeStub()

it is against translate-toolkit-0.8rc4.20051115

from translate.

dwaynebailey avatar dwaynebailey commented on July 20, 2024

Not currently a toolkit priority. Changed to LATER

from translate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.