Coder Social home page Coder Social logo

Comments (7)

qtehfw avatar qtehfw commented on June 28, 2024 1

I just had to add a 'C' to the <![DATA and re-run the command

from android_localization.

qtehfw avatar qtehfw commented on June 28, 2024

It could also search for unescaped apostrophes, and potentially escape them, before generating the outputs.

from android_localization.

jayrave avatar jayrave commented on June 28, 2024

Can you paste the line that led to this issue? The one from the CSV file

from android_localization.

qtehfw avatar qtehfw commented on June 28, 2024

모델"%1$s"에 오류가 있습니다. 재업로드를 위해서는 <![DATA[<a href="https://app.fieldwire.com">app.fieldwire.com]]>에서 온라인에 접속하여 다시 시도해 주세요

from android_localization.

jayrave avatar jayrave commented on June 28, 2024

Looks like even localize would fail if the default strings file has a string like this. I guess for this we can ask localize to perform validate before it starts its own run.

For localized, it could take some more work since essentially we want to validate the CSV before the XML files are updated. May be we read in all the CSV strings, run validations in memory & proceed with XML updates only if all of them succeed?

from android_localization.

qtehfw avatar qtehfw commented on June 28, 2024

Yeah, but I think in this case it was probably due to a typo in the translated string.

For validate, is the XML parsed into some kind of in-memory data structure before validating? If yes, does localized parse the csv into that same data structure?

from android_localization.

jayrave avatar jayrave commented on June 28, 2024

Sorry, was a bit busy with work!

Yes. We parse into AndroidString & then perform the validations. Localized also deals with strings in this format. We should be able to reuse stuff here.

Another idea: I guess these failures happen if the XML is mis-formatted like <![DATA instead of <![CDATA. To makes things easy for us, before localize & localized (may be even validate), we can just validate if strings are valid XML values

from android_localization.

Related Issues (4)

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.