Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing localisation initialisation code #4

Open
aral opened this issue Nov 5, 2021 · 0 comments
Open

Missing localisation initialisation code #4

aral opened this issue Nov 5, 2021 · 0 comments

Comments

@aral
Copy link

aral commented Nov 5, 2021

Initialisation code similar to the following is missing from the Application class constructor:

GLib.Intl.setlocale (LocaleCategory.ALL, "");
GLib.Intl.bindtextdomain (Constants.GETTEXT_PACKAGE, Constants.LOCALEDIR);
GLib.Intl.bind_textdomain_codeset (Constants.GETTEXT_PACKAGE, "UTF-8");
GLib.Intl.textdomain (Constants.GETTEXT_PACKAGE);

Without it, translations that use gettext / _() appear to work (in meson builds, not in Flatpak) but ngettext doesn’t (in either).

More details: small-tech/watson#16

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

No branches or pull requests

1 participant