Comments (6)
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.
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.
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.
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.
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.
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)
- Arrays are converted to objects HOT 14
- Shutdown of zero-config translations
- cant translate with azure HOT 3
- Watson IBM HOT 2
- NOT BUG: how can translate all folder with yml files to other folder with another lang? HOT 7
- JS translate HOT 3
- PHP files translation HOT 1
- cant translate pot file en to es? HOT 1
- Double quotes in Localizable.strings HOT 1
- Error 16 UNAUTHENTICATED when invoking Google Cloud Translate HOT 2
- Error: 8 RESOURCE_EXHAUSTED: Quota Error: RESOURCE_EXHAUSTED HOT 2
- YAML variable name is being translated in language ES HOT 3
- SyntaxError: Unexpected end of JSON input HOT 6
- Target is up-to-date no matter what HOT 1
- .ts file feature for translate HOT 5
- yaml file first line language key and recognition of existing already translated lines HOT 6
- Docs and sample script for TypeChat
- Reduce outdated lint-packages
- Change of the license
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 attranslate.