Disable i18n here.
This commit is contained in:
@@ -51,5 +51,5 @@ glibtop_read_i (glibtop *server, glibtop_backend *backend,
|
||||
fprintf (stderr, "LIBRARY: read %d bytes.\n", ret);
|
||||
|
||||
if (ret < 0)
|
||||
glibtop_error_io_r (server, _("read %d bytes"), size);
|
||||
glibtop_error_io_r (server, "read %d bytes", size);
|
||||
}
|
||||
|
@@ -49,7 +49,7 @@ glibtop_read_data_i (glibtop *server, glibtop_backend *backend)
|
||||
sizeof (size_t));
|
||||
|
||||
if (ret < 0)
|
||||
glibtop_error_io_r (server, _("read data size"));
|
||||
glibtop_error_io_r (server, "read data size");
|
||||
|
||||
#ifdef DEBUG
|
||||
fprintf (stderr, "LIBRARY: really reading %d data bytes (ret = %d).\n", size, ret);
|
||||
@@ -62,7 +62,7 @@ glibtop_read_data_i (glibtop *server, glibtop_backend *backend)
|
||||
ret = read (backend->_priv->input [0], ptr, size);
|
||||
|
||||
if (ret < 0)
|
||||
glibtop_error_io_r (server, _("read data %d bytes"));
|
||||
glibtop_error_io_r (server, "read data %d bytes");
|
||||
|
||||
return ptr;
|
||||
}
|
||||
|
@@ -48,5 +48,5 @@ glibtop_write_i (glibtop *server, glibtop_backend *backend,
|
||||
ret = write (backend->_priv->output [1], buf, size);
|
||||
|
||||
if (ret < 0)
|
||||
glibtop_error_io_r (server, _("write %d bytes"), size);
|
||||
glibtop_error_io_r (server, "write %d bytes", size);
|
||||
}
|
||||
|
@@ -50,15 +50,15 @@ print "\tcase GLIBTOP_ERROR_METHOD_WARN_ONCE:";
|
||||
print "\t\t*required &= present;";
|
||||
print "\tcase GLIBTOP_ERROR_METHOD_WARN:";
|
||||
print "\t\tglibtop_warn_r (server,";
|
||||
print "\t\t\t\t_(\"glibtop_get_%s (): Client requested \"";
|
||||
print "\t\t\t\t \"field mask %05lx, but only have %05lx.\"),";
|
||||
print "\t\t\t\t\"glibtop_get_%s (): Client requested \"";
|
||||
print "\t\t\t\t\"field mask %05lx, but only have %05lx.\",";
|
||||
print "\t\t\t\t feature, (unsigned long) old_required,";
|
||||
print "\t\t\t\t (unsigned long) present);";
|
||||
print "\t\tbreak;";
|
||||
print "\tcase GLIBTOP_ERROR_METHOD_ABORT:";
|
||||
print "\t\tglibtop_error_r (server,";
|
||||
print "\t\t\t\t _(\"glibtop_get_%s (): Client requested \"";
|
||||
print "\t\t\t\t \"field mask %05lx, but only have %05lx.\"),";
|
||||
print "\t\t\t\t\"glibtop_get_%s (): Client requested \"";
|
||||
print "\t\t\t\t\"field mask %05lx, but only have %05lx.\",";
|
||||
print "\t\t\t\t feature, (unsigned long) old_required,";
|
||||
print "\t\t\t\t (unsigned long) present);";
|
||||
print "\t\tbreak;";
|
||||
|
Reference in New Issue
Block a user