From: Andrea Zagli Date: Sun, 31 Jul 2011 09:37:33 +0000 (+0200) Subject: Bugfix. X-Git-Tag: 0.4.0~12 X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=a65d5ff21cffd0ec0086a87c5fe4121af00d1d02;p=libgtkform Bugfix. Updated gettext files to reflect new directories. --- diff --git a/libgtkformui/gtkformdecoder.c b/libgtkformui/gtkformdecoder.c index 2023cf1..6c99c45 100644 --- a/libgtkformui/gtkformdecoder.c +++ b/libgtkformui/gtkformdecoder.c @@ -246,6 +246,10 @@ GtkWidget { GtkWidget *w = GTK_WIDGET (g_object_new (gtk_form_decoder_get_type (), NULL)); + bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR); + textdomain (GETTEXT_PACKAGE); + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); + return w; } @@ -315,12 +319,12 @@ gtk_form_decoder_decode (GtkFormDecoder *decoder) parser = gda_sql_parser_new (); } - error == NULL; + error = NULL; stmt = gda_sql_parser_parse_string (parser, priv->sql, NULL, &error); if (stmt == NULL) { g_warning (_("Error on parsing sql string: %s\n%s"), priv->sql, - error != NULL && error->message != NULL ? error->message : "no details"); + error != NULL && error->message != NULL ? error->message : _("no details")); } else { @@ -340,7 +344,7 @@ gtk_form_decoder_decode (GtkFormDecoder *decoder) if (!gda_holder_set_value (h, gval, &error)) { g_warning (_("Error on setting holder's value: %s"), - error != NULL && error->message != NULL ? error->message : "no details"); + error != NULL && error->message != NULL ? error->message : _("no details")); } } hs = g_slist_next (hs); @@ -354,7 +358,7 @@ gtk_form_decoder_decode (GtkFormDecoder *decoder) if (res == NULL) { g_warning (_("Error on executing decoding: %s"), - error != NULL && error->message != NULL ? error->message : "no details"); + error != NULL && error->message != NULL ? error->message : _("no details")); } else if (GDA_IS_DATA_MODEL (res) && gda_data_model_get_n_rows ((GdaDataModel *)res) == 1) { diff --git a/po/POTFILES.in b/po/POTFILES.in index b403784..dc38273 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -1,17 +1,17 @@ # List of source files which contain translatable strings. -src/fieldboolean.c -src/field.c -src/fielddatetime.c -src/fieldfloat.c -src/fieldinteger.c -src/fieldtext.c -src/form.c -src/key.c -src/widget.c -src/widgetcheck.c -src/widgetcombobox.c -src/widgetentry.c -src/widgetlabel.c -src/widgetspin.c -src/widgettextview.c -ui/gtkformdecoder.c +libgtkform/fieldboolean.c +libgtkform/field.c +libgtkform/fielddatetime.c +libgtkform/fieldfloat.c +libgtkform/fieldinteger.c +libgtkform/fieldtext.c +libgtkform/form.c +libgtkform/key.c +libgtkform/widget.c +libgtkform/widgetcheck.c +libgtkform/widgetcombobox.c +libgtkform/widgetentry.c +libgtkform/widgetlabel.c +libgtkform/widgetspin.c +libgtkform/widgettextview.c +libgtkformui/gtkformdecoder.c diff --git a/po/it.po b/po/it.po index fb15965..dd07755 100644 --- a/po/it.po +++ b/po/it.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: 0.1.0\n" "Report-Msgid-Bugs-To: Andrea Zagli \n" -"POT-Creation-Date: 2011-06-19 08:57+0200\n" +"POT-Creation-Date: 2011-07-31 11:33+0200\n" "PO-Revision-Date: 2011-06-19 09:52+0200\n" "Last-Translator: Andrea Zagli \n" "Language-Team: Italian <>\n" @@ -17,109 +17,111 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" -#: ../src/fieldboolean.c:342 ../src/fieldboolean.c:396 -#: ../src/fielddatetime.c:574 ../src/fielddatetime.c:630 -#: ../src/fieldfloat.c:458 +#: ../libgtkform/fieldboolean.c:342 ../libgtkform/fieldboolean.c:396 +#: ../libgtkform/fielddatetime.c:574 ../libgtkform/fielddatetime.c:630 +#: ../libgtkform/fieldfloat.c:458 msgid "GtkFormField hasn't a field name." msgstr "GtkFormField non ha un nome di campo." -#: ../src/fielddatetime.c:991 +#: ../libgtkform/fielddatetime.c:991 #, c-format msgid "GtkFormFieldDateTimeType not supported: %d." msgstr "GtkFormFieldDateTimeType non supportato: %d." -#: ../src/form.c:203 +#: ../libgtkform/form.c:203 msgid "Modules not supported by this operating system." msgstr "Moduli non supportati da questo sistema operativo." -#: ../src/form.c:276 +#: ../libgtkform/form.c:276 #, c-format msgid "Error on writing on log file: %s" msgstr "Errore nella scrittura sul file di registro: %s" -#: ../src/form.c:310 +#: ../libgtkform/form.c:310 #, c-format msgid "Error on opening log file: %s." msgstr "Errore durante l'apertura del file di registro: %s." -#: ../src/form.c:573 +#: ../libgtkform/form.c:573 #, c-format msgid "Error on loading GtkBuilder file: %s\n" msgstr "Errore durante il caricamento del file GtkBuilder: %s\n" -#: ../src/form.c:643 +#: ../libgtkform/form.c:643 #, c-format msgid "Unknown type «%s»." msgstr "Tipo «%s» sconosciuto." -#: ../src/form.c:675 +#: ../libgtkform/form.c:675 #, c-format msgid "Label «%s» not found." msgstr "Etichetta «%s» non trovata." -#: ../src/form.c:883 +#: ../libgtkform/form.c:883 #, c-format msgid "Field of type «%s» not found." msgstr "Campo di tipo «%s» non trovato." -#: ../src/form.c:909 +#: ../libgtkform/form.c:909 #, c-format msgid "Widget of type «%s» not found." msgstr "Widget di tipo «%s» non trovato." #. TO DO -#: ../src/form.c:927 +#: ../libgtkform/form.c:927 msgid "The file is not a valid gtkform definition file." msgstr "Il file non è un file di definizione di gtkform valido." -#: ../src/form.c:1431 ../src/form.c:1716 ../src/form.c:1792 ../src/form.c:1833 +#: ../libgtkform/form.c:1431 ../libgtkform/form.c:1716 +#: ../libgtkform/form.c:1792 ../libgtkform/form.c:1833 #, c-format msgid "Object «%s» not found." msgstr "Oggetto «%s» non trovato." -#: ../src/form.c:1541 ../src/form.c:1567 +#: ../libgtkform/form.c:1541 ../libgtkform/form.c:1567 msgid " is obligatory" msgstr " è obbligatorio" -#: ../src/form.c:1541 +#: ../libgtkform/form.c:1541 msgid " isn't valid" msgstr " non è valido" -#: ../src/form.c:1614 +#: ../libgtkform/form.c:1614 #, c-format msgid "Field «%s» is changed." msgstr "Il campo «%s» è cambiato." -#: ../src/form.c:2721 +#: ../libgtkform/form.c:2721 #, c-format msgid "The field «%s»%s." msgstr "Il campo «%s»%s." -#: ../src/form.c:2779 +#: ../libgtkform/form.c:2781 #, c-format msgid "Loaded %s." msgstr "Caricato «%s»." -#: ../src/form.c:2783 +#: ../libgtkform/form.c:2786 #, c-format msgid "Unable to load %s: %s." msgstr "Impossibile caricare %s: %s." -#: ../src/form.c:2791 +#: ../libgtkform/form.c:2794 #, c-format msgid "Unable to open modules dir: %s." msgstr "Impossibile aprire la directory dei moduli: %s." -#: ../src/form.c:2791 +#: ../libgtkform/form.c:2794 ../libgtkformui/gtkformdecoder.c:323 +#: ../libgtkformui/gtkformdecoder.c:343 ../libgtkformui/gtkformdecoder.c:357 msgid "no details" msgstr "nessun dettaglio" -#: ../src/widget.c:181 +#: ../libgtkform/widget.c:181 #, c-format msgid "Widget «%s» not found." msgstr "Widget «%s» non trovato." -#: ../src/widget.c:330 +#: ../libgtkform/widget.c:330 #, c-format msgid "" "Error on parsing sql string: %s\n" @@ -128,29 +130,29 @@ msgstr "" "Errore nell'analisi della stringa sql: %s\n" "%s." -#: ../src/widget.c:350 +#: ../libgtkform/widget.c:350 #, c-format msgid "Error on setting holder's value: %s." msgstr "Errore nell'impostazione del valore dell'holder: %s." -#: ../src/widget.c:365 +#: ../libgtkform/widget.c:365 #, c-format msgid "Error on executing GtkFormWidgetOnChangeOp: %s." msgstr "Errore nell'esecuzione di GtkFormWidgetOnChangeOp: %s." -#: ../src/widget.c:383 +#: ../libgtkform/widget.c:383 msgid "No GdaEx object inside GtkFormWidget." msgstr "Nessun oggetto GdaEx all'interno di GtkFormWidget." -#: ../ui/gtkformdecoder.c:213 +#: ../libgtkformui/gtkformdecoder.c:213 msgid "Open" msgstr "Apri" -#: ../ui/gtkformdecoder.c:224 +#: ../libgtkformui/gtkformdecoder.c:224 msgid "Find" msgstr "Trova" -#: ../ui/gtkformdecoder.c:322 +#: ../libgtkformui/gtkformdecoder.c:322 #, c-format msgid "" "Error on parsing sql string: %s\n" @@ -159,16 +161,16 @@ msgstr "" "Errore nell'analisi della stringa sql: %s\n" "%s" -#: ../ui/gtkformdecoder.c:342 +#: ../libgtkformui/gtkformdecoder.c:342 #, c-format msgid "Error on setting holder's value: %s" msgstr "Errore nell'impostazione del valore dell'holder: %s" -#: ../ui/gtkformdecoder.c:356 +#: ../libgtkformui/gtkformdecoder.c:356 #, c-format msgid "Error on executing decoding: %s" msgstr "Errore nell'esecuzione di GtkFormWidgetOnChangeOp: %s" -#: ../ui/gtkformdecoder.c:372 +#: ../libgtkformui/gtkformdecoder.c:372 msgid "No GdaEx object inside GtkFormDecoder." msgstr "Nessun oggetto GdaEx all'interno di GtkFormDecoder."