Skip to content

Commit 6963153

Browse files
Merge pull request #48 from MiauzGenau/BUGFIX/do-not-translate-properties-with-disbaled-automatic-translation
BUGFIX: do not translate (inline-editable) properties explicitly set to: 'automaticTranslation: false'
2 parents 02e0fcd + 542829e commit 6963153

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Classes/Domain/TranslatableProperty/TranslatablePropertyNamesFactory.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ public function createForNodeType(NodeType $nodeType): TranslatablePropertyNames
3131
if (array_key_exists('type', $propertyDefinition) && $propertyDefinition['type'] !== 'string') {
3232
continue;
3333
}
34+
if (isset($propertyDefinition['options']['automaticTranslation']) && !$propertyDefinition['options']['automaticTranslation']) {
35+
continue; // do not translate (inline-editable) properties explicitly set to: 'automaticTranslation: false'
36+
}
3437
if ($this->translateInlineEditables && ($propertyDefinitions[$propertyName]['ui']['inlineEditable'] ?? false)) {
3538
$translateProperties[] = new TranslatablePropertyName($propertyName);
3639
continue;

0 commit comments

Comments
 (0)