Use P_ for translatable param spec strings

Translatable param spec strings should be annotated with P_() instead of
plain _(). Bug #579830.
This commit is contained in:
Christian Persch 2009-04-22 15:12:37 +02:00
parent 9a3d18d2a6
commit a9c33dbd7a
7 changed files with 44 additions and 44 deletions

View File

@ -142,8 +142,8 @@ g_file_icon_class_init (GFileIconClass *klass)
*/ */
g_object_class_install_property (gobject_class, PROP_FILE, g_object_class_install_property (gobject_class, PROP_FILE,
g_param_spec_object ("file", g_param_spec_object ("file",
_("file"), P_("file"),
_("The file containing the icon"), P_("The file containing the icon"),
G_TYPE_FILE, G_TYPE_FILE,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NICK)); G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NICK));
} }

View File

@ -199,85 +199,85 @@ g_inet_address_class_init (GInetAddressClass *klass)
g_object_class_install_property (gobject_class, PROP_FAMILY, g_object_class_install_property (gobject_class, PROP_FAMILY,
g_param_spec_enum ("family", g_param_spec_enum ("family",
_("Address family"), P_("Address family"),
_("The address family (IPv4 or IPv6)"), P_("The address family (IPv4 or IPv6)"),
G_TYPE_SOCKET_FAMILY, G_TYPE_SOCKET_FAMILY,
G_SOCKET_FAMILY_INVALID, G_SOCKET_FAMILY_INVALID,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NAME)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NAME));
g_object_class_install_property (gobject_class, PROP_BYTES, g_object_class_install_property (gobject_class, PROP_BYTES,
g_param_spec_pointer ("bytes", g_param_spec_pointer ("bytes",
_("Bytes"), P_("Bytes"),
_("The raw address data"), P_("The raw address data"),
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NAME)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NAME));
g_object_class_install_property (gobject_class, PROP_IS_ANY, g_object_class_install_property (gobject_class, PROP_IS_ANY,
g_param_spec_boolean ("is-any", g_param_spec_boolean ("is-any",
_("Is any"), P_("Is any"),
_("See g_inet_address_get_is_any()"), P_("See g_inet_address_get_is_any()"),
FALSE, FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NAME)); G_PARAM_READABLE | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NAME));
g_object_class_install_property (gobject_class, PROP_IS_LINK_LOCAL, g_object_class_install_property (gobject_class, PROP_IS_LINK_LOCAL,
g_param_spec_boolean ("is-link-local", g_param_spec_boolean ("is-link-local",
_("Is link-local"), P_("Is link-local"),
_("See g_inet_address_get_is_link_local()"), P_("See g_inet_address_get_is_link_local()"),
FALSE, FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NAME)); G_PARAM_READABLE | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NAME));
g_object_class_install_property (gobject_class, PROP_IS_LOOPBACK, g_object_class_install_property (gobject_class, PROP_IS_LOOPBACK,
g_param_spec_boolean ("is-loopback", g_param_spec_boolean ("is-loopback",
_("Is loopback"), P_("Is loopback"),
_("See g_inet_address_get_is_loopback()"), P_("See g_inet_address_get_is_loopback()"),
FALSE, FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NAME)); G_PARAM_READABLE | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NAME));
g_object_class_install_property (gobject_class, PROP_IS_SITE_LOCAL, g_object_class_install_property (gobject_class, PROP_IS_SITE_LOCAL,
g_param_spec_boolean ("is-site-local", g_param_spec_boolean ("is-site-local",
_("Is site-local"), P_("Is site-local"),
_("See g_inet_address_get_is_site_local()"), P_("See g_inet_address_get_is_site_local()"),
FALSE, FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NAME)); G_PARAM_READABLE | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NAME));
g_object_class_install_property (gobject_class, PROP_IS_MULTICAST, g_object_class_install_property (gobject_class, PROP_IS_MULTICAST,
g_param_spec_boolean ("is-multicast", g_param_spec_boolean ("is-multicast",
_("Is multicast"), P_("Is multicast"),
_("See g_inet_address_get_is_multicast()"), P_("See g_inet_address_get_is_multicast()"),
FALSE, FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NAME)); G_PARAM_READABLE | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NAME));
g_object_class_install_property (gobject_class, PROP_IS_MC_GLOBAL, g_object_class_install_property (gobject_class, PROP_IS_MC_GLOBAL,
g_param_spec_boolean ("is-mc-global", g_param_spec_boolean ("is-mc-global",
_("Is multicast global"), P_("Is multicast global"),
_("See g_inet_address_get_is_mc_global()"), P_("See g_inet_address_get_is_mc_global()"),
FALSE, FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NAME)); G_PARAM_READABLE | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NAME));
g_object_class_install_property (gobject_class, PROP_IS_MC_LINK_LOCAL, g_object_class_install_property (gobject_class, PROP_IS_MC_LINK_LOCAL,
g_param_spec_boolean ("is-mc-link-local", g_param_spec_boolean ("is-mc-link-local",
_("Is multicast link-local"), P_("Is multicast link-local"),
_("See g_inet_address_get_is_mc_link_local()"), P_("See g_inet_address_get_is_mc_link_local()"),
FALSE, FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NAME)); G_PARAM_READABLE | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NAME));
g_object_class_install_property (gobject_class, PROP_IS_MC_NODE_LOCAL, g_object_class_install_property (gobject_class, PROP_IS_MC_NODE_LOCAL,
g_param_spec_boolean ("is-mc-node-local", g_param_spec_boolean ("is-mc-node-local",
_("Is multicast node-local"), P_("Is multicast node-local"),
_("See g_inet_address_get_is_mc_node_local()"), P_("See g_inet_address_get_is_mc_node_local()"),
FALSE, FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NAME)); G_PARAM_READABLE | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NAME));
g_object_class_install_property (gobject_class, PROP_IS_MC_ORG_LOCAL, g_object_class_install_property (gobject_class, PROP_IS_MC_ORG_LOCAL,
g_param_spec_boolean ("is-mc-org-local", g_param_spec_boolean ("is-mc-org-local",
_("Is multicast org-local"), P_("Is multicast org-local"),
_("See g_inet_address_get_is_mc_org_local()"), P_("See g_inet_address_get_is_mc_org_local()"),
FALSE, FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NAME)); G_PARAM_READABLE | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NAME));
g_object_class_install_property (gobject_class, PROP_IS_MC_SITE_LOCAL, g_object_class_install_property (gobject_class, PROP_IS_MC_SITE_LOCAL,
g_param_spec_boolean ("is-mc-site-local", g_param_spec_boolean ("is-mc-site-local",
_("Is multicast site-local"), P_("Is multicast site-local"),
_("See g_inet_address_get_is_mc_site_local()"), P_("See g_inet_address_get_is_mc_site_local()"),
FALSE, FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NAME)); G_PARAM_READABLE | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NAME));
} }

