Coder Social home page Coder Social logo

Comments (6)

okulev avatar okulev commented on July 20, 2024

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

Patch for skipping parameter entities

from translate.

davidfraser avatar davidfraser commented on July 20, 2024

Thanks for pointing this out …
I just want to check that the PO file produced merges back correctly etc. Do you
have any pointers to the documentation on this ENTITY % parameter syntax?

from translate.

okulev avatar okulev commented on July 20, 2024

Unfortunately, the attached patch is not solution because when generating .dtd,
the “<!ENTITY %” and “&…;” are not inserted back. The patch just ignores them
when parsing instead of turning them into kind of internal structure so that
they can be reconstructed.

from translate.

davidfraser avatar davidfraser commented on July 20, 2024

Have just committed to CVS a patch that parses these properly and can read them
in and write them out.
This also works from within moz2po / po2moz since although the entities are not
marked any differently in the po file, the dtd in the template is used to
recreate them correctly.

Still need to make the %realBrandDTD; get retained on reading and writing

from translate.

davidfraser avatar davidfraser commented on July 20, 2024

I have now committed a fix for handling %realBrandDTD; as well – this now
reliably handles the files global/brand.dtd and global/netError.dtd through the
whole translation process (as far as I know these are the only files containing
this syntax).
Marking Fixed – can you confirm as Verified?

from translate.

okulev avatar okulev commented on July 20, 2024

I’ve tried new storage/dtd.py and the result looks great. And it’s more nice
with proper empty lines :-)

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.