gtk-rs-core icon indicating copy to clipboard operation
gtk-rs-core copied to clipboard

i18n

Open fengalin opened this issue 6 years ago • 1 comments

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?

fengalin avatar Mar 11 '18 17:03 fengalin

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.

sdroege avatar Nov 10 '20 15:11 sdroege

See https://github.com/gtk-rs/gtk-rs-core/issues/776

sdroege avatar Oct 10 '22 12:10 sdroege