New to LT - Writing front end in C# to using LT. Interested?

I am in the process of writing an app in C#. that reads a text and translating it between French and English, but it can do any language LT can work with.

I find it does extremely well going fr > en, but going from en to fr I see a lot of errors. It is much better after an update, but some problems still happen, Some results are funny, but some others look like they could cause an argument hehe

Because I don’t want to wait, I made a front end, before I send things to LT. Here’s how it works;

PassThrough.

There are certain terms always at the beginning of an input line, and when we see them, we just pass the line straight through. Things like gg(good game), nn(nice nil), gla(good luck all), ty (thank you). SO those lines just go through…

Replacements.

There are certain words that do not get translated well. For instance, “venus” in English comes out as “come” in French. So what I do is have a text replacement file like this;

venus:come

When it sees “venus” go in, and it comes out “venus”, Great. If it does not come out, it looks for “come” and if it sees “come”, it replaces it with “venus”. If it does not see either, it just passes the whole line through, but adds ** at the beginning of lines that were affected so we know it may or may not be a good translation.

I made it easy, so Passthroughs.txt and Replacements.txt are just simple txt files we can edit and add replacements to as we come upon the need.

Then I can submit the issue somehow to LibreTranslate. I just haven’t done it yet as I am just starting to understand and use LibreTranslate. So I need to learn the best way to submit what I find. Maybe I can tie something into my front end.

I am still testing it, and it does seem to work pretty well so far…

Do you think this is a good approach?