In order to translate Hasher to a language you must add a folder with the language abbreviation (Example: es-Spanish, pt-Portuguese, it-Italian) on the po/ directory. Inside it you must create another folder called LC_MESSAGES. Inside that last folder, you must add two files: one called hasher.po(text file) and the compiled hasher.mo file (Your .PO editor should generate this file automatically). Once you have done that, you must add those files to setup.py for installation. To do so, gotta add this to the install_data tuple:
('bin/hasher/locale/LANG_ABBREVIATION/LC_MESSAGES', ['po/LANG_ABBREVIATION/LC_MESSAGES/hasher.mo'])
('bin/hasher/locale/LANG_ABBREVIATION/LC_MESSAGES', ['po/LANG_ABBREVIATION/LC_MESSAGES/hasher.po'])
granite (>= 0.6.0)
libgtk-3-dev (>= 3.10)
python3 (>= 3.6)
python3-gi (3.36.0-1)
gettext
git clone https://github.com/JeysonFlores/hasher.git
cd hasher
flatpak-builder build com.github.jeysonflores.hasher.yml --user --install --force-clean
- Vishal Rao - Accessibility enhancements
- Vishal Rao - Accessibility enhancements
- 🇪🇸 - 🇲🇽 Spanish Translation by Jeyson Antonio Flores Deras
- Thanks to Mirko Brombin for the template.