I've finally have a working "Java-GI application template" with working localization, settings, desktop file, manifest, icons, etc, that can be distributed as a Flatpak. It's available here:

github.com/jwharm/java-gi-app-

The application uses Gradle to build the source code, and Meson to install settings, resources, translations etc. Currently, both build systems are triggered separately from the Flatpak manifest. I will try to improve this, so that meson triggers the gradle build (or vice versa).

The screenshot shows the dutch (nl) translation that demonstrates the gettext integration.

A screenshot of the template application. In the background, a terminal displays output of flatpak-builder.
0

If you have a fediverse account, you can quote this note from your own instance. Search https://social.tchncs.de/users/jwh/statuses/115696307189272732 on your instance and quote it. (Note that quoting is not supported in Mastodon.)