Re: [gtk-list] I18N problem



Tristan Tarrant wrote:
> 
> I have recently added to CVS the Italian texts for GTK+.
> I have a problem with some of my messages not being used by the dialog
> boxes.
> In particular, the Font information window still uses the English texts.
> Any ideas on why this is happening ?
> I'm testing with
> 
>         LANG=it ./testgtk


I think the problem is a couple of calls to plain gettext() :

      row_text[0] = gettext(xlfd_field_names[i]);

      label = gtk_label_new(gettext(xlfd_field_names[xlfd_index[prop]]));

I think it should be using _() or dgettext() so the domain is set to "Gtk+".
Otherwise you end up using the application's domain by default, so the
string translations won't be found.

Damon




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]