[gimp/gimp-2-10] Issue #2922: Some sentences appear untranslated.



commit d815f355bb421a73c51b19f8c6d5346afaebb69c
Author: Jehan <jehan girinstud io>
Date:   Fri Feb 8 12:48:08 2019 +0100

    Issue #2922: Some sentences appear untranslated.
    
    Again some missing context when requesting the strings (while they were
    declared with context in static NC_()).
    Also some mixup with some zoom actions strings declared with different
    context in the same GimpEnumActionEntry.
    
    (cherry picked from commit 6c5b6c613553abde18556f8470c36654170e288f)

 app/actions/layers-actions.c |  4 ++--
 app/actions/tools-actions.c  |  4 ++--
 app/actions/view-actions.c   | 14 +++++++-------
 3 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/app/actions/layers-actions.c b/app/actions/layers-actions.c
index d287ff7962..40383b1eb0 100644
--- a/app/actions/layers-actions.c
+++ b/app/actions/layers-actions.c
@@ -729,12 +729,12 @@ layers_actions_setup (GimpActionGroup *group)
                                       G_N_ELEMENTS (layers_select_actions),
                                       G_CALLBACK (layers_select_cmd_callback));
 
-  gimp_action_group_add_enum_actions (group, NULL,
+  gimp_action_group_add_enum_actions (group, "layers-action",
                                       layers_opacity_actions,
                                       G_N_ELEMENTS (layers_opacity_actions),
                                       G_CALLBACK (layers_opacity_cmd_callback));
 
-  gimp_action_group_add_enum_actions (group, NULL,
+  gimp_action_group_add_enum_actions (group, "layers-action",
                                       layers_mode_actions,
                                       G_N_ELEMENTS (layers_mode_actions),
                                       G_CALLBACK (layers_mode_cmd_callback));
diff --git a/app/actions/tools-actions.c b/app/actions/tools-actions.c
index d7a0b585ae..ec007c63c3 100644
--- a/app/actions/tools-actions.c
+++ b/app/actions/tools-actions.c
@@ -677,11 +677,11 @@ tools_actions_setup (GimpActionGroup *group)
                                       G_N_ELEMENTS (tools_ink_blob_angle_actions),
                                       G_CALLBACK (tools_ink_blob_angle_cmd_callback));
 
-  gimp_action_group_add_enum_actions (group, NULL,
+  gimp_action_group_add_enum_actions (group, "tools-action",
                                       tools_airbrush_rate_actions,
                                       G_N_ELEMENTS (tools_airbrush_rate_actions),
                                       G_CALLBACK (tools_airbrush_rate_cmd_callback));
-  gimp_action_group_add_enum_actions (group, NULL,
+  gimp_action_group_add_enum_actions (group, "tools-action",
                                       tools_airbrush_flow_actions,
                                       G_N_ELEMENTS (tools_airbrush_flow_actions),
                                       G_CALLBACK (tools_airbrush_flow_cmd_callback));
diff --git a/app/actions/view-actions.c b/app/actions/view-actions.c
index 47cba25255..3b0203f91c 100644
--- a/app/actions/view-actions.c
+++ b/app/actions/view-actions.c
@@ -318,17 +318,17 @@ static const GimpToggleActionEntry view_toggle_actions[] =
 static const GimpEnumActionEntry view_zoom_actions[] =
 {
   { "view-zoom", NULL,
-    NC_("view-action", "Set zoom factor"), NULL, NULL,
+    NC_("view-zoom-action", "Set zoom factor"), NULL, NULL,
     GIMP_ACTION_SELECT_SET, TRUE,
     NULL },
 
   { "view-zoom-minimum", GIMP_ICON_ZOOM_OUT,
-    NC_("view-action", "Zoom out as far as possible"), NULL, NULL,
+    NC_("view-zoom-action", "Zoom out as far as possible"), NULL, NULL,
     GIMP_ACTION_SELECT_FIRST, FALSE,
     GIMP_HELP_VIEW_ZOOM_OUT },
 
   { "view-zoom-maximum", GIMP_ICON_ZOOM_IN,
-    NC_("view-action", "Zoom in as far as possible"), NULL, NULL,
+    NC_("view-zoom-action", "Zoom in as far as possible"), NULL, NULL,
     GIMP_ACTION_SELECT_LAST, FALSE,
     GIMP_HELP_VIEW_ZOOM_IN },
 
@@ -357,12 +357,12 @@ static const GimpEnumActionEntry view_zoom_actions[] =
     GIMP_HELP_VIEW_ZOOM_IN },
 
   { "view-zoom-out-skip", GIMP_ICON_ZOOM_OUT,
-    NC_("view-action", "Zoom out a lot"), NULL, NULL,
+    NC_("view-zoom-action", "Zoom out a lot"), NULL, NULL,
     GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
     GIMP_HELP_VIEW_ZOOM_OUT },
 
   { "view-zoom-in-skip", GIMP_ICON_ZOOM_IN,
-    NC_("view-action", "Zoom in a lot"), NULL, NULL,
+    NC_("view-zoom-action", "Zoom in a lot"), NULL, NULL,
     GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
     GIMP_HELP_VIEW_ZOOM_IN }
 };
@@ -748,12 +748,12 @@ view_actions_setup (GimpActionGroup *group)
                                       G_N_ELEMENTS (view_padding_color_actions),
                                       G_CALLBACK (view_padding_color_cmd_callback));
 
-  gimp_action_group_add_enum_actions (group, NULL,
+  gimp_action_group_add_enum_actions (group, "view-action",
                                       view_scroll_horizontal_actions,
                                       G_N_ELEMENTS (view_scroll_horizontal_actions),
                                       G_CALLBACK (view_scroll_horizontal_cmd_callback));
 
-  gimp_action_group_add_enum_actions (group, NULL,
+  gimp_action_group_add_enum_actions (group, "view-action",
                                       view_scroll_vertical_actions,
                                       G_N_ELEMENTS (view_scroll_vertical_actions),
                                       G_CALLBACK (view_scroll_vertical_cmd_callback));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]