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
Is your feature request related to a problem? Please describe.
Current solution does not make it possible to use already existing glossary, which was uploaded to DeepL
Describe the solution you'd like
e.g. DeeplService::translateRequest
$glossaryId = '';
// If the source language is set to Autodetect, no glossary can be detected.
if ($sourceLanguage === 'auto') {
$sourceLanguage = null;
} else {
+ // <<< emit event here
+ // dispatch new FetchGlossaryEvent($sourceLanguage, $targetLanguage);
+ $glossaryId = $fetchGlossaryEvent->getGlossaryId($sourceLanguage, $targetLanguage);
+ if ($glossaryId === '') {
// @todo Make glossary findable by current site.
$glossary = $this->glossaryRepository->getGlossaryBySourceAndTarget(
$sourceLanguage,
$targetLanguage,
DeeplBackendUtility::detectCurrentPage()
);
if ($glossary['glossary_id'] !== '') {
$glossaryId = $glossary['glossary_id'];
}
}
}
Describe alternatives you've considered
I don't know if this fits conceptually. I think it might make the solution more flexible. Alternatively, there are other TYPO3 extensions I could take a look at.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Current solution does not make it possible to use already existing glossary, which was uploaded to DeepL
Describe the solution you'd like
e.g. DeeplService::translateRequest
Describe alternatives you've considered
I don't know if this fits conceptually. I think it might make the solution more flexible. Alternatively, there are other TYPO3 extensions I could take a look at.
The text was updated successfully, but these errors were encountered: