From: Friedrich Beckmann Date: Fri, 26 Jun 2020 06:37:17 +0000 (+0200) Subject: added title to variable sheet dialogs X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2577c582deb316fd64475df676d15340ef2153f8;p=pspp added title to variable sheet dialogs --- diff --git a/src/ui/gui/missing-val-dialog.c b/src/ui/gui/missing-val-dialog.c index 09e17c1aaf..64b045c616 100644 --- a/src/ui/gui/missing-val-dialog.c +++ b/src/ui/gui/missing-val-dialog.c @@ -375,7 +375,8 @@ psppire_missing_val_dialog_constructor (GType type, type, n_properties, properties); dialog = PSPPIRE_MISSING_VAL_DIALOG (obj); - g_object_set (dialog, "help_page", "Missing-Observations", NULL); + g_object_set (dialog, "help_page", "Missing-Observations", + "title", _("Missing Values"), NULL); content_area = GTK_CONTAINER (PSPPIRE_DIALOG (dialog)); xml = builder_new ("missing-val-dialog.ui"); diff --git a/src/ui/gui/val-labs-dialog.c b/src/ui/gui/val-labs-dialog.c index 4dce3dae0c..f46daf7f70 100644 --- a/src/ui/gui/val-labs-dialog.c +++ b/src/ui/gui/val-labs-dialog.c @@ -475,7 +475,8 @@ psppire_val_labs_dialog_constructor (GType type, type, n_properties, properties); dialog = PSPPIRE_VAL_LABS_DIALOG (obj); - g_object_set (dialog, "help_page", "VALUE-LABELS", NULL); + g_object_set (dialog, "help_page", "VALUE-LABELS", + "title", _("Value Lables"), NULL); content_area = GTK_CONTAINER (PSPPIRE_DIALOG (dialog)); gtk_container_add (GTK_CONTAINER (content_area), diff --git a/src/ui/gui/var-type-dialog.c b/src/ui/gui/var-type-dialog.c index 5d17b2722d..0a2bf3ee7a 100644 --- a/src/ui/gui/var-type-dialog.c +++ b/src/ui/gui/var-type-dialog.c @@ -32,6 +32,10 @@ #include "ui/gui/psppire-format.h" #include "ui/gui/var-type-dialog.h" +#include +#define _(msgid) gettext (msgid) +#define N_(msgid) msgid + static const struct fmt_spec date_format[] = { {FMT_DATE, 11, 0}, @@ -533,7 +537,8 @@ psppire_var_type_dialog_constructor (GType type, type, n_properties, properties); dialog = PSPPIRE_VAR_TYPE_DIALOG (obj); - g_object_set (dialog, "help_page", "Input-and-Output-Formats", NULL); + g_object_set (dialog, "help_page", "Input-and-Output-Formats", + "title", _("Variable Type and Format"), NULL); xml = builder_new ("var-type-dialog.ui");