From: Andrea Zagli Date: Tue, 5 May 2015 10:06:18 +0000 (+0200) Subject: Gettextized. X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=a58a6055a5d0dfc4b0c5eee6c9b488ea9b47eb97;p=zakaudit%2Flibzakaudit Gettextized. --- diff --git a/.gitignore b/.gitignore index 0b5e80f..d00d441 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ aclocal.m4 autom4te.cache config.guess config.h +config.h.in *~ *.log *.status @@ -34,3 +35,18 @@ docs/reference/xml test1 *.exe libzakaudit*tar* +po/Makefile.in.in +po/POTFILES +ABOUT-NLS +config.rpath +po/ChangeLog +po/Makevars.template +po/Rules-quot +po/boldquot.sed +po/en@boldquot.header +po/en@quot.header +po/insert-header.sin +po/*.gmo +po/quot.sed +po/remove-potcdate.sin +po/stamp-it diff --git a/ChangeLog b/ChangeLog index e69de29..c842167 100644 --- a/ChangeLog +++ b/ChangeLog @@ -0,0 +1,9 @@ +2015-05-05 gettextize + + * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.19.4. + +2015-05-05 gettextize + + * Makefile.am (ACLOCAL_AMFLAGS): New variable. + (EXTRA_DIST): Add config.rpath, m4/ChangeLog. + diff --git a/Makefile.am b/Makefile.am index 8b59e1b..06e7c4c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,8 @@ -SUBDIRS = src data docs tests +SUBDIRS = po src data docs tests -EXTRA_DIST = \ +ACLOCAL_AMFLAGS = -I m4 + +EXTRA_DIST = config.rpath m4/ChangeLog \ libzakaudit.pc.in pkgconfigdir = $(libdir)/pkgconfig @@ -32,3 +34,5 @@ ChangeLog: fi .PHONY: ChangeLog + +ACLOCAL_AMFLAGS = -I m4 diff --git a/config.h.in b/config.h.in deleted file mode 100644 index f0b4c2e..0000000 --- a/config.h.in +++ /dev/null @@ -1,67 +0,0 @@ -/* config.h.in. Generated from configure.ac by autoheader. */ - -/* Define to 1 if you have the header file. */ -#undef HAVE_DLFCN_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_INTTYPES_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_MEMORY_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_STDINT_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_STDLIB_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_STRINGS_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_STRING_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_STAT_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_TYPES_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_UNISTD_H - -/* Define to the sub-directory where libtool stores uninstalled libraries. */ -#undef LT_OBJDIR - -/* Name of package */ -#undef PACKAGE - -/* Define to the address where bug reports for this package should be sent. */ -#undef PACKAGE_BUGREPORT - -/* Define to the full name of this package. */ -#undef PACKAGE_NAME - -/* Define to the full name and version of this package. */ -#undef PACKAGE_STRING - -/* Define to the one symbol short name of this package. */ -#undef PACKAGE_TARNAME - -/* Define to the home page for this package. */ -#undef PACKAGE_URL - -/* Define to the version of this package. */ -#undef PACKAGE_VERSION - -/* Define to 1 if you have the ANSI C header files. */ -#undef STDC_HEADERS - -/* Define to 1 if your declares `struct tm'. */ -#undef TM_IN_SYS_TIME - -/* Version number of package */ -#undef VERSION - -/* Define to empty if `const' does not conform to ANSI C. */ -#undef const diff --git a/configure.ac b/configure.ac index 220fc95..513fb3a 100644 --- a/configure.ac +++ b/configure.ac @@ -12,13 +12,29 @@ m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) AM_MAINTAINER_MODE +AC_CONFIG_MACRO_DIR([m4]) + AC_CANONICAL_SYSTEM + +LT_INIT + AC_LIBTOOL_WIN32_DLL # Checks for programs. AC_PROG_CC AC_PROG_LIBTOOL +IT_PROG_INTLTOOL + +dnl ****************************** +dnl Translations +dnl ****************************** +GETTEXT_PACKAGE=libzakaudit +AC_SUBST(GETTEXT_PACKAGE) +AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", + [The prefix for our gettext translation domains.]) +AM_GLIB_GNU_GETTEXT + # Checks for libraries. dnl Check for pkgconfig first @@ -66,6 +82,7 @@ AC_CONFIG_FILES([ data/libzakaudit/gui/Makefile docs/Makefile docs/sql/Makefile + po/Makefile.in tests/Makefile ]) diff --git a/po/LINGUAS b/po/LINGUAS new file mode 100644 index 0000000..7d5856f --- /dev/null +++ b/po/LINGUAS @@ -0,0 +1 @@ +it diff --git a/po/Makevars b/po/Makevars new file mode 100644 index 0000000..0648ec7 --- /dev/null +++ b/po/Makevars @@ -0,0 +1,78 @@ +# Makefile variables for PO directory in any package using GNU gettext. + +# Usually the message domain is the same as the package name. +DOMAIN = $(PACKAGE) + +# These two variables depend on the location of this directory. +subdir = po +top_builddir = .. + +# These options get passed to xgettext. +XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ + +# This is the copyright holder that gets inserted into the header of the +# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding +# package. (Note that the msgstr strings, extracted from the package's +# sources, belong to the copyright holder of the package.) Translators are +# expected to transfer the copyright for their translations to this person +# or entity, or to disclaim their copyright. The empty string stands for +# the public domain; in this case the translators are expected to disclaim +# their copyright. +COPYRIGHT_HOLDER = Free Software Foundation, Inc. + +# This tells whether or not to prepend "GNU " prefix to the package +# name that gets inserted into the header of the $(DOMAIN).pot file. +# Possible values are "yes", "no", or empty. If it is empty, try to +# detect it automatically by scanning the files in $(top_srcdir) for +# "GNU packagename" string. +PACKAGE_GNU = + +# This is the email address or URL to which the translators shall report +# bugs in the untranslated strings: +# - Strings which are not entire sentences, see the maintainer guidelines +# in the GNU gettext documentation, section 'Preparing Strings'. +# - Strings which use unclear terms or require additional context to be +# understood. +# - Strings which make invalid assumptions about notation of date, time or +# money. +# - Pluralisation problems. +# - Incorrect English spelling. +# - Incorrect formatting. +# It can be your email address, or a mailing list address where translators +# can write to without being subscribed, or the URL of a web page through +# which the translators can contact you. +MSGID_BUGS_ADDRESS = + +# This is the list of locale categories, beyond LC_MESSAGES, for which the +# message catalogs shall be used. It is usually empty. +EXTRA_LOCALE_CATEGORIES = + +# This tells whether the $(DOMAIN).pot file contains messages with an 'msgctxt' +# context. Possible values are "yes" and "no". Set this to yes if the +# package uses functions taking also a message context, like pgettext(), or +# if in $(XGETTEXT_OPTIONS) you define keywords with a context argument. +USE_MSGCTXT = no + +# These options get passed to msgmerge. +# Useful options are in particular: +# --previous to keep previous msgids of translated messages, +# --quiet to reduce the verbosity. +MSGMERGE_OPTIONS = + +# These options get passed to msginit. +# If you want to disable line wrapping when writing PO files, add +# --no-wrap to MSGMERGE_OPTIONS, XGETTEXT_OPTIONS, and +# MSGINIT_OPTIONS. +MSGINIT_OPTIONS = + +# This tells whether or not to regenerate a PO file when $(DOMAIN).pot +# has changed. Possible values are "yes" and "no". Set this to no if +# the POT file is checked in the repository and the version control +# program ignores timestamps. +PO_DEPENDS_ON_POT = yes + +# This tells whether or not to forcibly update $(DOMAIN).pot and +# regenerate PO files on "make dist". Possible values are "yes" and +# "no". Set this to no if the POT file and PO files are maintained +# externally. +DIST_DEPENDS_ON_UPDATE_PO = yes diff --git a/po/POTFILES.in b/po/POTFILES.in new file mode 100644 index 0000000..bf65a38 --- /dev/null +++ b/po/POTFILES.in @@ -0,0 +1,3 @@ +# List of source files which contain translatable strings. +src/audit.c +data/libzakaudit/gui/libzakaudit.ui \ No newline at end of file diff --git a/po/it.po b/po/it.po new file mode 100644 index 0000000..781b535 --- /dev/null +++ b/po/it.po @@ -0,0 +1,115 @@ +# 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 , 2015. +# +msgid "" +msgstr "" +"Project-Id-Version: 0.5.0\n" +"Report-Msgid-Bugs-To: Andrea Zagli \n" +"POT-Creation-Date: 2015-05-05 11:14+0200\n" +"PO-Revision-Date: 2015-05-05 11:14+0200\n" +"Last-Translator: Andrea Zagli \n" +"Language-Team: Italian \n" +"Language: it\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" + +#: ../src/audit.c:260 +#, c-format +msgid "The table «%s» doesn't exist on db." +msgstr "La tabella «%s» non esiste nel db." + +#: ../src/audit.c:271 ../src/audit.c:279 +#, c-format +msgid "For table «%s» fields have not been configured." +msgstr "Per la tabella «%s» i campi non sono stati configurati" + +#: ../src/audit.c:295 +#, c-format +msgid "The field «%s» doesn't exists on table «%s»." +msgstr "Il campo «%s» non esiste nella tabella «%s»." + +#: ../src/audit.c:345 ../src/audit.c:353 +#, c-format +msgid "For datasource «%d» tables have not been configured." +msgstr "Per la sorgente dati «%d» le tabelle non sono state configurate" + +#: ../src/audit.c:427 +msgid "There are no datasources configured." +msgstr "Non ci sono sorgenti dati configurate." + +#: ../src/audit.c:572 +#, c-format +msgid "Unable to find the field «%s» on loaded fields." +msgstr "Impossibile trovare il campo «%s» nei campi caricati." + +#. TODO +#: ../src/audit.c:706 ../src/audit.c:746 +msgid "Error creating GdaEx object." +msgstr "Errore nella creazione dell'oggetto GdaEx." + +#. TODO +#: ../src/audit.c:716 ../src/audit.c:756 +msgid "Error loading datasources." +msgstr "Errore nel caricamento delle sorgenti dati." + +#: ../src/audit.c:947 ../src/audit.c:1234 ../src/audit.c:1966 +#, c-format +msgid "Unable to find the datasource «%s» on loaded datasources." +msgstr "" +"Impossibile trovare la sorgente dati «%s» nelle sorgenti dati caricate." + +#: ../src/audit.c:956 ../src/audit.c:1246 +#, c-format +msgid "Unable to find the table «%s» on loaded tables." +msgstr "Impossibile trovare la tabella «%s» nelle tabelle caricate." + +#: ../src/audit.c:1076 ../src/audit.c:1356 +msgid "You must call before an action of type ZAK_AUDIT_ACTION_AFTER_UPDATE." +msgstr "" +"Occorre prima chiamare un'azione di tipo ZAK_AUDIT_ACTION_AFTER_UPDATE." + +#: ../src/audit.c:1259 +msgid "Parser NULL" +msgstr "Parser NULL" + +#: ../src/audit.c:1270 +msgid "GdaStatement NULL" +msgstr "GdaStatement NULL" + +#: ../src/audit.c:1277 ../src/audit.c:1451 +msgid "Error on getting GdaSqlStatement." +msgstr "Errore nell'ottenere il GdaSqlStatement." + +#: ../src/audit.c:1535 +#, c-format +msgid "GdaSqlStatementType %d not supported." +msgstr "GdaSqlStatementType %d non supportato." + +#: ../src/audit.c:1664 +msgid "ID" +msgstr "ID" + +#: ../src/audit.c:1672 +msgid "Date" +msgstr "Data" + +#: ../src/audit.c:1680 +msgid "Operation" +msgstr "Operazione" + +#: ../src/audit.c:1688 +msgid "User" +msgstr "Utente" + +#: ../src/audit.c:1725 +#, c-format +msgid "Fields not found for table <%s>." +msgstr "Campi non trovati per la tabella <%s>." + +#: ../src/audit.c:1829 +msgid "The function is still to be implemented" +msgstr "La funzione deve ancora essere implementata." diff --git a/src/Makefile.am b/src/Makefile.am index b01b64d..ce6ea31 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -2,6 +2,7 @@ guidir = $(datadir)/$(PACKAGE)/gui AM_CPPFLAGS = $(WARN_CFLAGS) \ $(DISABLE_DEPRECATED_CFLAGS) \ + -DLOCALEDIR=\"$(localedir)\" \ -DGUIDIR=\""$(guidir)"\" \ -DG_LOG_DOMAIN=\"ZakAudit\" \ $(LIBZAKAUDIT_CFLAGS) diff --git a/src/audit.c b/src/audit.c index c4f2fae..71f9041 100644 --- a/src/audit.c +++ b/src/audit.c @@ -3,7 +3,7 @@ * * Copyright (C) 2005-2015 Andrea Zagli * - * This file is part of libzak_audit. + * This file is part of libzakaudit. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -26,7 +26,7 @@ #include -#include +#include #ifdef G_OS_WIN32 #include @@ -190,6 +190,8 @@ static ZakAudit ZakAudit *zak_audit; ZakAuditPrivate *priv; + gchar *localedir; + zak_audit = ZAK_AUDIT (g_object_new (zak_audit_get_type (), NULL)); priv = ZAK_AUDIT_GET_PRIVATE (zak_audit); @@ -208,18 +210,27 @@ static ZakAudit || g_ascii_strcasecmp (p + 1, ".libs") == 0)) { priv->guidir = g_strdup (GUIDIR); + localedir = g_strdup (LOCALEDIR); } else { priv->guidir = g_build_filename (moddir, "share", PACKAGE, "gui", NULL); + localedir = g_build_filename (moddir, "share", "locale", NULL); } #else priv->guidir = g_strdup (GUIDIR); + localedir = g_strdup (LOCALEDIR); #endif + bindtextdomain (GETTEXT_PACKAGE, localedir); + textdomain (GETTEXT_PACKAGE); + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); + + g_free (localedir); + priv->guifile = g_build_filename (priv->guidir, "libzakaudit.ui", NULL); priv->gtkbuilder = gtk_builder_new (); @@ -248,7 +259,7 @@ load_fields (ZakAudit *zak_audit, g_free (sql); if (dm_table == NULL) { - g_warning ("The table «%s» doesn't exist on db.", table->name); + g_warning (_("The table «%s» doesn't exist on db."), table->name); return FALSE; } @@ -259,7 +270,7 @@ load_fields (ZakAudit *zak_audit, g_free (sql); if (dm == NULL) { - g_warning ("For table «%s» fields have not been configured.", + g_warning (_("For table «%s» fields have not been configured."), table->name); return FALSE; } @@ -267,7 +278,7 @@ load_fields (ZakAudit *zak_audit, rows = gda_data_model_get_n_rows (dm); if (rows == 0) { - g_warning ("For table «%s» fields have not been configured.", + g_warning (_("For table «%s» fields have not been configured."), table->name); g_object_unref (dm); return FALSE; @@ -283,7 +294,7 @@ load_fields (ZakAudit *zak_audit, if (gda_data_model_get_column_index (dm_table, field->name) < 0) { - g_warning ("The field «%s» doesn't exists on table «%s».", + g_warning (_("The field «%s» doesn't exists on table «%s»."), field->name, table->name); g_object_unref (dm); return FALSE; @@ -333,7 +344,7 @@ load_tables (ZakAudit *zak_audit, g_free (sql); if (dm == NULL) { - g_warning ("For datasource «%d» tables have not been configured.", + g_warning (_("For datasource «%d» tables have not been configured."), datasource->id); return FALSE; } @@ -341,7 +352,7 @@ load_tables (ZakAudit *zak_audit, rows = gda_data_model_get_n_rows (dm); if (rows < 1) { - g_warning ("For datasource «%d» tables have not been configured.", + g_warning (_("For datasource «%d» tables have not been configured."), datasource->id); g_object_unref (dm); return FALSE; @@ -415,7 +426,7 @@ load_datasources (ZakAudit *zak_audit, va_list ap) g_free (sql); if (dm == NULL) { - g_warning ("There are no datasources configured."); + g_warning (_("There are no datasources configured.")); return FALSE; } @@ -560,7 +571,7 @@ insert_value (ZakAudit *zak_audit, Field *field = get_field_from_name (zak_audit, table, field_name); if (field == NULL) { - g_warning ("Unable to find the field «%s» on loaded fields.", + g_warning (_("Unable to find the field «%s» on loaded fields."), field_name); } else @@ -694,7 +705,7 @@ ZakAudit if (priv->gdaex == NULL) { /* TODO */ - g_warning ("Error creating GdaEx object."); + g_warning (_("Error creating GdaEx object.")); return NULL; } @@ -704,7 +715,7 @@ ZakAudit if (!load_datasources (zak_audit, ap)) { /* TODO */ - g_warning ("Error loading datasources."); + g_warning (_("Error loading datasources.")); return NULL; } @@ -734,7 +745,7 @@ ZakAudit if (priv->gdaex == NULL) { /* TODO */ - g_warning ("Error creating GdaEx object."); + g_warning (_("Error creating GdaEx object.")); return NULL; } @@ -744,7 +755,7 @@ ZakAudit if (!load_datasources (zak_audit, ap)) { /* TODO */ - g_warning ("Error loading datasources."); + g_warning (_("Error loading datasources.")); return NULL; } @@ -935,7 +946,7 @@ zak_audit_action_v (ZakAudit *zak_audit, datasource = get_datasource_from_name (zak_audit, datasource_name); if (datasource == NULL) { - g_warning ("Unable to find the datasource «%s» on loaded datasources.", + g_warning (_("Unable to find the datasource «%s» on loaded datasources."), datasource_name); return FALSE; } @@ -944,7 +955,7 @@ zak_audit_action_v (ZakAudit *zak_audit, table = get_table_from_name (zak_audit, datasource, table_name); if (table == NULL) { - g_warning ("Unable to find the table «%s» on loaded tables.", + g_warning (_("Unable to find the table «%s» on loaded tables."), table_name); return FALSE; } @@ -1064,7 +1075,7 @@ zak_audit_action_v (ZakAudit *zak_audit, case ZAK_AUDIT_ACTION_AFTER_UPDATE: if (priv->fields_updated == NULL) { - g_warning ("You must call before an action of type ZAK_AUDIT_ACTION_AFTER_UPDATE."); + g_warning (_("You must call before an action of type ZAK_AUDIT_ACTION_AFTER_UPDATE.")); return FALSE; } @@ -1222,7 +1233,7 @@ zak_audit_action_from_where (ZakAudit *zak_audit, datasource = get_datasource_from_name (zak_audit, datasource_name); if (datasource == NULL) { - g_warning ("Unable to find the datasource «%s» on loaded datasources.", + g_warning (_("Unable to find the datasource «%s» on loaded datasources."), datasource_name); return FALSE; } @@ -1234,7 +1245,7 @@ zak_audit_action_from_where (ZakAudit *zak_audit, table = get_table_from_name (zak_audit, datasource, table_name); if (table == NULL) { - g_warning ("Unable to find the table «%s» on loaded tables.", + g_warning (_("Unable to find the table «%s» on loaded tables."), table_name); return FALSE; } @@ -1247,7 +1258,7 @@ zak_audit_action_from_where (ZakAudit *zak_audit, parser = gda_connection_create_parser (conn); if (parser == NULL) { - g_warning ("Parser NULL"); + g_warning (_("Parser NULL")); return FALSE; } @@ -1258,14 +1269,14 @@ zak_audit_action_from_where (ZakAudit *zak_audit, g_free (tmp); if (stmt == NULL) { - g_warning ("GdaStatement NULL"); + g_warning (_("GdaStatement NULL")); return FALSE; } g_object_get (stmt, "structure", &sql_stmt, NULL); if (sql_stmt == NULL) { - g_warning ("Error on getting GdaSqlStatement."); + g_warning (_("Error on getting GdaSqlStatement.")); return FALSE; } stmt_select = (GdaSqlStatementSelect *)sql_stmt->contents; @@ -1344,7 +1355,7 @@ zak_audit_action_from_where (ZakAudit *zak_audit, case ZAK_AUDIT_ACTION_AFTER_UPDATE: if (priv->records_updated == NULL) { - g_warning ("You must call before an action of type ZAK_AUDIT_ACTION_AFTER_UPDATE."); + g_warning (_("You must call before an action of type ZAK_AUDIT_ACTION_AFTER_UPDATE.")); return FALSE; } @@ -1439,7 +1450,7 @@ zak_audit_action_from_gdastatement (ZakAudit *zak_audit, g_object_get (gda_statement, "structure", &sql_stmt, NULL); if (sql_stmt == NULL) { - g_warning ("Error on getting GdaSqlStatement."); + g_warning (_("Error on getting GdaSqlStatement.")); return ret; } @@ -1523,7 +1534,7 @@ zak_audit_action_from_gdastatement (ZakAudit *zak_audit, } default: - g_warning ("GdaSqlStatementType %d not supported.", sql_stmt->stmt_type); + g_warning (_("GdaSqlStatementType %d not supported."), sql_stmt->stmt_type); return ret; } @@ -1652,7 +1663,7 @@ GtkWidget gtk_cell_renderer_set_alignment (renderer, 1.0, 0.5); vcolumn = gtk_tree_view_column_new (); gtk_tree_view_column_pack_start (vcolumn, renderer, TRUE); - gtk_tree_view_column_set_title (vcolumn, "ID"); + gtk_tree_view_column_set_title (vcolumn, _("ID")); gtk_tree_view_column_add_attribute (vcolumn, renderer, "text", COL_CHANGES_ID); gtk_tree_view_append_column (tview, vcolumn); @@ -1660,7 +1671,7 @@ GtkWidget renderer = gtk_cell_renderer_text_new (); vcolumn = gtk_tree_view_column_new (); gtk_tree_view_column_pack_start (vcolumn, renderer, TRUE); - gtk_tree_view_column_set_title (vcolumn, "Date"); + gtk_tree_view_column_set_title (vcolumn, _("Date")); gtk_tree_view_column_add_attribute (vcolumn, renderer, "text", COL_CHANGES_DATE); gtk_tree_view_append_column (tview, vcolumn); @@ -1668,7 +1679,7 @@ GtkWidget renderer = gtk_cell_renderer_text_new (); vcolumn = gtk_tree_view_column_new (); gtk_tree_view_column_pack_start (vcolumn, renderer, TRUE); - gtk_tree_view_column_set_title (vcolumn, "Operation"); + gtk_tree_view_column_set_title (vcolumn, _("Operation")); gtk_tree_view_column_add_attribute (vcolumn, renderer, "text", COL_CHANGES_OPERATION); gtk_tree_view_append_column (tview, vcolumn); @@ -1676,7 +1687,7 @@ GtkWidget renderer = gtk_cell_renderer_text_new (); vcolumn = gtk_tree_view_column_new (); gtk_tree_view_column_pack_start (vcolumn, renderer, TRUE); - gtk_tree_view_column_set_title (vcolumn, "User"); + gtk_tree_view_column_set_title (vcolumn, _("User")); gtk_tree_view_column_add_attribute (vcolumn, renderer, "text", COL_CHANGES_USER); gtk_tree_view_append_column (tview, vcolumn); @@ -1713,7 +1724,7 @@ GtkWidget { g_object_unref (dm); } - g_warning ("Fields not found for table <%s>.", table->name); + g_warning (_("Fields not found for table <%s>."), table->name); return NULL; } if (dm != NULL) @@ -1817,7 +1828,7 @@ GtkWidget g_object_unref (dm); } - g_warning ("The function is still to be implemented"); + g_warning (_("The function is still to be implemented")); return ret; } @@ -1954,7 +1965,7 @@ zak_audit_get_record_at (ZakAudit *zak_audit, datasource = get_datasource_from_name (zak_audit, datasource_name); if (datasource == NULL) { - g_warning ("Unable to find the datasource «%s» on loaded datasources.", + g_warning (_("Unable to find the datasource «%s» on loaded datasources."), datasource_name); return FALSE; } diff --git a/tests/test1.c b/tests/test1.c index 0a89dd9..d43a923 100644 --- a/tests/test1.c +++ b/tests/test1.c @@ -3,7 +3,7 @@ * * Copyright (C) 2005-2015 Andrea Zagli * - * This file is part of libaudit. + * This file is part of libzakaudit. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by