Commit a9c33dbd authored by Christian Persch's avatar Christian Persch

Use P_ for translatable param spec strings

Translatable param spec strings should be annotated with P_() instead of
plain _(). Bug #579830.
parent 9a3d18d2
......@@ -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));
}
......
......@@ -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));
}
......
......@@ -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));
......
......@@ -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));
}
......
......@@ -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));
}
......
......@@ -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));
}
......
......@@ -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));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment