Giter VIP home page Giter VIP logo

Comments (6)

fkirc avatar fkirc commented on June 16, 2024

Hi,
Unfortunately, the current XML-translation is pretty much limited to Android-XMLs.
To make it more usable for Non-Android-XMLs, we would probably need a rewrite of the XML-code.
Right now, I cannot do any rewrite because I am blocked with other projects, but I would be happy to merge a PR.

from attranslate.

johnfelipe avatar johnfelipe commented on June 16, 2024

but may be can do translate to xml appropiate of your app
can you share me a link with an example?
i will create a regex for try and test
agree?

from attranslate.

fkirc avatar fkirc commented on June 16, 2024

As an example-XML, you can take a look at the XMLs in https://github.com/fkirc/attranslate/tree/master/sample-scripts/xml-generic or in https://github.com/fkirc/attranslate/tree/master/sample-scripts/android/app/src/main/res.
This should give you an idea about the currently supported XMLs.

Now to improve the XML-support for your specific XMLs and other XMLs, we could modify the code in https://github.com/fkirc/attranslate/tree/master/src/file-formats/xml.
But I am not sure whether small improvements are enough, or whether a complete rewrite of this XML-code is necessary.

from attranslate.

johnfelipe avatar johnfelipe commented on June 16, 2024

i will translate this
https://github.com/statisticssweden/PxWeb/blob/master/PXWeb/Resources/Languages/pxlang.xml

to this

https://github.com/fkirc/attranslate/blob/master/sample-scripts/xml-generic/en.xml

with regex

summary

<sentence name="CtrlChangeTextsText" value="Make your text changes and press 'Continue'"/>
to

<sentence name="CtrlChangeTextsText">Make your text changes and press 'Continue'>
its fine?

from attranslate.

fkirc avatar fkirc commented on June 16, 2024

Yeah, I think that the current implementation expects to have the text between XML-tags, so it might work with a regex-transformation.

from attranslate.

fkirc avatar fkirc commented on June 16, 2024

I am still unsure what to do with the current XML-feature.
I know that there are limitations with the XML-feature, but I currently do not have the resources to rewrite the XML-feature.

I am closing the issue for now, but please feel free to re-open the issue if it is still relevant.

from attranslate.

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.