Hi,
I'm experiencing persistent translation problems with Lutish when using Ollama.
I'm currently using TranslateGemma 12B via Ollama (idcross-translator). When testing the same German source text directly with Ollama, the translation works correctly and preserves all 25 opening and closing tags in their original order.
However, when translating through Lutish, the task fails with the following error:
Translation failed for fields: message:
Translation validation failed:
BBCode structure was changed by the translator:
opening: source 25, translation 26
I captured the actual HTTP communication between Lutish and Ollama and identified two problems:
Would it be possible to improve how Lutish handles these translations?
I can provide the captured HTTP requests and responses if that would help with debugging.
Thank you for looking into this!
I'm experiencing persistent translation problems with Lutish when using Ollama.
I'm currently using TranslateGemma 12B via Ollama (idcross-translator). When testing the same German source text directly with Ollama, the translation works correctly and preserves all 25 opening and closing tags in their original order.
However, when translating through Lutish, the task fails with the following error:
Translation failed for fields: message:
Translation validation failed:
BBCode structure was changed by the translator:
opening: source 25, translation 26
I captured the actual HTTP communication between Lutish and Ollama and identified two problems:
- Text fragmentation: Lutish sends many small text fragments to Ollama, sometimes individual words or text cut off in the middle of a sentence. This can produce grammatically incorrect translations when the fragments are combined.
- Prompt contamination: Some Ollama API responses contain translated prompt instructions instead of the actual source text.
Would it be possible to improve how Lutish handles these translations?
- Protect BBCode tags by replacing them with internal placeholders before sending the text to Ollama, then restoring the original tags afterwards.
- Avoid splitting sentences into individual words or incomplete fragments.
- Ensure that only the actual translated content is returned and stored.
I can provide the captured HTTP requests and responses if that would help with debugging.
Thank you for looking into this!