Dvlv / BoxBuddyRS

A Graphical Interface for Distrobox
MIT License
241 stars 24 forks source link

Localization support #6

Closed Vovkiv closed 8 months ago

Vovkiv commented 8 months ago

Support for adding translations maybe?

Dvlv commented 8 months ago

Hello. That would be great, but I only know English myself, so somebody will have to provide translations for me. If anyone is interested in doing this, please open a PR

Vovkiv commented 8 months ago

Well, by "Localization support" I mean you need to provide translation system. Usually with GTK software this is gettext. Take look at Resources: https://github.com/nokyan/resources, which is also Rust program.

Dvlv commented 8 months ago

Ah, I see, thank you for the example. I will have a look into gettextrs and update this issue.

Dvlv commented 8 months ago

Localisation support should be ready in master now.

Vovkiv commented 8 months ago

Yay! I will try add some localizations and see how it will go.

Dvlv commented 8 months ago

Oh, FYI for development you will need to edit src/utils.rs and comment out lines 181 - 188, so the locale_directory is "./po"