blissd / fotema

Photo gallery for Linux
29 stars 6 forks source link

i18n support. #27

Closed Scrambled777 closed 1 month ago

Scrambled777 commented 1 month ago

Hi mate, I am interested in translating this app.

Will it be possible to have pot file in future? Sadly, I lack programming skill to generate POT file by myself.

Cheers.

blissd commented 1 month ago

Hi Scrambled777. Thanks for your kind offer. I would be very interested in having Fotema translated into other languages. I don't really know anything about pot files and translation so I'll take a look and how it works in GNOME and have a go providing the files you need. Is there any documentation you can point me at to get started?

Scrambled777 commented 1 month ago

Hi again, really appreciate your reply.

I tried to waddle around in meson documentation to generate pot file. Maybe this link will help.

Or maybe you can look into Weblate integration. They provide Gratis Weblate plan for libre projects. Check here.

blissd commented 1 month ago

Apparently I also lack the programming skills to generate a POT file. As far as I can tell it looks like Rust isn't well supported by gettext which complicates generating POT files. I succeeded in generating a POT file from non-Rust sources, but that isn't very helpful.

I'll think I'll have to find another Rust app that has a POT file and ask how they generated it.

Scrambled777 commented 1 month ago

@blissd

This tool might help: xtr - Extract strings from a rust crate to be translated with gettext

This app BoxBuddyRS uses xtr for pot creation.

blissd commented 1 month ago

@Scrambled777 Fotema is now ready for localisation. I've added some instructions in LOCALISATION.md.

I know that gettext is the defacto standard for Linux and GNOME apps, but after much reading about how gettext works I found I don't really like it. So instead I've used Fluent which is by Mozilla and is currently being used in the Firefox browser. Hopefully this isn't too controversial of a choice that I've made.

blissd commented 1 week ago

Weblate has approved Fotema.

https://hosted.weblate.org/projects/fotema/app/

Scrambled777 commented 1 week ago

Weblate has approved Fotema.

https://hosted.weblate.org/projects/fotema/app/

Wonderful, watching project on Weblate for New strings.

Thanks for making project available on Weblate. Easy to track and translate.

Cheers.