Re: difference between gtk_label_new("text") and gtk_label_new(_("text"))?



On Fri, 2004-09-24 at 05:13 -0700, Harring Figueiredo wrote:
--- Tobias Werth <sitowert informatik stud uni-erlangen de> wrote:

Hi,

what is the difference between

    label1 = gtk_label_new("text");

and

    label1 = gtk_label_new(_("text"));


 The underscore is a macro that resolves to a call to gettext (if you are using
i18n (internationalization)). This is the magic that translates string from one
laguage to another based on localization or language settings.

  Check this out for more info: http://www.gnu.org/software/gettext/
  Hope this helps.

Or try:

        http://www.gnome.org/~malcolm/i18n/

Keith.




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