Skip to content

Commit df8fb0d

Browse files
authored
Merge pull request #235 from web-vision/bugfix/232
Fix Problem with translation no glossary given
2 parents 5ec224f + c25c892 commit df8fb0d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Classes/Domain/Repository/GlossaryRepository.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ public function findAllGlossaries(): array
214214
* glossary_lastsync: int,
215215
* glossary_ready: int
216216
* }
217+
* @throws DBALException
217218
*/
218219
public function getGlossaryBySourceAndTarget(
219220
string $sourceLanguage,
@@ -234,7 +235,7 @@ public function getGlossaryBySourceAndTarget(
234235
if (strlen($lowerTargetLang) > 2) {
235236
$lowerTargetLang = substr($lowerTargetLang, 0, 2);
236237
}
237-
return $this->getGlossary($lowerSourceLang, $lowerTargetLang, $page['uid'], true);
238+
return $this->getGlossary($lowerSourceLang, $lowerTargetLang, $page['uid'], true) ?? [];
238239
}
239240

240241
/**

Resources/Private/Backend/Partials/PageLayout/LanguageColumns.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ <h2>{languageColumn.context.siteLanguage.title}</h2>
170170
<f:if condition="{deeplLanguages -> f:count()} > 0">
171171
<div class="row row-cols-auto align-items-end g-3 mb-3">
172172
<div class="col row">
173-
<label class="col-sm-4 col">{f:translate(key: 'backend.label', extensionName: 'wv_deepltranslate')}</label>
174173
<div class="col col-sm-8">
175174
<select class="form-select" name="createNewLanguage" data-global-event="change" data-action-navigate="$value">
176175
<option><f:translate key="pages.glossary.translate" extensionName="wv_deepltranslate" /></option>

0 commit comments

Comments
 (0)