From a9c33dbd7aeeb715677d619cbddc0d621872cc43 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Wed, 22 Apr 2009 15:12:37 +0200 Subject: [PATCH] Use P_ for translatable param spec strings Translatable param spec strings should be annotated with P_() instead of plain _(). Bug #579830. --- gio/gfileicon.c | 4 ++-- gio/ginetaddress.c | 48 ++++++++++++++++++++++++------------------------ gio/gsocketaddress.c | 4 ++-- gio/gthemedicon.c | 12 ++++++------ gio/gunixinputstream.c | 8 ++++---- gio/gunixoutputstream.c | 8 ++++---- gio/gunixsocketaddress.c | 4 ++-- 7 files changed, 44 insertions(+), 44 deletions(-) diff --git a/gio/gfileicon.c b/gio/gfileicon.c index 730d3ba..4842fb6 100644 --- a/gio/gfileicon.c +++ b/gio/gfileicon.c @@ -142,8 +142,8 @@ g_file_icon_class_init (GFileIconClass *klass) */ g_object_class_install_property (gobject_class, PROP_FILE, g_param_spec_object ("file", - _("file"), - _("The file containing the icon"), + P_("file"), + P_("The file containing the icon"), G_TYPE_FILE, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NICK)); } diff --git a/gio/ginetaddress.c b/gio/ginetaddress.c index 72c08b8..d33382a 100644 --- a/gio/ginetaddress.c +++ b/gio/ginetaddress.c @@ -199,85 +199,85 @@ g_inet_address_class_init (GInetAddressClass *klass) g_object_class_install_property (gobject_class, PROP_FAMILY, g_param_spec_enum ("family", - _("Address family"), - _("The address family (IPv4 or IPv6)"), + P_("Address family"), + P_("The address family (IPv4 or IPv6)"), G_TYPE_SOCKET_FAMILY, G_SOCKET_FAMILY_INVALID, 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_param_spec_pointer ("bytes", - _("Bytes"), - _("The raw address data"), + P_("Bytes"), + 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_object_class_install_property (gobject_class, PROP_IS_ANY, g_param_spec_boolean ("is-any", - _("Is any"), - _("See g_inet_address_get_is_any()"), + P_("Is any"), + P_("See g_inet_address_get_is_any()"), FALSE, 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_param_spec_boolean ("is-link-local", - _("Is link-local"), - _("See g_inet_address_get_is_link_local()"), + P_("Is link-local"), + P_("See g_inet_address_get_is_link_local()"), FALSE, 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_param_spec_boolean ("is-loopback", - _("Is loopback"), - _("See g_inet_address_get_is_loopback()"), + P_("Is loopback"), + P_("See g_inet_address_get_is_loopback()"), FALSE, 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_param_spec_boolean ("is-site-local", - _("Is site-local"), - _("See g_inet_address_get_is_site_local()"), + P_("Is site-local"), + P_("See g_inet_address_get_is_site_local()"), FALSE, 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_param_spec_boolean ("is-multicast", - _("Is multicast"), - _("See g_inet_address_get_is_multicast()"), + P_("Is multicast"), + P_("See g_inet_address_get_is_multicast()"), FALSE, 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_param_spec_boolean ("is-mc-global", - _("Is multicast global"), - _("See g_inet_address_get_is_mc_global()"), + P_("Is multicast global"), + P_("See g_inet_address_get_is_mc_global()"), FALSE, 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_param_spec_boolean ("is-mc-link-local", - _("Is multicast link-local"), - _("See g_inet_address_get_is_mc_link_local()"), + P_("Is multicast link-local"), + P_("See g_inet_address_get_is_mc_link_local()"), FALSE, 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_param_spec_boolean ("is-mc-node-local", - _("Is multicast node-local"), - _("See g_inet_address_get_is_mc_node_local()"), + P_("Is multicast node-local"), + P_("See g_inet_address_get_is_mc_node_local()"), FALSE, 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_param_spec_boolean ("is-mc-org-local", - _("Is multicast org-local"), - _("See g_inet_address_get_is_mc_org_local()"), + P_("Is multicast org-local"), + P_("See g_inet_address_get_is_mc_org_local()"), FALSE, 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_param_spec_boolean ("is-mc-site-local", - _("Is multicast site-local"), - _("See g_inet_address_get_is_mc_site_local()"), + P_("Is multicast site-local"), + P_("See g_inet_address_get_is_mc_site_local()"), FALSE, G_PARAM_READABLE | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NAME)); } diff --git a/gio/gsocketaddress.c b/gio/gsocketaddress.c index f5458d4..60e501d 100644 --- a/gio/gsocketaddress.c +++ b/gio/gsocketaddress.c @@ -114,8 +114,8 @@ g_socket_address_class_init (GSocketAddressClass *klass) g_object_class_install_property (gobject_class, PROP_FAMILY, g_param_spec_enum ("family", - _("Address family"), - _("The family of the socket address"), + P_("Address family"), + P_("The family of the socket address"), G_TYPE_SOCKET_FAMILY, G_SOCKET_FAMILY_INVALID, G_PARAM_READABLE | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NAME)); diff --git a/gio/gthemedicon.c b/gio/gthemedicon.c index 68f8226..ed78b8d 100644 --- a/gio/gthemedicon.c +++ b/gio/gthemedicon.c @@ -208,8 +208,8 @@ g_themed_icon_class_init (GThemedIconClass *klass) */ g_object_class_install_property (gobject_class, PROP_NAME, g_param_spec_string ("name", - _("name"), - _("The name of the icon"), + P_("name"), + P_("The name of the icon"), NULL, 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_param_spec_boxed ("names", - _("names"), - _("An array containing the icon names"), + P_("names"), + P_("An array containing the icon names"), G_TYPE_STRV, 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_param_spec_boolean ("use-default-fallbacks", - _("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_("use default fallbacks"), + P_("Whether to use default fallbacks found by shortening the name at '-' characters. Ignores names after the first if multiple names are given."), FALSE, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NICK)); } diff --git a/gio/gunixinputstream.c b/gio/gunixinputstream.c index 4ce9529..9a8e8e3 100644 --- a/gio/gunixinputstream.c +++ b/gio/gunixinputstream.c @@ -158,8 +158,8 @@ g_unix_input_stream_class_init (GUnixInputStreamClass *klass) g_object_class_install_property (gobject_class, PROP_FD, g_param_spec_int ("fd", - _("File descriptor"), - _("The file descriptor to read from"), + P_("File descriptor"), + P_("The file descriptor to read from"), 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)); @@ -173,8 +173,8 @@ g_unix_input_stream_class_init (GUnixInputStreamClass *klass) g_object_class_install_property (gobject_class, PROP_CLOSE_FD, g_param_spec_boolean ("close-fd", - _("Close file descriptor"), - _("Whether to close the file descriptor when the stream is closed"), + P_("Close file descriptor"), + P_("Whether to close the file descriptor when the stream is closed"), TRUE, G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB)); } diff --git a/gio/gunixoutputstream.c b/gio/gunixoutputstream.c index 5bfba2c..6c11e85 100644 --- a/gio/gunixoutputstream.c +++ b/gio/gunixoutputstream.c @@ -144,8 +144,8 @@ g_unix_output_stream_class_init (GUnixOutputStreamClass *klass) g_object_class_install_property (gobject_class, PROP_FD, g_param_spec_int ("fd", - _("File descriptor"), - _("The file descriptor to write to"), + P_("File descriptor"), + P_("The file descriptor to write to"), 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)); @@ -159,8 +159,8 @@ g_unix_output_stream_class_init (GUnixOutputStreamClass *klass) g_object_class_install_property (gobject_class, PROP_CLOSE_FD, g_param_spec_boolean ("close-fd", - _("Close file descriptor"), - _("Whether to close the file descriptor when the stream is closed"), + P_("Close file descriptor"), + P_("Whether to close the file descriptor when the stream is closed"), TRUE, G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB)); } diff --git a/gio/gunixsocketaddress.c b/gio/gunixsocketaddress.c index 0b1b7e3..b6e304f 100644 --- a/gio/gunixsocketaddress.c +++ b/gio/gunixsocketaddress.c @@ -168,8 +168,8 @@ g_unix_socket_address_class_init (GUnixSocketAddressClass *klass) g_object_class_install_property (gobject_class, PROP_PATH, g_param_spec_string ("path", - _("Path"), - _("UNIX socket path"), + P_("Path"), + P_("UNIX socket path"), NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB)); } -- 2.7.4