Re: Using gettext with a GOptionEntry
- From: Kevin DeKorte <kdekorte gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Re: Using gettext with a GOptionEntry
- Date: Thu, 25 Jan 2007 14:21:55 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Eduardo M KALINOWSKI wrote:
This is by no means GTK+-related, and a very basic question regarding
gettext usage.
Use the N_() macro, something like this:
static GOptionEntry entries[] = {
{"window", NULL, 0, G_OPTION_ARG_INT, &embed_window, N_("Window to
embed in"), "WID"},
...
I'll leave it up to you to research about N_() and discover how and why
it works.
Thanks... that was the knowledge I needed. I even made a note of it.
Kevin
- --
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFFuQNT6w2kMH0L1dERApm+AJ45K1bcs6qkZbnYLkIsSl44gfOboQCfeyBk
NhBLT+QJPn3w3XqxrSTlRdI=
=uDh2
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]