Issue #3343 - Some translated tooltips are appearing untranslated

Tool options properties must be translated with _() not N_().
This commit is contained in:
Michael Natterer 2019-05-25 11:42:07 +02:00
parent c2021d3c5b
commit e249a42226
1 changed files with 15 additions and 15 deletions

View File

@ -81,8 +81,8 @@ gimp_rectangle_options_default_init (GimpRectangleOptionsInterface *iface)
g_object_interface_install_property (iface, g_object_interface_install_property (iface,
g_param_spec_boolean ("auto-shrink", g_param_spec_boolean ("auto-shrink",
NULL, NULL,
N_("Automatically shrink to the nearest " _("Automatically shrink to the nearest "
"rectangular shape in a layer"), "rectangular shape in a layer"),
FALSE, FALSE,
GIMP_CONFIG_PARAM_FLAGS | GIMP_CONFIG_PARAM_FLAGS |
GIMP_PARAM_STATIC_STRINGS)); GIMP_PARAM_STATIC_STRINGS));
@ -99,7 +99,7 @@ gimp_rectangle_options_default_init (GimpRectangleOptionsInterface *iface)
g_object_interface_install_property (iface, g_object_interface_install_property (iface,
g_param_spec_enum ("guide", g_param_spec_enum ("guide",
NULL, NULL,
N_("Composition guides such as rule of thirds"), _("Composition guides such as rule of thirds"),
GIMP_TYPE_GUIDES_TYPE, GIMP_TYPE_GUIDES_TYPE,
GIMP_GUIDES_NONE, GIMP_GUIDES_NONE,
GIMP_CONFIG_PARAM_FLAGS | GIMP_CONFIG_PARAM_FLAGS |
@ -108,7 +108,7 @@ gimp_rectangle_options_default_init (GimpRectangleOptionsInterface *iface)
g_object_interface_install_property (iface, g_object_interface_install_property (iface,
g_param_spec_double ("x", g_param_spec_double ("x",
NULL, NULL,
N_("X coordinate of top left corner"), _("X coordinate of top left corner"),
-GIMP_MAX_IMAGE_SIZE, -GIMP_MAX_IMAGE_SIZE,
GIMP_MAX_IMAGE_SIZE, GIMP_MAX_IMAGE_SIZE,
0.0, 0.0,
@ -118,7 +118,7 @@ gimp_rectangle_options_default_init (GimpRectangleOptionsInterface *iface)
g_object_interface_install_property (iface, g_object_interface_install_property (iface,
g_param_spec_double ("y", g_param_spec_double ("y",
NULL, NULL,
N_("Y coordinate of top left corner"), _("Y coordinate of top left corner"),
-GIMP_MAX_IMAGE_SIZE, -GIMP_MAX_IMAGE_SIZE,
GIMP_MAX_IMAGE_SIZE, GIMP_MAX_IMAGE_SIZE,
0.0, 0.0,
@ -128,7 +128,7 @@ gimp_rectangle_options_default_init (GimpRectangleOptionsInterface *iface)
g_object_interface_install_property (iface, g_object_interface_install_property (iface,
g_param_spec_double ("width", g_param_spec_double ("width",
NULL, NULL,
N_("Width of selection"), _("Width of selection"),
0.0, GIMP_MAX_IMAGE_SIZE, 0.0, GIMP_MAX_IMAGE_SIZE,
0.0, 0.0,
GIMP_PARAM_READWRITE | GIMP_PARAM_READWRITE |
@ -137,7 +137,7 @@ gimp_rectangle_options_default_init (GimpRectangleOptionsInterface *iface)
g_object_interface_install_property (iface, g_object_interface_install_property (iface,
g_param_spec_double ("height", g_param_spec_double ("height",
NULL, NULL,
N_("Height of selection"), _("Height of selection"),
0.0, GIMP_MAX_IMAGE_SIZE, 0.0, GIMP_MAX_IMAGE_SIZE,
0.0, 0.0,
GIMP_PARAM_READWRITE | GIMP_PARAM_READWRITE |
@ -146,7 +146,7 @@ gimp_rectangle_options_default_init (GimpRectangleOptionsInterface *iface)
g_object_interface_install_property (iface, g_object_interface_install_property (iface,
gimp_param_spec_unit ("position-unit", gimp_param_spec_unit ("position-unit",
NULL, NULL,
N_("Unit of top left corner coordinate"), _("Unit of top left corner coordinate"),
TRUE, TRUE, TRUE, TRUE,
GIMP_UNIT_PIXEL, GIMP_UNIT_PIXEL,
GIMP_PARAM_READWRITE | GIMP_PARAM_READWRITE |
@ -155,7 +155,7 @@ gimp_rectangle_options_default_init (GimpRectangleOptionsInterface *iface)
g_object_interface_install_property (iface, g_object_interface_install_property (iface,
gimp_param_spec_unit ("size-unit", gimp_param_spec_unit ("size-unit",
NULL, NULL,
N_("Unit of selection size"), _("Unit of selection size"),
TRUE, TRUE, TRUE, TRUE,
GIMP_UNIT_PIXEL, GIMP_UNIT_PIXEL,
GIMP_PARAM_READWRITE | GIMP_PARAM_READWRITE |
@ -164,8 +164,8 @@ gimp_rectangle_options_default_init (GimpRectangleOptionsInterface *iface)
g_object_interface_install_property (iface, g_object_interface_install_property (iface,
g_param_spec_boolean ("fixed-rule-active", g_param_spec_boolean ("fixed-rule-active",
NULL, NULL,
N_("Enable lock of aspect ratio, " _("Enable lock of aspect ratio, "
"width, height or size"), "width, height or size"),
FALSE, FALSE,
GIMP_CONFIG_PARAM_FLAGS | GIMP_CONFIG_PARAM_FLAGS |
GIMP_PARAM_STATIC_STRINGS)); GIMP_PARAM_STATIC_STRINGS));
@ -173,7 +173,7 @@ gimp_rectangle_options_default_init (GimpRectangleOptionsInterface *iface)
g_object_interface_install_property (iface, g_object_interface_install_property (iface,
g_param_spec_enum ("fixed-rule", g_param_spec_enum ("fixed-rule",
NULL, NULL,
N_("Choose what has to be locked"), _("Choose what has to be locked"),
GIMP_TYPE_RECTANGLE_FIXED_RULE, GIMP_TYPE_RECTANGLE_FIXED_RULE,
GIMP_RECTANGLE_FIXED_ASPECT, GIMP_RECTANGLE_FIXED_ASPECT,
GIMP_CONFIG_PARAM_FLAGS | GIMP_CONFIG_PARAM_FLAGS |
@ -182,7 +182,7 @@ gimp_rectangle_options_default_init (GimpRectangleOptionsInterface *iface)
g_object_interface_install_property (iface, g_object_interface_install_property (iface,
g_param_spec_double ("desired-fixed-width", g_param_spec_double ("desired-fixed-width",
NULL, NULL,
N_("Custom fixed width"), _("Custom fixed width"),
0.0, GIMP_MAX_IMAGE_SIZE, 0.0, GIMP_MAX_IMAGE_SIZE,
100.0, 100.0,
GIMP_CONFIG_PARAM_FLAGS | GIMP_CONFIG_PARAM_FLAGS |
@ -191,7 +191,7 @@ gimp_rectangle_options_default_init (GimpRectangleOptionsInterface *iface)
g_object_interface_install_property (iface, g_object_interface_install_property (iface,
g_param_spec_double ("desired-fixed-height", g_param_spec_double ("desired-fixed-height",
NULL, NULL,
N_("Custom fixed height"), _("Custom fixed height"),
0.0, GIMP_MAX_IMAGE_SIZE, 0.0, GIMP_MAX_IMAGE_SIZE,
100.0, 100.0,
GIMP_CONFIG_PARAM_FLAGS | GIMP_CONFIG_PARAM_FLAGS |
@ -285,7 +285,7 @@ gimp_rectangle_options_default_init (GimpRectangleOptionsInterface *iface)
g_object_interface_install_property (iface, g_object_interface_install_property (iface,
gimp_param_spec_unit ("fixed-unit", gimp_param_spec_unit ("fixed-unit",
NULL, NULL,
N_("Unit of fixed width, height or size"), _("Unit of fixed width, height or size"),
TRUE, TRUE, TRUE, TRUE,
GIMP_UNIT_PIXEL, GIMP_UNIT_PIXEL,
GIMP_PARAM_READWRITE | GIMP_PARAM_READWRITE |