[libgda] Browser: UI translation improvements
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Browser: UI translation improvements
- Date: Wed, 13 Feb 2019 17:50:24 +0000 (UTC)
commit c2ffc1881404b73b92e195c466450bb31917ec4d
Author: Daniel Espinosa Ortiz <esodan gmail com>
Date: Tue Feb 12 14:30:08 2019 -0600
Browser: UI translation improvements
tools/browser/connection-binding-properties.c | 19 ++++++++-----------
tools/common/t-app.c | 2 +-
tools/common/t-connection.c | 2 +-
3 files changed, 10 insertions(+), 13 deletions(-)
---
diff --git a/tools/browser/connection-binding-properties.c b/tools/browser/connection-binding-properties.c
index 4978f312e..43da7344b 100644
--- a/tools/browser/connection-binding-properties.c
+++ b/tools/browser/connection-binding-properties.c
@@ -213,22 +213,18 @@ static void
create_layout (ConnectionBindingProperties *cprop)
{
GtkWidget *label, *hbox;
- gchar *str;
+ GString *str;
GtkWidget *dcontents;
dcontents = gtk_dialog_get_content_area (GTK_DIALOG (cprop));
gtk_container_set_border_width (GTK_CONTAINER (dcontents), 10);
- str = g_strdup_printf ("<b>%s:</b>\n<small>%s</small>",
- _("Virtual connection's properties"),
- _("The virtual connection you are about to define can bind tables "
- "from an existing connection as well as bind a data set which will "
- "appear as a table (importing CSV data for example). "
- "You can add as many binds as needed"));
+ str = g_string_new (_("Virtual connection's properties."));
+ g_string_append (str, _("The virtual connection you are about to define can bind tables from an
existing connection as well as bind a data set which will appear as a table (importing CSV data for example).
You can add as many binds as needed"));
label = gtk_label_new ("");
- gtk_label_set_markup (GTK_LABEL (label), str);
- g_free (str);
+ gtk_label_set_markup (GTK_LABEL (label), str->str);
+ g_string_free (str, TRUE);
gtk_widget_set_halign (label, GTK_ALIGN_START);
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
gtk_box_pack_start (GTK_BOX (dcontents), label, FALSE, FALSE, 0);
@@ -553,7 +549,8 @@ create_part_for_cnc (ConnectionBindingProperties *cprop, TVirtualConnectionPart
"SCHEMA", G_TYPE_STRING, cnc->table_schema);
holder = gda_holder_new (T_TYPE_CONNECTION, "CNC");
- g_object_set (holder, "name", "Connection", "not-null", TRUE, NULL);
+ g_object_set (holder, "name", _("Connection"), "not-null", TRUE,
+ "description", _("Connection to get tables
from in the schema"), NULL);
g_assert (gda_set_add_holder (set, holder));
g_value_set_object ((value = gda_value_new (T_TYPE_CONNECTION)), cnc->source_cnc);
@@ -565,7 +562,7 @@ create_part_for_cnc (ConnectionBindingProperties *cprop, TVirtualConnectionPart
g_object_unref (holder);
holder = gda_set_get_holder (set, "SCHEMA");
- g_object_set (holder, "name", "Schema",
+ g_object_set (holder, "name", _("Schema"),
"description", _("Name of the schema the\ntables will be in"), NULL);
form = gdaui_basic_form_new (set);
diff --git a/tools/common/t-app.c b/tools/common/t-app.c
index 7c899bb6f..850b2f2cf 100644
--- a/tools/common/t-app.c
+++ b/tools/common/t-app.c
@@ -3078,7 +3078,7 @@ extra_command_bind_cnc (ToolCommand *command, guint argc, const gchar **argv,
gda_connection_get_meta_store (virtual); /* force create of meta store */
/* add existing connections to virtual connection */
- string = g_string_new (_("Bound connections are as:"));
+ string = g_string_new (_("Connections were bound as:"));
for (i = 1; i < nargv; i++) {
tcnc = t_connection_get_by_name (argv[i]);
if (tcnc) {
diff --git a/tools/common/t-connection.c b/tools/common/t-connection.c
index d7f705dc6..b6db561c4 100644
--- a/tools/common/t-connection.c
+++ b/tools/common/t-connection.c
@@ -533,7 +533,7 @@ t_connection_dispose (GObject *object)
tcnc->priv->dict_file_name = NULL;
}
- TO_IMPLEMENT;
+ // FIXME: TO_IMPLEMENT;
/*
if (tcnc->priv->meta_store_signal)
gda_thread_wrapper_disconnect (tcnc->priv->wrapper,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]