-
Type:
Bug
-
Resolution: Fixed
-
None
-
Affects Version/s: None
-
Component/s: TermTagger integration
-
Emptyshow more show less
The markTransFound method removes the trans[Not]Found info from segment data received from term tagger, because trans[Not]Found state is recalculated internally.
The regular expression to remove this existing state is to unspecific, currently:
> $seg->source = preg_replace('" ?transN?o?t?Found ?"', ' ', $seg->source);
> $seg->target = preg_replace('" ?transN?o?t?Found ?"', ' ', $seg->target);
This should be changed so that the regex matches only in term markup. This prevents that the string transFound is removed from normal segment text.
This should / could be done with TRANSLATE-296.
- relates to
-
TRANSLATE-296 Harmonize whitespace and unicode special chars protection throughout the import file formats
- Backlog