Am 18.05.2022 um 16:01 schrieb Sven Schreiber:
Hi, a trivial listing here, not only in the regls context:
OK, I just pushed these (and another) changes to git master. I'm fairly
confident I didn't break anything, but haven't formally tested yet. (I
know, it should be the other way around...)
Below is the diff of what I did, in case you see anything dramatic right
away.
But a follow-up question: Do I remember correctly that something else
needs to be done such that these strings propagate to the .po files
where translators such as myself then can process them? I'm sure I've
asked this before, sorry for that.
thanks
sven
---------
diff --git a/gui/dialogs.c b/gui/dialogs.c
index a5c48b363..e806140c4 100644
--- a/gui/dialogs.c
+++ b/gui/dialogs.c
@@ -7204,7 +7204,7 @@ void tdisagg_dialog (int v)
return;
}
- dialog = gretl_dialog_new("gretl: temporal disaggregation",
+ dialog = gretl_dialog_new(_("gretl: temporal disaggregation"),
NULL, GRETL_DLG_BLOCK);
vbox = gtk_dialog_get_content_area(GTK_DIALOG(dialog));
@@ -7433,7 +7433,7 @@ void bdstest_dialog (int v, GtkWidget *parent)
return;
}
- dialog = gretl_dialog_new("gretl: BDS test", parent, GRETL_DLG_BLOCK);
+ dialog = gretl_dialog_new(_("gretl: BDS test"), parent,
GRETL_DLG_BLOCK);
vbox = gtk_dialog_get_content_area(GTK_DIALOG(dialog));
bi.vnum = v;
@@ -7557,7 +7557,7 @@ void regls_advanced_dialog (gretl_bundle *b,
GtkWidget *parent)
#endif
int i;
- dialog = gretl_dialog_new("gretl: regls options", parent,
GRETL_DLG_BLOCK);
+ dialog = gretl_dialog_new(_("gretl: regls options"), parent,
GRETL_DLG_BLOCK);
vbox = gtk_dialog_get_content_area(GTK_DIALOG(dialog));
ro.dlg = dialog;
diff --git a/gui/selector.c b/gui/selector.c
index 8c1c57a0f..2979209f0 100644
--- a/gui/selector.c
+++ b/gui/selector.c
@@ -6596,7 +6596,7 @@ static void build_regls_controls (selector *sr)
/* choice of estimator */
hbox = gtk_hbox_new(FALSE, 5);
- w = gtk_label_new("Estimator");
+ w = gtk_label_new(_("Estimator"));
gtk_box_pack_start(GTK_BOX(hbox), w, FALSE, FALSE, 5);
sr->extra[REGLS_EST] = w = gtk_combo_box_text_new();
combo_box_append_text(w, _("LASSO"));
@@ -6678,7 +6678,7 @@ static void build_regls_controls (selector *sr)
/* "advanced" controls */
hbox = gtk_hbox_new(FALSE, 5);
- w = gtk_button_new_with_label("Advanced...");
+ w = gtk_button_new_with_label(_("Advanced..."));
g_signal_connect(G_OBJECT(w), "clicked",
G_CALLBACK(call_regls_advanced), sr);
gtk_box_pack_start(GTK_BOX(hbox), w, FALSE, FALSE, 5);
@@ -9327,7 +9327,7 @@ static int *sr_get_stoch_list (selector *sr, int
*pnset, int *pcontext)
if (ynum < 0 && nv[0] == 0 && nv[1] == 0) {
/* nothing relevant was found */
- errbox("Please add some variables to the model first");
+ errbox(_("Please add some variables to the model first"));
return NULL;
}