View File

@ -114,8 +114,8 @@ g_socket_address_class_init (GSocketAddressClass *klass)
g_object_class_install_property (gobject_class, PROP_FAMILY, g_object_class_install_property (gobject_class, PROP_FAMILY,
g_param_spec_enum ("family", g_param_spec_enum ("family",
_("Address family"), P_("Address family"),
_("The family of the socket address"), P_("The family of the socket address"),
G_TYPE_SOCKET_FAMILY, G_TYPE_SOCKET_FAMILY,
G_SOCKET_FAMILY_INVALID, G_SOCKET_FAMILY_INVALID,
G_PARAM_READABLE | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NAME)); G_PARAM_READABLE | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NAME));

View File

@ -208,8 +208,8 @@ g_themed_icon_class_init (GThemedIconClass *klass)
*/ */
g_object_class_install_property (gobject_class, PROP_NAME, g_object_class_install_property (gobject_class, PROP_NAME,
g_param_spec_string ("name", g_param_spec_string ("name",
_("name"), P_("name"),
_("The name of the icon"), P_("The name of the icon"),
NULL, NULL,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_WRITABLE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NICK)); G_PARAM_CONSTRUCT_ONLY | G_PARAM_WRITABLE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NICK));
@ -220,8 +220,8 @@ g_themed_icon_class_init (GThemedIconClass *klass)
*/ */
g_object_class_install_property (gobject_class, PROP_NAMES, g_object_class_install_property (gobject_class, PROP_NAMES,
g_param_spec_boxed ("names", g_param_spec_boxed ("names",
_("names"), P_("names"),
_("An array containing the icon names"), P_("An array containing the icon names"),
G_TYPE_STRV, G_TYPE_STRV,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NICK)); G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NICK));
@ -246,8 +246,8 @@ g_themed_icon_class_init (GThemedIconClass *klass)
*/ */
g_object_class_install_property (gobject_class, PROP_USE_DEFAULT_FALLBACKS, g_object_class_install_property (gobject_class, PROP_USE_DEFAULT_FALLBACKS,
g_param_spec_boolean ("use-default-fallbacks", g_param_spec_boolean ("use-default-fallbacks",
_("use default fallbacks"), P_("use default fallbacks"),
_("Whether to use default fallbacks found by shortening the name at '-' characters. Ignores names after the first if multiple names are given."), P_("Whether to use default fallbacks found by shortening the name at '-' characters. Ignores names after the first if multiple names are given."),
FALSE, FALSE,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NICK)); G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NICK));
} }

