--- /dev/null
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# Andrea Zagli <azagli@libero.it>, 2011.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: libgdaex 0.4.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2011-10-22 10:42+0200\n"
+"PO-Revision-Date: 2011-10-22 10:52+0200\n"
+"Last-Translator: Andrea Zagli <azagli@libero.it>\n"
+"Language-Team: Italian <tp@lists.linux.it>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. TO DO
+#: ../src/gdaex.c:206
+msgid "Datasource cannot be empty."
+msgstr "Datasource non può essere vuota."
+
+#. TO DO
+#: ../src/gdaex.c:214 ../src/gdaex.c:307
+msgid "Unable to create GdaEx object."
+msgstr "Impossibile creare l'oggetto GdaEx."
+
+#: ../src/gdaex.c:273 ../src/gdaex.c:322
+#, c-format
+msgid "Error creating database connection: %s"
+msgstr "Errore nella creazione della connessione al database: %s"
+
+#: ../src/gdaex.c:274 ../src/gdaex.c:677 ../src/gdaex.c:694
+#: ../src/gdaex.c:1016 ../src/gdaex.c:1056 ../src/gdaex.c:1095
+#: ../src/gdaex.c:1134 ../src/gdaex.c:1186 ../src/gdaex.c:1281
+#: ../src/gdaex.c:1341 ../src/gdaex.c:1407 ../src/gdaex.c:1457
+#: ../src/gdaex.c:2283 ../src/gdaex.c:2393 ../src/gdaex.c:2440
+#: ../src/gdaex.c:2458 ../src/gdaex.c:2511 ../src/gdaex.c:2570
+#: ../src/gdaex.c:2623 ../src/gdaex.c:2887 ../src/gdaex.c:2905
+msgid "no details"
+msgstr "nessun dettaglio"
+
+#. TO DO
+#: ../src/gdaex.c:299
+msgid "cnc_string must not be empty."
+msgstr "cnc_string non può essere vuota."
+
+#: ../src/gdaex.c:323 ../src/gdaex.c:377 ../src/gdaex.c:411
+msgid "no details."
+msgstr "nessun dettaglio."
+
+#: ../src/gdaex.c:376
+#, c-format
+msgid "Error on writing on log file: %s"
+msgstr "Errore nella scrittura del file di registro: %s"
+
+#: ../src/gdaex.c:410
+#, c-format
+msgid "Error on opening log file: %s"
+msgstr "Errore nell'apertura del file di registro: %s"
+
+#: ../src/gdaex.c:528
+msgid "Unable to get the GdaSqlStatement from the GdaStatement."
+msgstr "Impossibile ottenere il GdaSqlStatement dal GdaStatement."
+
+#: ../src/gdaex.c:642
+#, c-format
+msgid "Statement type %s not implemented."
+msgstr "Tipo di istruzione %s non implementato."
+
+#: ../src/gdaex.c:676
+#, c-format
+msgid ""
+"Error parsing query string: %s\n"
+"%s"
+msgstr ""
+"Errore nell'analisi della stringa della query: %s\n"
+"%s"
+
+#: ../src/gdaex.c:693
+#, c-format
+msgid ""
+"Error executing selection query: %s\n"
+"%s"
+msgstr ""
+"Errore nell'esecuzione della query di selezione: %s\n"
+"%s"
+
+#: ../src/gdaex.c:701
+#, c-format
+msgid "Selection query executed: %s"
+msgstr "Query di selezione eseguita: %s"
+
+#: ../src/gdaex.c:732 ../src/gdaex.c:763 ../src/gdaex.c:793 ../src/gdaex.c:823
+#: ../src/gdaex.c:853 ../src/gdaex.c:883 ../src/gdaex.c:914 ../src/gdaex.c:945
+#: ../src/gdaex.c:976 ../src/gdaex.c:1488 ../src/gdaex.c:1520
+#: ../src/gdaex.c:1551 ../src/gdaex.c:1582 ../src/gdaex.c:1613
+#: ../src/gdaex.c:1644 ../src/gdaex.c:1676 ../src/gdaex.c:1708
+#: ../src/gdaex.c:1740
+#, c-format
+msgid "No column found with name «%s»."
+msgstr "Nessuna colonna trovata con il nome «%s»."
+
+#: ../src/gdaex.c:1014 ../src/gdaex.c:1054 ../src/gdaex.c:1093
+#: ../src/gdaex.c:1132 ../src/gdaex.c:1184 ../src/gdaex.c:1279
+#: ../src/gdaex.c:1339 ../src/gdaex.c:1405 ../src/gdaex.c:1455
+#, c-format
+msgid ""
+"Error on retrieving field's value: «%s».\n"
+"%s\n"
+msgstr ""
+"Errore nell'ottenere il valore del campo: «%s»\n"
+"%s\n"
+
+#: ../src/gdaex.c:1272 ../src/gdaex.c:1332 ../src/gdaex.c:1398
+#, c-format
+msgid ""
+"Error on retrieving field's value: «%s».\n"
+"Unknown GValue type."
+msgstr ""
+"Errore nell'ottenere il valore del campo: «%s».\n"
+"Tipo GValue sconosciuto."
+
+#: ../src/gdaex.c:1767 ../src/gdaex.c:1805 ../src/gdaex.c:1843
+#: ../src/gdaex.c:1881 ../src/gdaex.c:1919 ../src/gdaex.c:1972
+#: ../src/gdaex.c:2065 ../src/gdaex.c:2123 ../src/gdaex.c:2183
+#, c-format
+msgid "Error on retrieving field's value: «%s»."
+msgstr "Errore nell'ottenere il valore del campo: «%s»."
+
+#: ../src/gdaex.c:2034 ../src/gdaex.c:2090 ../src/gdaex.c:2154
+msgid "Error on retrieving field's value: unknown GValue type."
+msgstr "Impossibile ottenere il valore del campo: tipo GValue sconosciuto."
+
+#: ../src/gdaex.c:2281
+#, c-format
+msgid "Error on retrieving column %d: %s"
+msgstr "Errore nell'ottenere la colonna %d: %s"
+
+#: ../src/gdaex.c:2331
+msgid "Invalid GdaDataModel."
+msgstr "GdaDataModel non valido."
+
+#: ../src/gdaex.c:2345
+msgid "Unable to create the GtkTreeModel."
+msgstr "Impossibile creare il GtkTreeModel."
+
+#: ../src/gdaex.c:2392
+#, c-format
+msgid "Error opening transaction: %s\n"
+msgstr "Errore nell'apertura della transazione: %s\n"
+
+#: ../src/gdaex.c:2399
+msgid "Transaction opened."
+msgstr "Transazione aperta."
+
+#: ../src/gdaex.c:2433
+#, c-format
+msgid ""
+"REMAINS:\n"
+"%s\n"
+"from\n"
+"%s"
+msgstr ""
+"RIMANE:\n"
+"%s\n"
+"da\n"
+"%s"
+
+#: ../src/gdaex.c:2439 ../src/gdaex.c:2510
+#, c-format
+msgid ""
+"Error parsing sql: %s\n"
+"%s"
+msgstr ""
+"Errore nell'analisi dell'sql: %s\n"
+"%s"
+
+#: ../src/gdaex.c:2457
+#, c-format
+msgid ""
+"Error executing command query: %s\n"
+"%s"
+msgstr ""
+"Errore nell'esecuzione della query di comando: %s\n"
+"%s"
+
+#: ../src/gdaex.c:2465
+#, c-format
+msgid "Query executed: %s"
+msgstr "Query eseguita: %s"
+
+#: ../src/gdaex.c:2559 ../src/gdaex.c:2612
+msgid "No transaction opened."
+msgstr "Nessuna transazione aperta."
+
+#: ../src/gdaex.c:2569
+#, c-format
+msgid "Error committing transaction: %s"
+msgstr "Errore nel committare la transazione: %s"
+
+#: ../src/gdaex.c:2577
+msgid "Transaction committed."
+msgstr "Transazione committata."
+
+#: ../src/gdaex.c:2622
+#, c-format
+msgid "Error rollbacking transaction: %s"
+msgstr "Errore nel rollbacking della transazione: %s"
+
+#: ../src/gdaex.c:2630
+msgid "Transaction rolled back."
+msgstr "Transazione rolled back."
+
+#: ../src/gdaex.c:2886
+#, c-format
+msgid "Error on creating regex: %s"
+msgstr "Errore nella creazione dell'espressione regolare: %s"
+
+#: ../src/gdaex.c:2904
+#, c-format
+msgid "Error on regex replacing: %s"
+msgstr "Errore nell'espressione regolare di sostituzione: %s"
#include <stdarg.h>
#include <string.h>
+#include <glib/gi18n-lib.h>
+
#include <gio/gio.h>
+
#include <libgda/sql-parser/gda-sql-parser.h>
#include "gdaex.h"
static GdaEx
*gdaex_new_ ()
{
+ gchar *localedir;
+
GdaEx *gdaex = GDAEX (g_object_new (gdaex_get_type (), NULL));
GdaExPrivate *priv = GDAEX_GET_PRIVATE (gdaex);
+ setlocale (LC_ALL, "");
+ gda_locale_changed ();
+
+#ifdef G_OS_WIN32
+
+ gchar *moddir;
+ gchar *p;
+
+ moddir = g_win32_get_package_installation_directory_of_module (NULL);
+
+ p = g_strrstr (moddir, g_strdup_printf ("%c", G_DIR_SEPARATOR));
+ if (p != NULL
+ && (g_ascii_strcasecmp (p + 1, "src") == 0
+ || g_ascii_strcasecmp (p + 1, ".libs") == 0))
+ {
+ localedir = g_strdup (LOCALEDIR);
+ }
+ else
+ {
+ localedir = g_build_filename (moddir, "share", "locale", NULL);
+ }
+
+ g_free (moddir);
+ g_free (p);
+
+#else
+
+ localedir = g_strdup (LOCALEDIR);
+
+#endif
+
+ bindtextdomain (GETTEXT_PACKAGE, localedir);
+ textdomain (GETTEXT_PACKAGE);
+ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+
+ g_free (localedir);
+
return gdaex;
}
if (dsn == NULL || strcmp (g_strstrip (g_strdup (dsn)), "") == 0)
{
/* TO DO */
- g_warning ("datasource must not be empty.");
+ g_warning (_("Datasource cannot be empty."));
return NULL;
}
if (gdaex == NULL)
{
/* TO DO */
+ g_warning (_("Unable to create GdaEx object."));
return NULL;
}
&error);
if (error != NULL)
{
- g_warning ("Error creating database connection: %s\n",
- error->message);
+ g_warning (_("Error creating database connection: %s"),
+ error->message != NULL ? error->message : _("no details"));
return NULL;
}
if (cnc_string == NULL || strcmp (g_strstrip (g_strdup (cnc_string)), "") == 0)
{
/* TO DO */
- g_warning ("cnc_string must not be empty.");
+ g_warning (_("cnc_string must not be empty."));
return NULL;
}
if (gdaex == NULL)
{
/* TO DO */
+ g_warning (_("Unable to create GdaEx object."));
return NULL;
}
&error);
if (error != NULL)
{
- g_warning ("Error creating database connection: %s",
- error->message != NULL ? error->message : "no details.");
+ g_warning (_("Error creating database connection: %s"),
+ error->message != NULL ? error->message : _("no details."));
return NULL;
}
if (g_output_stream_write (G_OUTPUT_STREAM (priv->log_file),
msg, strlen (msg), NULL, &error) < 0)
{
- g_warning ("Error on writing on log file: %s",
- error != NULL && error->message != NULL ? error->message : "no details.");
+ g_warning (_("Error on writing on log file: %s"),
+ error != NULL && error->message != NULL ? error->message : _("no details."));
}
}
NULL, FALSE, G_FILE_CREATE_NONE, NULL, &my_error);
if (priv->log_file == NULL)
{
- g_warning ("Error on opening log file: %s.",
- my_error != NULL && my_error->message != NULL ? my_error->message : "no details.");
+ g_warning (_("Error on opening log file: %s"),
+ my_error != NULL && my_error->message != NULL ? my_error->message : _("no details."));
}
else
{
g_object_get (G_OBJECT (stmp), "structure", &sstmt, NULL);
if (sstmt == NULL)
{
- g_warning ("Unable to get the GdaSqlStatement from the GdaStatement.");
+ g_warning (_("Unable to get the GdaSqlStatement from the GdaStatement."));
return;
}
break;
default:
- g_warning ("Statement type %s not implemented.",
+ g_warning (_("Statement type %s not implemented."),
gda_sql_statement_type_to_string (sstmt->stmt_type));
return;
}
stmt = gda_sql_parser_parse_string (priv->gda_parser, sql, NULL, &error);
if (!GDA_IS_STATEMENT (stmt))
{
- g_warning ("Error parsing query string: %s\n%s",
- error != NULL && error->message != NULL ? error->message : "no details", sql);
+ g_warning (_("Error parsing query string: %s\n%s"),
+ error != NULL && error->message != NULL ? error->message : _("no details"), sql);
return NULL;
}
if (!GDA_IS_DATA_MODEL (dm))
{
- g_warning ("Error executing selection query: %s\n%s",
- error != NULL && error->message != NULL ? error->message : "no details", sql);
+ g_warning (_("Error executing selection query: %s\n%s"),
+ error != NULL && error->message != NULL ? error->message : _("no details"), sql);
return NULL;
}
else
{
if (priv->debug > 0)
{
- g_message ("Selection query executed: %s", sql);
+ g_message (_("Selection query executed: %s"), sql);
}
}
}
else
{
- g_warning ("No column found with name «%s».", field_name);
+ g_warning (_("No column found with name «%s»."), field_name);
value = NULL;
}
}
else
{
- g_warning ("No column found with name «%s».", field_name);
+ g_warning (_("No column found with name «%s»."), field_name);
}
return value;
}
else
{
- g_warning ("No column found with name «%s».", field_name);
+ g_warning (_("No column found with name «%s»."), field_name);
}
return value;
}
else
{
- g_warning ("No column found with name «%s».", field_name);
+ g_warning (_("No column found with name «%s»."), field_name);
}
return value;
}
else
{
- g_warning ("No column found with name «%s».", field_name);
+ g_warning (_("No column found with name «%s»."), field_name);
}
return value;
}
else
{
- g_warning ("No column found with name «%s».", field_name);
+ g_warning (_("No column found with name «%s»."), field_name);
value = NULL;
}
}
else
{
- g_warning ("No column found with name «%s».", field_name);
+ g_warning (_("No column found with name «%s»."), field_name);
value = NULL;
}
}
else
{
- g_warning ("No column found with name «%s».", field_name);
+ g_warning (_("No column found with name «%s»."), field_name);
value = NULL;
}
}
else
{
- g_warning ("No column found with name «%s».", field_name);
+ g_warning (_("No column found with name «%s»."), field_name);
value = NULL;
}
}
else
{
- g_warning ("Error on retrieving field's value: «%s».\n%s\n",
+ g_warning (_("Error on retrieving field's value: «%s».\n%s\n"),
gda_data_model_get_column_name (data_model, col),
- error->message != NULL ? error->message : "no details");
+ error->message != NULL ? error->message : _("no details"));
ret = NULL;
}
}
else
{
- g_warning ("Error on retrieving field's value: «%s».\n%s\n",
+ g_warning (_("Error on retrieving field's value: «%s».\n%s\n"),
gda_data_model_get_column_name (data_model, col),
- error->message != NULL ? error->message : "no details");
+ error->message != NULL ? error->message : _("no details"));
}
return ret;
}
else
{
- g_warning ("Error on retrieving field's value: «%s».\n%s\n",
+ g_warning (_("Error on retrieving field's value: «%s».\n%s\n"),
gda_data_model_get_column_name (data_model, col),
- error->message != NULL ? error->message : "no details");
+ error->message != NULL ? error->message : _("no details"));
}
return ret;
}
else
{
- g_warning ("Error on retrieving field's value: «%s».\n%s\n",
+ g_warning (_("Error on retrieving field's value: «%s».\n%s\n"),
gda_data_model_get_column_name (data_model, col),
- error->message != NULL ? error->message : "no details");
+ error->message != NULL ? error->message : _("no details"));
}
return ret;
}
else
{
- g_warning ("Error on retrieving field's value: «%s».\n%s\n",
+ g_warning (_("Error on retrieving field's value: «%s».\n%s\n"),
gda_data_model_get_column_name (data_model, col),
- error->message != NULL ? error->message : "no details");
+ error->message != NULL ? error->message : _("no details"));
}
return ret;
}
else
{
- g_warning ("Error on retrieving field's value: «%s».\nUnknown GValue type.",
+ g_warning (_("Error on retrieving field's value: «%s».\nUnknown GValue type."),
gda_data_model_get_column_name (data_model, col));
}
}
}
else
{
- g_warning ("Error on retrieving field's value: «%s».\n%s\n",
+ g_warning (_("Error on retrieving field's value: «%s».\n%s\n"),
gda_data_model_get_column_name (data_model, col),
- error->message != NULL ? error->message : "no details");
+ error->message != NULL ? error->message : _("no details"));
}
return (GdaTimestamp *)gda_timestamp_copy ((gpointer)gdatimestamp);
}
else
{
- g_warning ("Error on retrieving field's value: «%s».\nUnknown GValue type.",
+ g_warning (_("Error on retrieving field's value: «%s».\nUnknown GValue type."),
gda_data_model_get_column_name (data_model, col));
}
}
}
else
{
- g_warning ("Error on retrieving field's value: «%s».\n%s\n",
+ g_warning (_("Error on retrieving field's value: «%s».\n%s\n"),
gda_data_model_get_column_name (data_model, col),
- error->message != NULL ? error->message : "no details");
+ error->message != NULL ? error->message : _("no details"));
}
return ret;
}
else
{
- g_warning ("Error on retrieving field's value: «%s».\nUnknown GValue type.",
+ g_warning (_("Error on retrieving field's value: «%s».\nUnknown GValue type."),
gda_data_model_get_column_name (data_model, col));
}
}
}
else
{
- g_warning ("Error on retrieving field's value: «%s».\n%s\n",
+ g_warning (_("Error on retrieving field's value: «%s».\n%s\n"),
gda_data_model_get_column_name (data_model, col),
- error->message != NULL ? error->message : "no details");
+ error->message != NULL ? error->message : _("no details"));
}
return ret;
}
else
{
- g_warning ("Error on retrieving field's value: «%s».\n%s\n",
+ g_warning (_("Error on retrieving field's value: «%s».\n%s\n"),
gda_data_model_get_column_name (data_model, col),
- error->message != NULL ? error->message : "no details");
+ error->message != NULL ? error->message : _("no details"));
}
return ret;
}
else
{
- g_warning ("No column found with name «%s».", field_name);
+ g_warning (_("No column found with name «%s»."), field_name);
value = NULL;
}
}
else
{
- g_warning ("No column found with name «%s».", field_name);
+ g_warning (_("No column found with name «%s»."), field_name);
}
return value;
}
else
{
- g_warning ("No column found with name «%s».", field_name);
+ g_warning (_("No column found with name «%s»."), field_name);
}
return value;
}
else
{
- g_warning ("No column found with name «%s».", field_name);
+ g_warning (_("No column found with name «%s»."), field_name);
}
return value;
}
else
{
- g_warning ("No column found with name «%s».", field_name);
+ g_warning (_("No column found with name «%s»."), field_name);
}
return value;
}
else
{
- g_warning ("No column found with name «%s».", field_name);
+ g_warning (_("No column found with name «%s»."), field_name);
value = NULL;
}
}
else
{
- g_warning ("No column found with name «%s».", field_name);
+ g_warning (_("No column found with name «%s»."), field_name);
value = NULL;
}
}
else
{
- g_warning ("No column found with name «%s».", field_name);
+ g_warning (_("No column found with name «%s»."), field_name);
value = NULL;
}
}
else
{
- g_warning ("No column found with name «%s».", field_name);
+ g_warning (_("No column found with name «%s»."), field_name);
value = NULL;
}
g_object_get (G_OBJECT (iter), "data-model", &data_model, NULL);
- g_warning ("Error on retrieving field's value: «%s».",
+ g_warning (_("Error on retrieving field's value: «%s»."),
gda_data_model_get_column_name (data_model, col));
}
else
g_object_get (G_OBJECT (iter), "data-model", &data_model, NULL);
- g_warning ("Error on retrieving field's value: «%s».",
+ g_warning (_("Error on retrieving field's value: «%s»."),
gda_data_model_get_column_name (data_model, col));
}
else
g_object_get (G_OBJECT (iter), "data-model", &data_model, NULL);
- g_warning ("Error on retrieving field's value: «%s».",
+ g_warning (_("Error on retrieving field's value: «%s»."),
gda_data_model_get_column_name (data_model, col));
}
else
g_object_get (G_OBJECT (iter), "data-model", &data_model, NULL);
- g_warning ("Error on retrieving field's value: «%s».",
+ g_warning (_("Error on retrieving field's value: «%s»."),
gda_data_model_get_column_name (data_model, col));
}
else
g_object_get (G_OBJECT (iter), "data-model", &data_model, NULL);
- g_warning ("Error on retrieving field's value: «%s».",
+ g_warning (_("Error on retrieving field's value: «%s»."),
gda_data_model_get_column_name (data_model, col));
}
else
g_object_get (G_OBJECT (iter), "data-model", &data_model, NULL);
- g_warning ("Error on retrieving field's value: «%s».",
+ g_warning (_("Error on retrieving field's value: «%s»."),
gda_data_model_get_column_name (data_model, col));
}
else if (!gda_value_is_null (v))
}
else
{
- g_warning ("Error on retrieving field's value: unknown GValue type.");
+ g_warning (_("Error on retrieving field's value: unknown GValue type."));
}
}
g_object_get (G_OBJECT (iter), "data-model", &data_model, NULL);
- g_warning ("Error on retrieving field's value: «%s».",
+ g_warning (_("Error on retrieving field's value: «%s»."),
gda_data_model_get_column_name (data_model, col));
}
else if (!gda_value_is_null (v))
}
else
{
- g_warning ("Error on retrieving field's value: unknown GValue type.");
+ g_warning (_("Error on retrieving field's value: unknown GValue type."));
}
}
g_object_get (G_OBJECT (iter), "data-model", &data_model, NULL);
- g_warning ("Error on retrieving field's value: «%s».",
+ g_warning (_("Error on retrieving field's value: «%s»."),
gda_data_model_get_column_name (data_model, col));
}
else if (!gda_value_is_null (v))
}
else
{
- g_warning ("Error on retrieving field's value: unknown GValue type.");
+ g_warning (_("Error on retrieving field's value: unknown GValue type."));
}
}
g_object_get (G_OBJECT (iter), "data-model", &data_model, NULL);
- g_warning ("Error on retrieving field's value: «%s».",
+ g_warning (_("Error on retrieving field's value: «%s»."),
gda_data_model_get_column_name (data_model, col));
}
else if (!gda_value_is_null (v))
v = gda_data_model_get_value_at (dm, col, row, &error);
if (v == NULL || error != NULL)
{
- g_warning ("Error on retrieving column %d: %s",
+ g_warning (_("Error on retrieving column %d: %s"),
col,
- error != NULL && error->message != NULL ? error->message : "no details");
+ error != NULL && error->message != NULL ? error->message : _("no details"));
}
else
{
cols = gda_data_model_get_n_columns (dm);
if (cols == 0)
{
- g_warning ("Invalid GdaDataModel.");
+ g_warning (_("Invalid GdaDataModel."));
return NULL;
}
ret = gtk_list_store_newv (cols, gtypes);
if (ret == NULL)
{
- g_warning ("Unable to create the GtkTreeModel.");
+ g_warning (_("Unable to create the GtkTreeModel."));
return NULL;
}
if (error != NULL)
{
- g_warning ("Error opening transaction: %s\n",
- error->message != NULL ? error->message : "no details");
+ g_warning (_("Error opening transaction: %s\n"),
+ error->message != NULL ? error->message : _("no details"));
}
else
{
if (priv->debug > 0)
{
- g_message ("Transaction opened.");
+ g_message (_("Transaction opened."));
}
}
stmt = gda_sql_parser_parse_string (priv->gda_parser, sql, &remain, &error);
if (remain)
{
- g_warning ("REMAINS:\n%s\nfrom\n%s", remain, sql);
+ g_warning (_("REMAINS:\n%s\nfrom\n%s"), remain, sql);
}
if (error != NULL)
{
g_object_unref (stmt);
- g_warning ("Error parsing sql: %s\n%s\n",
- error->message != NULL ? error->message : "no details", sql);
+ g_warning (_("Error parsing sql: %s\n%s"),
+ error->message != NULL ? error->message : _("no details"), sql);
return -1;
}
if (error != NULL)
{
- g_warning ("Error executing command query: %s\n%s",
- error->message != NULL ? error->message : "no details", sql);
+ g_warning (_("Error executing command query: %s\n%s"),
+ error->message != NULL ? error->message : _("no details"), sql);
return -1;
}
else
{
if (priv->debug > 0)
{
- g_message ("Query executed: %s", sql);
+ g_message (_("Query executed: %s"), sql);
}
}
stmt = gda_sql_parser_parse_string (priv->gda_parser, sql, NULL, &error);
if (error != NULL)
{
- g_warning ("Error parsing sql: %s\n%s\n",
- error->message != NULL ? error->message : "no details", sql);
+ g_warning (_("Error parsing sql: %s\n%s"),
+ error->message != NULL ? error->message : _("no details"), sql);
return NULL;
}
ret = TRUE;
if (priv->debug > 0)
{
- g_message ("No transaction opened.");
+ g_message (_("No transaction opened."));
}
}
else
if (error != NULL)
{
- g_warning ("Error committing transaction: %s\n",
- error->message);
+ g_warning (_("Error committing transaction: %s"),
+ error->message != NULL ? error->message : _("no details"));
ret = FALSE;
}
else
{
if (priv->debug > 0)
{
- g_message ("Transaction committed.");
+ g_message (_("Transaction committed."));
}
}
}
ret = TRUE;
if (priv->debug > 0)
{
- g_message ("No transaction opened.");
+ g_message (_("No transaction opened."));
}
}
else
if (error != NULL)
{
- g_warning ("Error rollbacking transaction: %s\n",
- error->message);
+ g_warning (_("Error rollbacking transaction: %s"),
+ error->message != NULL ? error->message : _("no details"));
ret = FALSE;
}
else
{
if (priv->debug > 0)
{
- g_message ("Transaction rolled back.");
+ g_message (_("Transaction rolled back."));
}
}
}
regex = g_regex_new ("(^[-\\d]?\\d+)(\\d\\d\\d)", 0, 0, &error);
if (error != NULL)
{
- g_warning ("Error on creating regex: %s.",
- error->message != NULL ? error->message : "no details");
+ g_warning (_("Error on creating regex: %s"),
+ error->message != NULL ? error->message : _("no details"));
return "";
}
&error);
if (error != NULL)
{
- g_warning ("Error on regex replacing: %s.",
- error->message != NULL ? error->message : "no details");
+ g_warning (_("Error on regex replacing: %s"),
+ error->message != NULL ? error->message : _("no details"));
g_regex_unref (regex);
return "";
}