diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-02-23 10:03:37 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-02-23 10:03:37 +0200 |
commit | 337a06f32fb530e0e0884fef2f5f630cca9911a1 (patch) | |
tree | d0687ccd3e9ff527d9c5613fd052cbe0f79bb40a /src/sql.c | |
parent | 7543ff5973d1afe75b0f4226a3a02cc8d375ad3e (diff) | |
download | wydawca-337a06f32fb530e0e0884fef2f5f630cca9911a1.tar.gz wydawca-337a06f32fb530e0e0884fef2f5f630cca9911a1.tar.bz2 |
Add missing i18n markers
Diffstat (limited to 'src/sql.c')
-rw-r--r-- | src/sql.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -62,7 +62,7 @@ sql_init_method (struct access_method *method) if (!conn) { - logmsg (LOG_EMERG, "INTERNAL ERROR: cannot find SQL connection %s", + logmsg (LOG_EMERG, _("INTERNAL ERROR: cannot find SQL connection %s"), method->parmv[0]); abort (); } @@ -74,7 +74,7 @@ sql_init_method (struct access_method *method) conn->password, conn->database, conn->port, conn->socket, 0)) { - logmsg (LOG_ERR, "Failed to connect to database %s: Error: %s\n", + logmsg (LOG_ERR, _("failed to connect to database %s: error: %s\n"), method->parmv[0], mysql_error (&conn->mysql)); return 1; } @@ -125,22 +125,22 @@ sql_run_method (struct access_method *method, void *handle, const char *query) if (!query) { - logmsg (LOG_ERR, "No query supplied for method %s", "sql"); + logmsg (LOG_ERR, _("no query supplied for method %s"), "sql"); return 1; } if (mysql_query (mysql, query)) { - logmsg (LOG_ERR, "Query failed: %s", mysql_error (mysql)); - logmsg (LOG_NOTICE, "The failed query was: %s", query); + logmsg (LOG_ERR, _("query failed: %s"), mysql_error (mysql)); + logmsg (LOG_NOTICE, _("the failed query was: %s"), query); return 1; } conn->result = mysql_store_result (mysql); if (!conn->result) { - logmsg (LOG_ERR, "Cannot get result: %s", mysql_error (mysql)); - logmsg (LOG_NOTICE, "The failed query was: %s", query); + logmsg (LOG_ERR, _("cannot get result: %s"), mysql_error (mysql)); + logmsg (LOG_NOTICE, _("the failed query was: %s"), query); return 1; } @@ -148,9 +148,9 @@ sql_run_method (struct access_method *method, void *handle, const char *query) method->ncol = mysql_num_fields (conn->result); if (debug_level > 1) { - logmsg (LOG_DEBUG, "Query returned %u columns in %u rows", + logmsg (LOG_DEBUG, _("query returned %u columns in %u rows"), method->ncol, method->nrow); - logmsg (LOG_DEBUG, "The query was: %s", query); + logmsg (LOG_DEBUG, _("the query was: %s"), query); } return 0; |