Commit a76e4aa2ae46fea02f88aace411f64a28636e972

Authored by Perry Werneck
1 parent f8f87bed
Exists in master and in 1 other branch develop

Fixing translation domains.

src/terminal/actions/action.c
@@ -332,6 +332,8 @@ @@ -332,6 +332,8 @@
332 const gchar * v3270_action_get_label(GAction *action) { 332 const gchar * v3270_action_get_label(GAction *action) {
333 const gchar * label = V3270_ACTION_GET_DESCRIPTOR(action)->label; 333 const gchar * label = V3270_ACTION_GET_DESCRIPTOR(action)->label;
334 334
  335 + debug("%s(%s): [%s] [%s]",__FUNCTION__,g_action_get_name(action),label,v3270_action_translate(action,label));
  336 +
335 if(label && *label) 337 if(label && *label)
336 return v3270_action_translate(action,label); 338 return v3270_action_translate(action,label);
337 339
src/terminal/actions/pakey.c
@@ -90,11 +90,13 @@ @@ -90,11 +90,13 @@
90 90
91 static const LIB3270_PROPERTY info = { 91 static const LIB3270_PROPERTY info = {
92 .name = "pakey", 92 .name = "pakey",
93 - .group = LIB3270_ACTION_GROUP_ONLINE 93 + .group = LIB3270_ACTION_GROUP_ONLINE,
  94 + .summary = N_("Emit a PA Key action")
94 }; 95 };
95 96
96 action->parent.activate = activate; 97 action->parent.activate = activate;
97 action->parent.info = &info; 98 action->parent.info = &info;
  99 + action->parent.translation_domain = GETTEXT_PACKAGE;
98 100
99 } 101 }
100 102
src/terminal/actions/pfkey.c
@@ -90,11 +90,14 @@ @@ -90,11 +90,14 @@
90 90
91 static const LIB3270_PROPERTY info = { 91 static const LIB3270_PROPERTY info = {
92 .name = "pfkey", 92 .name = "pfkey",
93 - .group = LIB3270_ACTION_GROUP_ONLINE 93 + .group = LIB3270_ACTION_GROUP_ONLINE,
  94 + .summary = N_("Emit a PA Key action")
  95 +
94 }; 96 };
95 97
96 action->parent.activate = activate; 98 action->parent.activate = activate;
97 action->parent.info = &info; 99 action->parent.info = &info;
  100 + action->parent.translation_domain = GETTEXT_PACKAGE;
98 101
99 } 102 }
100 103
src/terminal/actions/table.c
@@ -353,6 +353,7 @@ @@ -353,6 +353,7 @@
353 353
354 action->info = (const LIB3270_PROPERTY *) &actions[ix]; 354 action->info = (const LIB3270_PROPERTY *) &actions[ix];
355 action->activate = activate_v3270; 355 action->activate = activate_v3270;
  356 + action->translation_domain = GETTEXT_PACKAGE;
356 357
357 if(!g_action_get_name(G_ACTION(action))) { 358 if(!g_action_get_name(G_ACTION(action))) {
358 g_warning("Action \"%s\" is invalid",actions[ix].name); 359 g_warning("Action \"%s\" is invalid",actions[ix].name);