Coder Social home page Coder Social logo

Comments (7)

okulev avatar okulev commented on July 20, 2024

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

Fix for converting \n in dtd2po and po2dtd

from translate.

okulev avatar okulev commented on July 20, 2024

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

Real fix for converting \n in dtd2po and po2dtd

The previous patch was the wrong diff.

from translate.

davidfraser avatar davidfraser commented on July 20, 2024

Thanks for reporting.
Could you give an example of such a case in a dtd?
That way I can make a test case and hopefully commit your patch :-)

from translate.

okulev avatar okulev commented on July 20, 2024

After quick search, perhaps there are others:

http://lxr.mozilla.org/mozilla1.8/source/browser/locales/en-US/chrome/overrides/netError.dtd
http://lxr.mozilla.org/mozilla1.8/source/toolkit/locales/en-US/chrome/mozapps/update/incompatible.dtd

from translate.

dwaynebailey avatar dwaynebailey commented on July 20, 2024
  1. comments are not very useful examples of the problem

from translate.

dwaynebailey avatar dwaynebailey commented on July 20, 2024

Committed a test for the first part of the problem:

dtd2po

<!ENTITY noupdatesfound.intro “A hard coded newline.\n”>

Is converted to:

#: noupdatesfound.intro
msgid “A hard coded newline.\n”
msgstr ""

When it should be

#: noupdatesfound.intro
msgid “A hard coded newline.\n”
msgstr ""

Ie not escaped newline at the end

from translate.

davidfraser avatar davidfraser commented on July 20, 2024

Tested and is fixed in latest CVS on 0.8 branch
Converts to \n in po file and comes back as \n in dtd file

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.