Skip to content

Development - #182

Merged
niedev merged 17 commits into
v3.00from
development
May 12, 2026
Merged

Development#182
niedev merged 17 commits into
v3.00from
development

Conversation

@niedev

@niedev niedev commented May 12, 2026

Copy link
Copy Markdown
Owner

This PR is for beam search improvements and the integration of Translation Dictionaries for simple word translation for the 3.0 version of RTranslator, in general:

Translation Dictionaries containing data from Wiktionary, Apertium, and FreeDict have been integrated in a SQLite db (with this script), using that, when a language couple is selected, the data structures that contain all the translations for that 2 languages, to and from English, are loaded in RAM (with a consumption of around 1MB). With this data structure, the app can search a word instantly and obtain its eventual translations. If the translation has been done with a Dictionary, the writing "Dictionary" will appear in the GUI (at least in the text translation mode), and all the synonyms are shown under the translated word.

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, TranslationDictionaries.zip.
After the download, extract these folders (their name should remain "Mozilla", "Madlad", "HY-MT", "Tatoeba" and "TranslationDictionaries", with the content of these .zip directly inside the corresponding extracted folders, if you change the structure of these folders, 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 bottom (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).

Also, by default, the translation with Tatoeba and Dictionaries are disabled; if you want to test those, you need to enable their use in the RTranslator settings page.

@niedev
niedev merged commit 48bccc2 into v3.00 May 12, 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