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 332 const gchar * v3270_action_get_label(GAction *action) {
333 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 337 if(label && *label)
336 338 return v3270_action_translate(action,label);
337 339  
... ...
src/terminal/actions/pakey.c
... ... @@ -90,11 +90,13 @@
90 90  
91 91 static const LIB3270_PROPERTY info = {
92 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 97 action->parent.activate = activate;
97 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 90  
91 91 static const LIB3270_PROPERTY info = {
92 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 98 action->parent.activate = activate;
97 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 353  
354 354 action->info = (const LIB3270_PROPERTY *) &actions[ix];
355 355 action->activate = activate_v3270;
  356 + action->translation_domain = GETTEXT_PACKAGE;
356 357  
357 358 if(!g_action_get_name(G_ACTION(action))) {
358 359 g_warning("Action \"%s\" is invalid",actions[ix].name);
... ...