@@ -39,12 +39,13 @@ public function create($subject, array $properties, DocumentInterface $document)
39
39
$ this ->failIfDoesNotSupport ($ subject );
40
40
$ project = $ document ->getProject ();
41
41
42
- $ language = $ project ->getLanguageFrom ();
43
- $ content = $ this ->getProperties ($ subject , $ properties , $ language , $ project ->getActivity ());
44
-
45
42
$ this ->setSubjectOnDocument ($ subject , $ document );
46
43
47
- $ document ->setOriginalContent ($ content );
44
+ if (ProjectInterface::ACTIVITY_COPYWRITING !== $ project ->getActivity ()) {
45
+ $ language = $ project ->getLanguageFrom ();
46
+ $ content = $ this ->getProperties ($ subject , $ properties , $ language , $ project ->getActivity ());
47
+ $ document ->setOriginalContent ($ content );
48
+ }
48
49
49
50
return $ document ;
50
51
}
@@ -70,7 +71,7 @@ public function compare(DocumentInterface $document)
70
71
71
72
$ translated = $ this ->compareContent (
72
73
$ subject ,
73
- $ document ->getTranslatedContent (),
74
+ $ document ->getSourceContent (),
74
75
$ this ->getLanguageTo ($ project ),
75
76
false
76
77
);
@@ -90,7 +91,7 @@ public function complete(DocumentInterface $document, $satisfaction = null, $mes
90
91
$ this ->failIfDoesNotSupport ($ subject );
91
92
92
93
/** @var array $properties */
93
- $ properties = $ document ->getTranslatedContent ();
94
+ $ properties = $ document ->getSourceContent ();
94
95
95
96
$ project = $ document ->getProject ();
96
97
$ language = $ this ->getLanguageTo ($ project );
0 commit comments