View File

@ -158,8 +158,8 @@ g_unix_input_stream_class_init (GUnixInputStreamClass *klass)
g_object_class_install_property (gobject_class, g_object_class_install_property (gobject_class,
PROP_FD, PROP_FD,
g_param_spec_int ("fd", g_param_spec_int ("fd",
_("File descriptor"), P_("File descriptor"),
_("The file descriptor to read from"), P_("The file descriptor to read from"),
G_MININT, G_MAXINT, -1, G_MININT, G_MAXINT, -1,
G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB)); G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
@ -173,8 +173,8 @@ g_unix_input_stream_class_init (GUnixInputStreamClass *klass)
g_object_class_install_property (gobject_class, g_object_class_install_property (gobject_class,
PROP_CLOSE_FD, PROP_CLOSE_FD,
g_param_spec_boolean ("close-fd", g_param_spec_boolean ("close-fd",
_("Close file descriptor"), P_("Close file descriptor"),
_("Whether to close the file descriptor when the stream is closed"), P_("Whether to close the file descriptor when the stream is closed"),
TRUE, TRUE,
G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB)); G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
} }

View File

@ -144,8 +144,8 @@ g_unix_output_stream_class_init (GUnixOutputStreamClass *klass)
g_object_class_install_property (gobject_class, g_object_class_install_property (gobject_class,
PROP_FD, PROP_FD,
g_param_spec_int ("fd", g_param_spec_int ("fd",
_("File descriptor"), P_("File descriptor"),
_("The file descriptor to write to"), P_("The file descriptor to write to"),
G_MININT, G_MAXINT, -1, G_MININT, G_MAXINT, -1,
G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB)); G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
@ -159,8 +159,8 @@ g_unix_output_stream_class_init (GUnixOutputStreamClass *klass)
g_object_class_install_property (gobject_class, g_object_class_install_property (gobject_class,
PROP_CLOSE_FD, PROP_CLOSE_FD,
g_param_spec_boolean ("close-fd", g_param_spec_boolean ("close-fd",
_("Close file descriptor"), P_("Close file descriptor"),
_("Whether to close the file descriptor when the stream is closed"), P_("Whether to close the file descriptor when the stream is closed"),
TRUE, TRUE,
G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB)); G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
} }

View File

@ -168,8 +168,8 @@ g_unix_socket_address_class_init (GUnixSocketAddressClass *klass)
g_object_class_install_property (gobject_class, g_object_class_install_property (gobject_class,
PROP_PATH, PROP_PATH,
g_param_spec_string ("path", g_param_spec_string ("path",
_("Path"), P_("Path"),
_("UNIX socket path"), P_("UNIX socket path"),
NULL, NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
} }