Added missing NLS markers.
Showing
1 changed file
with
14 additions
and
15 deletions
1 | /* GNU Mailutils -- a suite of utilities for electronic mail | 1 | /* GNU Mailutils -- a suite of utilities for electronic mail |
2 | Copyright (C) 2002 Free Software Foundation, Inc. | 2 | Copyright (C) 2002, 2003 Free Software Foundation, Inc. |
3 | 3 | ||
4 | GNU Mailutils is free software; you can redistribute it and/or modify | 4 | GNU Mailutils is free software; you can redistribute it and/or modify |
5 | it under the terms of the GNU Lesser General Public License as published by | 5 | it under the terms of the GNU Lesser General Public License as published by |
... | @@ -13,8 +13,7 @@ | ... | @@ -13,8 +13,7 @@ |
13 | 13 | ||
14 | You should have received a copy of the GNU Lesser General Public License | 14 | You should have received a copy of the GNU Lesser General Public License |
15 | along with GNU Mailutils; if not, write to the Free Software | 15 | along with GNU Mailutils; if not, write to the Free Software |
16 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ | 16 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ |
17 | |||
18 | 17 | ||
19 | #ifdef HAVE_CONFIG_H | 18 | #ifdef HAVE_CONFIG_H |
20 | # include <config.h> | 19 | # include <config.h> |
... | @@ -158,7 +157,7 @@ mu_auth_sql_by_name (void *return_data, void *key, | ... | @@ -158,7 +157,7 @@ mu_auth_sql_by_name (void *return_data, void *key, |
158 | if (!mysql_real_connect (m, sql_host, sql_user, sql_passwd, sql_db, sql_port, | 157 | if (!mysql_real_connect (m, sql_host, sql_user, sql_passwd, sql_db, sql_port, |
159 | sql_socket, MFLAGS)) | 158 | sql_socket, MFLAGS)) |
160 | { | 159 | { |
161 | mu_error ("MySQL: connect failed: %s", mysql_error (m)); | 160 | mu_error (_("MySQL: connect failed: %s"), mysql_error (m)); |
162 | mysql_close (m); | 161 | mysql_close (m); |
163 | return 1; | 162 | return 1; |
164 | } | 163 | } |
... | @@ -173,7 +172,7 @@ mu_auth_sql_by_name (void *return_data, void *key, | ... | @@ -173,7 +172,7 @@ mu_auth_sql_by_name (void *return_data, void *key, |
173 | 172 | ||
174 | if (mysql_query (m, query_str) != 0) | 173 | if (mysql_query (m, query_str) != 0) |
175 | { | 174 | { |
176 | mu_error ("MySQL: query failed: %s", mysql_error (m)); | 175 | mu_error (_("MySQL: query failed: %s"), mysql_error (m)); |
177 | free (query_str); | 176 | free (query_str); |
178 | mysql_close (m); | 177 | mysql_close (m); |
179 | return 1; | 178 | return 1; |
... | @@ -183,14 +182,14 @@ mu_auth_sql_by_name (void *return_data, void *key, | ... | @@ -183,14 +182,14 @@ mu_auth_sql_by_name (void *return_data, void *key, |
183 | 182 | ||
184 | if ((res = mysql_store_result (m)) == NULL) | 183 | if ((res = mysql_store_result (m)) == NULL) |
185 | { | 184 | { |
186 | mu_error ("MySQL: can't store result: %s", mysql_error (m)); | 185 | mu_error (_("MySQL: can't store result: %s"), mysql_error (m)); |
187 | mysql_close (m); | 186 | mysql_close (m); |
188 | return 1; | 187 | return 1; |
189 | } | 188 | } |
190 | 189 | ||
191 | if ((row = mysql_fetch_row (res)) == NULL) | 190 | if ((row = mysql_fetch_row (res)) == NULL) |
192 | { | 191 | { |
193 | mu_error ("MySQL: can't fetch row: %s", mysql_error (m)); | 192 | mu_error (_("MySQL: can't fetch row: %s"), mysql_error (m)); |
194 | mysql_close (m); | 193 | mysql_close (m); |
195 | return 1; | 194 | return 1; |
196 | } | 195 | } |
... | @@ -252,7 +251,7 @@ mu_auth_sql_by_uid (void *return_data, void *key, | ... | @@ -252,7 +251,7 @@ mu_auth_sql_by_uid (void *return_data, void *key, |
252 | if (!mysql_real_connect (m, sql_host, sql_user, sql_passwd, sql_db, sql_port, | 251 | if (!mysql_real_connect (m, sql_host, sql_user, sql_passwd, sql_db, sql_port, |
253 | sql_socket, MFLAGS)) | 252 | sql_socket, MFLAGS)) |
254 | { | 253 | { |
255 | mu_error ("MySQL: connect failed: %s", mysql_error (m)); | 254 | mu_error (_("MySQL: connect failed: %s"), mysql_error (m)); |
256 | mysql_close (m); | 255 | mysql_close (m); |
257 | return 1; | 256 | return 1; |
258 | } | 257 | } |
... | @@ -268,7 +267,7 @@ mu_auth_sql_by_uid (void *return_data, void *key, | ... | @@ -268,7 +267,7 @@ mu_auth_sql_by_uid (void *return_data, void *key, |
268 | 267 | ||
269 | if (mysql_query (m, query_str) != 0) | 268 | if (mysql_query (m, query_str) != 0) |
270 | { | 269 | { |
271 | mu_error ("MySQL: query failed: %s", mysql_error (m)); | 270 | mu_error (_("MySQL: query failed: %s"), mysql_error (m)); |
272 | free (query_str); | 271 | free (query_str); |
273 | mysql_close (m); | 272 | mysql_close (m); |
274 | return 1; | 273 | return 1; |
... | @@ -278,14 +277,14 @@ mu_auth_sql_by_uid (void *return_data, void *key, | ... | @@ -278,14 +277,14 @@ mu_auth_sql_by_uid (void *return_data, void *key, |
278 | 277 | ||
279 | if ((res = mysql_store_result (m)) == NULL) | 278 | if ((res = mysql_store_result (m)) == NULL) |
280 | { | 279 | { |
281 | mu_error ("MySQL: can't store result: %s", mysql_error (m)); | 280 | mu_error (_("MySQL: can't store result: %s"), mysql_error (m)); |
282 | mysql_close (m); | 281 | mysql_close (m); |
283 | return 1; | 282 | return 1; |
284 | } | 283 | } |
285 | 284 | ||
286 | if ((row = mysql_fetch_row (res)) == NULL) | 285 | if ((row = mysql_fetch_row (res)) == NULL) |
287 | { | 286 | { |
288 | mu_error ("MySQL: can't fetch row: %s", mysql_error (m)); | 287 | mu_error (_("MySQL: can't fetch row: %s"), mysql_error (m)); |
289 | mysql_close (m); | 288 | mysql_close (m); |
290 | return 1; | 289 | return 1; |
291 | } | 290 | } |
... | @@ -343,7 +342,7 @@ mu_sql_authenticate (void *ignored_return_data, void *key, | ... | @@ -343,7 +342,7 @@ mu_sql_authenticate (void *ignored_return_data, void *key, |
343 | if (!mysql_real_connect (m, sql_host, sql_user, sql_passwd, sql_db, sql_port, | 342 | if (!mysql_real_connect (m, sql_host, sql_user, sql_passwd, sql_db, sql_port, |
344 | sql_socket, MFLAGS)) | 343 | sql_socket, MFLAGS)) |
345 | { | 344 | { |
346 | mu_error ("MySQL: connect failed: %s", mysql_error (m)); | 345 | mu_error (_("MySQL: connect failed: %s"), mysql_error (m)); |
347 | mysql_close (m); | 346 | mysql_close (m); |
348 | return 1; | 347 | return 1; |
349 | } | 348 | } |
... | @@ -358,7 +357,7 @@ mu_sql_authenticate (void *ignored_return_data, void *key, | ... | @@ -358,7 +357,7 @@ mu_sql_authenticate (void *ignored_return_data, void *key, |
358 | 357 | ||
359 | if (mysql_query (m, query_str) != 0) | 358 | if (mysql_query (m, query_str) != 0) |
360 | { | 359 | { |
361 | mu_error ("MySQL: query failed: %s", mysql_error (m)); | 360 | mu_error (_("MySQL: query failed: %s"), mysql_error (m)); |
362 | free (query_str); | 361 | free (query_str); |
363 | mysql_close (m); | 362 | mysql_close (m); |
364 | return 1; | 363 | return 1; |
... | @@ -368,14 +367,14 @@ mu_sql_authenticate (void *ignored_return_data, void *key, | ... | @@ -368,14 +367,14 @@ mu_sql_authenticate (void *ignored_return_data, void *key, |
368 | 367 | ||
369 | if ((res = mysql_store_result (m)) == NULL) | 368 | if ((res = mysql_store_result (m)) == NULL) |
370 | { | 369 | { |
371 | mu_error ("MySQL: can't store result: %s", mysql_error (m)); | 370 | mu_error (_("MySQL: can't store result: %s"), mysql_error (m)); |
372 | mysql_close (m); | 371 | mysql_close (m); |
373 | return 1; | 372 | return 1; |
374 | } | 373 | } |
375 | 374 | ||
376 | if ((row = mysql_fetch_row (res)) == NULL) | 375 | if ((row = mysql_fetch_row (res)) == NULL) |
377 | { | 376 | { |
378 | mu_error ("MySQL: can't fetch row: %s", mysql_error (m)); | 377 | mu_error (_("MySQL: can't fetch row: %s"), mysql_error (m)); |
379 | mysql_close (m); | 378 | mysql_close (m); |
380 | return 1; | 379 | return 1; |
381 | } | 380 | } | ... | ... |
-
Please register or sign in to post a comment