String fixes
authorMatthias Clasen <matthiasc@src.gnome.org>
Fri, 25 Jan 2008 06:10:29 +0000 (06:10 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 25 Jan 2008 06:10:29 +0000 (06:10 +0000)
svn path=/trunk/; revision=6370

gio/ChangeLog
gio/gbufferedinputstream.c
gio/ginputstream.c
gio/glocalfile.c
gio/goutputstream.c

index c763c9e971f115abb2be6766510439b491646571..ff898dea898d44a6cba41c4505e35ef6bbb3d315 100644 (file)
@@ -1,3 +1,11 @@
+2008-01-25  Matthias Clasen  <mclasen@redhat.com>
+
+       * ginputstream.c:
+       * goutputstream.c:
+       * gbufferedinputstream.c:
+       * glocalfile.c: String improvements.  (#511966, 
+        Theppitak Karoonboonyanan)
+
 2008-01-24  Matthias Clasen  <mclasen@redhat.com>
 
        * gioscheduler.h: Expand docs a bit.
index 6cc537ed4fae375419577c2becf56dc25808d6a0..f011be5897acf5d31881990bf2b8bf09b731e2d1 100644 (file)
@@ -480,7 +480,8 @@ g_buffered_input_stream_fill_async (GBufferedInputStream *stream,
                                           callback,
                                           user_data,
                                           G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
-                                          _("Too large count value passed to g_input_stream_read_async"));
+                                          _("Too large count value passed to %s"),
+                                          G_GNUC_PRETTY_FUNCTION);
       return;
     }
   
index 33497a9bc340ef2ab2144e56c67666bd9c7a559d..5c0da376694bc97311faf49b47ad222b45833a3a 100644 (file)
@@ -183,7 +183,8 @@ g_input_stream_read  (GInputStream  *stream,
   if (((gssize) count) < 0)
     {
       g_set_error (error, G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
-                  _("Too large count value passed to g_input_stream_read"));
+                  _("Too large count value passed to %s"), 
+                   G_GNUC_PRETTY_FUNCTION);
       return -1;
     }
 
@@ -315,7 +316,8 @@ g_input_stream_skip (GInputStream  *stream,
   if (((gssize) count) < 0)
     {
       g_set_error (error, G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
-                  _("Too large count value passed to g_input_stream_skip"));
+                  _("Too large count value passed to %s"),
+                  G_GNUC_PRETTY_FUNCTION);
       return -1;
     }
   
@@ -556,7 +558,8 @@ g_input_stream_read_async (GInputStream        *stream,
                                           callback,
                                           user_data,
                                           G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
-                                          _("Too large count value passed to g_input_stream_read_async"));
+                                          _("Too large count value passed to %s"),
+                                          G_GNUC_PRETTY_FUNCTION);
       return;
     }
 
@@ -680,7 +683,8 @@ g_input_stream_skip_async (GInputStream        *stream,
                                           callback,
                                           user_data,
                                           G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
-                                          _("Too large count value passed to g_input_stream_skip_async"));
+                                          _("Too large count value passed to %s"),
+                                          G_GNUC_PRETTY_FUNCTION);
       return;
     }
 
index ae856b62c59d22f3ff66087297793df718a3798b..29b189125bafbe4af33a37c66fb053fcd835c1e3 100644 (file)
@@ -1626,7 +1626,7 @@ g_local_file_trash (GFile         *file,
       
       g_set_error (error, G_IO_ERROR,
                   g_io_error_from_errno (errno),
-                  _("Unable to create trashed file: %s"),
+                  _("Unable to create trashing info file: %s"),
                   g_strerror (errno));
       return FALSE;
     }
index bf9e82a26ebbe6c6017ccd6c3a4fcde57c77d1fd..c1bb8b20bbf03a0562a117309f794fad94b929b1 100644 (file)
@@ -190,7 +190,8 @@ g_output_stream_write (GOutputStream  *stream,
   if (((gssize) count) < 0)
     {
       g_set_error (error, G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
-                  _("Too large count value passed to g_output_stream_write"));
+                  _("Too large count value passed to %s"),
+                  G_GNUC_PRETTY_FUNCTION);
       return -1;
     }
 
@@ -644,7 +645,8 @@ g_output_stream_write_async (GOutputStream       *stream,
                                           callback,
                                           user_data,
                                           G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
-                                          _("Too large count value passed to g_output_stream_write_async"));
+                                          _("Too large count value passed to %s"),
+                                          G_GNUC_PRETTY_FUNCTION);
       return;
     }