Matias Torres wrote: >Hi all! >Yes, I know it's not a GTK question but i couldn't find an answer to my >problem. > >After building my application (if it helps, it uses gtk), i use gettext >for translating it, and, in linux it works just fine. But, talking about >windows, well .. it doesn't.. > >Note: Gtk Widgets DO translate, but the my own text doesn't. > >This is what i do: > ...... >#include <gtk/gtk/h> >#include <libintl.h> > ...... >#define PACKAGE "xiliunsystem" >#define LOCALEDIR "po" > ...... >void nls_init (void) >{ > /* SHOULD I CALL gtk_set_locales(), WHERE? */ > setlocale (LC_ALL, ""); > bindtextdomain (PACKAGE, LOCALEDIR); > textdomain (PACKAGE); > bind_textdomain_codeset (PACKAGE, "UTF-8"); >} > >int main ( ... ) >{ > nls_init (); > gtk_init (&argc, &argv); > .... > return 0; >} > > >The message catalogs are in a subfolder in the main app dir called po >which looks something like this: > >myAppDir/po/es/LC_MESSAGES/ > >In there there's a myapp.mo file compile with "msgfmt.EXE" > >Does anybody knows what's wrong or run into this problem? > >Please, Thanks and I'm sorry I'm sorry I'm sorry I'm sorry I'm sorry i >konw it's not a gtk question. > > A wild guess - maybe #include <glib-i18n.h> ?
also, is all that stuff in nls_init() really needed ? Cheers, -Tristan _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list