Im having a XML feed with english characters which i need to translate to my language. Problem is its not transtlating exact strings but every similiar word.
Is there any way to translate only full strings and not everything inside words?
Example:
$string = "Red Cell is very good. Condition is new. But nobody buys it.";
$words = ["Red Cell", "Condition", "no", "Red", "new"];
$translations = ["Red Cell", "Stav", "ne", "Červený", "nový"];
$string = str_replace($words, $translations, $string);
What i get:
Červený Cell is very good. Stav is nevý. But nebody buys it.
What i want:
Red Cell is very good. Stav is nový. But nobody buys it.
Is there any way to translate exact strings and not everything that contains that words?