Giter VIP home page Giter VIP logo

coremedia-deepl-integration's People

Contributors

fr4gi avatar sbuettne avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

frickeo

coremedia-deepl-integration's Issues

getSupportedSourceLocales und getSupportedTargetLocales ignorieren Proxy

Hallo,

ich habe festgestellt, dass bei der Nutzung des Proxys für Übersetzungen ein Problem auftritt. Obwohl der Proxy für Übersetzungsaufgaben verwendet wird, scheint es, dass bei den Methoden getSupportedSourceLocales und getSupportedTargetLocales jeweils ein neuer Translator ohne spezifische TranslatorOptions erstellt wird. Dadurch wird der Proxy in diesen Fällen nicht genutzt. Dies führt zu einem Problem: Wenn man in einer Umgebung arbeitet, die einen Proxy erfordert, scheitert die Validierung dieser Methoden. Es wäre hilfreich, wenn die Erstellung des Translators in diesen Methoden auch die TranslatorOptions berücksichtigen würde, um eine konsistente Nutzung des Proxys zu gewährleisten.

` public List getSupportedSourceLocales() throws DeepLException, InterruptedException {
translator = new Translator("");
List supportedStrings = translator.getSourceLanguages().stream().map(Language::getCode).collect(Collectors.toList());
return supportedStrings.stream().map(Locale::new).collect(Collectors.toList());
}

public List getSupportedTargetLocales() throws DeepLException, InterruptedException {
translator = new Translator("");
List supportedStrings = translator.getTargetLanguages().stream().map(Language::getCode).collect(Collectors.toList());
return supportedStrings.stream().map(Locale::new).collect(Collectors.toList());
}`

Übersetzungen von & werfen eine Exception

Falls Texte übersetzt werden sollen wo ein "&" vorkommt so wird eine
javax.xml.bind.UnmarshalException: null geworfen und Caused by: org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.

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.