Skip to content

Ensure the GTK / libadwaita language is consistent with Pinta#1877

Merged
cameronwhite merged 3 commits into
masterfrom
fix/adwaita-language
Dec 23, 2025
Merged

Ensure the GTK / libadwaita language is consistent with Pinta#1877
cameronwhite merged 3 commits into
masterfrom
fix/adwaita-language

Conversation

@cameronwhite

Copy link
Copy Markdown
Member

This was mainly an issue on macOS where the system language setting is picked up correctly by dotnet (setting the current UI culture), but the GTK / libadwaita translations from the native gettext library were still in English

This change also works toward having a preference to override the default language (#1417)

Fixes: #1727

@cameronwhite cameronwhite marked this pull request as draft December 2, 2025 23:47
@cameronwhite

cameronwhite commented Dec 4, 2025

Copy link
Copy Markdown
Member Author

This worked locally when I built the mac installer on my system, but not when using the installer from the CI build.
I suspect the issue is that the native libraries like libadwaita aren't perfectly relocatable and have references to the install path they were built for (e.g. https://docs.gtk.org/glib/i18n.html#internationalization). We might need to call bindtextdomain() manually to override the location, although that feels hacky...

This was mainly an issue on macOS where the system language setting is picked up correctly by dotnet (setting the current UI culture), but the GTK / libadwaita translations from the native gettext library were still in English

This change also works toward having a preference to override the default language (#1417)

Fixes: #1727
This works around issues with relocating the libadwaita dll into the .app package.

Also updated the build script to allow disabling code signing for easier local testing
@cameronwhite cameronwhite marked this pull request as ready for review December 23, 2025 16:34
@cameronwhite cameronwhite merged commit 94addce into master Dec 23, 2025
7 checks passed
@cameronwhite cameronwhite deleted the fix/adwaita-language branch December 23, 2025 16:36
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.

Missing/untranslated strings in the Pinta app and in the Weblate's Pinta component

1 participant