I am building a translator for my language and I quite know how I'm gonna do the rest of the engine, but I am stuck on a problem that I wanted to do first, as the rest of the engine will be easy to programm.
Works like this: When I type a word into the TextBox, it adds the word (if it's detected) into a Text instance variable called Output. Then it sets the Text to Output.
Problem: Words getting overwritten; when a user types for example "You are cool", it translates to "i pai" and when I write any of the already used words again, e.g. "You are cool, you", it doesn't add another "you" at the end as it should. *It's because the value is already in the variable.*
Problem 2: My realtime breaks at the point when I start deleting stuff. It adds a word to a variable when it detects it and then sets the variable equal to the display text, but the strings in the variable don't get removed. Is there a way to find a value in a variable and replace it with "" so that it removes it and the space it took as well?
My Capx:
https://ufile.io/kxweq