gtk-rs-core
gtk-rs-core copied to clipboard
i18n
This guide indicates the procedure to initialize the text domain for translations, however I can't find the functions setlocale
, bindtextdomain
& textdomain
in gtk-rs/glib
even though the dgettext
variants are available. As a matter of fact, I couldn't find them in glib-sys
neither, so I used gettext-rs as a workaround, which does the job.
Is this the way to go or am I missing something?
In C, most of those functions in the headers are just macros that point to the gettext functions. We could replicate that here in the bindings but might make more sense to directly use the gettext bindings.
See https://github.com/gtk-rs/gtk-rs-core/issues/776