Comments (7)
I just had to add a 'C'
to the <![DATA
and re-run the command
from android_localization.
It could also search for unescaped apostrophes, and potentially escape them, before generating the outputs.
from android_localization.
Can you paste the line that led to this issue? The one from the CSV file
from android_localization.
모델"%1$s"에 오류가 있습니다. 재업로드를 위해서는 <![DATA[<a href="https://app.fieldwire.com">app.fieldwire.com]]>에서 온라인에 접속하여 다시 시도해 주세요
from android_localization.
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android_localization.