* grub-core/commands/efi/fixvideo.c: Gettextize.

* grub-core/commands/hashsum.c: Likewise.
	* grub-core/commands/i386/cmostest.c: Likewise.
	* grub-core/commands/i386/pc/drivemap.c: Likewise.
	* grub-core/commands/i386/pc/lsapm.c: Likewise.
	* grub-core/commands/i386/pc/sendkey.c: Likewise.
	* grub-core/commands/lsmmap.c: Likewise.
	* grub-core/commands/menuentry.c: Likewise.
	* grub-core/commands/mips/loongson/lsspd.c: Likewise.
	* grub-core/commands/setpci.c: Likewise.
	* grub-core/loader/i386/bsd.c: Likewise.
	* grub-core/loader/i386/linux.c: Likewise.
	* util/getroot.c: Likewise.
	* util/grub-editenv.c: Likewise.
	* util/grub-fstest.c: Likewise.
	* util/grub-mkfont.c: Likewise.
	* util/grub-mkimage.c: Likewise.
	* util/grub-mkpasswd-pbkdf2.c: Likewise.
	* util/grub-pe2elf.c: Likewise.
	* util/grub-probe.c: Likewise.
	* util/grub-setup.c: Likewise.
	* util/ieee1275/ofpath.c: Likewise.
	* util/misc.c: Likewise.
	* util/raid.c: Likewise.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-11-12 00:34:14 +01:00
parent b50787de09
commit 10f0117bf9
25 changed files with 302 additions and 260 deletions

View file

@ -89,10 +89,10 @@ grub_util_get_fp_size (FILE *fp)
struct stat st;
if (fflush (fp) == EOF)
grub_util_error ("fflush failed");
grub_util_error (_("fflush failed"));
if (fstat (fileno (fp), &st) == -1)
grub_util_error ("fstat failed");
grub_util_error (_("fstat failed"));
return st.st_size;
}
@ -105,7 +105,7 @@ grub_util_get_image_size (const char *path)
grub_util_info ("getting the size of %s", path);
if (stat (path, &st) == -1)
grub_util_error ("cannot stat %s", path);
grub_util_error (_("cannot stat %s"), path);
return st.st_size;
}
@ -114,10 +114,10 @@ void
grub_util_read_at (void *img, size_t size, off_t offset, FILE *fp)
{
if (fseeko (fp, offset, SEEK_SET) == -1)
grub_util_error ("seek failed");
grub_util_error (_("seek failed"));
if (fread (img, 1, size, fp) != size)
grub_util_error ("read failed");
grub_util_error (_("read failed"));
}
char *
@ -134,7 +134,7 @@ grub_util_read_image (const char *path)
fp = fopen (path, "rb");
if (! fp)
grub_util_error ("cannot open %s", path);
grub_util_error (_("cannot open %s"), path);
grub_util_read_at (img, size, 0, fp);
@ -155,10 +155,10 @@ grub_util_load_image (const char *path, char *buf)
fp = fopen (path, "rb");
if (! fp)
grub_util_error ("cannot open %s", path);
grub_util_error (_("cannot open %s"), path);
if (fread (buf, 1, size, fp) != size)
grub_util_error ("cannot read %s", path);
grub_util_error (_("cannot read %s"), path);
fclose (fp);
}
@ -168,9 +168,9 @@ grub_util_write_image_at (const void *img, size_t size, off_t offset, FILE *out)
{
grub_util_info ("writing 0x%x bytes at offset 0x%x", size, offset);
if (fseeko (out, offset, SEEK_SET) == -1)
grub_util_error ("seek failed");
grub_util_error (_("seek failed"));
if (fwrite (img, 1, size, out) != size)
grub_util_error ("write failed");
grub_util_error (_("write failed"));
}
void
@ -178,7 +178,7 @@ grub_util_write_image (const char *img, size_t size, FILE *out)
{
grub_util_info ("writing 0x%x bytes", size);
if (fwrite (img, 1, size, out) != size)
grub_util_error ("write failed");
grub_util_error (_("write failed"));
}
char *