Closed johnfelipe closed 1 year ago
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.
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?
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.
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?
Yeah, I think that the current implementation expects to have the text between XML-tags, so it might work with a regex-transformation.
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.
https://github.com/statisticssweden/PxWeb/blob/master/PXWeb/Resources/Languages/pxlang.xml
how can solve this?