You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support for translation providers in harvesters (geonetwork#7849)
* Support for translation providers in harvesters
* Support for translation providers / fix artifact in services/pom.xml
* Support for translation providers / directive to select multiple languages
* Support for translation providers / update harvester translation and use ACE Editor widget for translation fields configuration
* Support for translation providers / refactor directive to select multiple languages to be generic
* Support for translation providers / directive to select multiple languages - use a watcher to initialize typeahead when the data is available
* Translation providers improvements (geonetwork#98)
* Support for translation providers / Better handle record which may contains other language, add translate all, translate only empty.
Also experiment support in suggestion (disabled for now - list of xpath
is not supported, only one xpath at a time).
* Support for translation providers / Add google translate service
* Create a script
```js
var mock = {
parameter:{
q:'hello',
source:'en',
target:'fr'
}
};
function doGet(e) {
e = e || mock;
var sourceText = ''
if (e.parameter.q){
sourceText = e.parameter.q;
}
var sourceLang = '';
if (e.parameter.source){
sourceLang = e.parameter.source;
}
var targetLang = 'en';
if (e.parameter.target){
targetLang = e.parameter.target;
}
var translatedText = LanguageApp.translate(sourceText, sourceLang, targetLang, {contentType: 'html'});
return ContentService.createTextOutput(translatedText).setMimeType(ContentService.MimeType.JSON);
}
```
* Deploy it as webapp for anonymous user
* Configure the service URL in the translation provider
* Support for translation providers / Add Anchor support.
* Support for translation providers / Create one directive for the configuration. Add examples for easier XPath configuration.
* Support for translation providers / Improve translation.
* Support for translation providers / Fix bad xpath.
* Update translationproviders/src/main/java/org/fao/geonet/translations/googletranslate/GoogleTranslateService.java
* Update translationproviders/src/main/java/org/fao/geonet/translations/libretranslate/LibreTranslateClientException.java
* Update web-ui/src/main/resources/catalog/components/admin/harvester/partials/translate.html
* Update web-ui/src/main/resources/catalog/components/admin/harvester/partials/translate.html
---------
Co-authored-by: Jose García <[email protected]>
* Translation providers - support additional harvesters: GeoNetwork, Local filesystem, OAI-PHM, WebDav
---------
Co-authored-by: François Prunayre <[email protected]>
0 commit comments