Skip to content

Integration of tatoeba for simple sentences translation - #177

Merged
niedev merged 10 commits into
v3.00from
development
Apr 3, 2026
Merged

Integration of tatoeba for simple sentences translation#177
niedev merged 10 commits into
v3.00from
development

Conversation

@niedev

@niedev niedev commented Apr 3, 2026

Copy link
Copy Markdown
Owner

This PR is for the integration of Tatoeba for simple sentences translation for the 3.0 version of RTranslator, in general:

Tatoeba data has been integrated in a SQLite db (with this script), using that, when a language couple is selected, the data structure that contains all the translations for that language combo is loaded in RAM (with a consumption of around 1MB). With this data structure, the app can search a sentence instantly and obtain its eventual translation. If the translation has been done with Tatoeba, the writing "powered by Tatoeba" will appear in the GUI (at least in the text translation mode).

If you want to test this version of the app early, first of all, consider that this is a development preview, so it could be pretty unstable, and it will require initial setup. To try it, you need to:

Download from here the Mozilla.zip,
Madlad.zip, HY-MT.zip, Tatoeba.zip.
After the download, extract these folders (their name should remain "Mozilla", "Madlad", "HY-MT" and "Tatoeba", with the content of these .zip directly inside the corresponding extracted folders, if you change the structure of these folder the app will not work).

After that, create a folder named "models", inside it create a folder named "Translation", and inside it paste all the extracted folders, then insert the folder into the internal memory of the phone (in the top level).

Now download this apk, install it, open the app, enable the requested file access, and start the download.

After the download has finished, exit the app and enable all its permissions from the Android Settings (Settings -> Applications -> RTranslator).

Then re-open the app and everything should work.

By default, the models used for translation are the Mozilla ones, to select the other supported model you can select one from RTranslator's settings, at the buttom (note that probably, to execute Madlad and HY-MT, you will need a phone with at least 12GB of RAM, if the RAM won't be enough the app will crash until you wipe its data).

@niedev
niedev merged commit c9323aa into v3.00 Apr 3, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant