if (product_name == NULL)
return -1;
if (product_name[0] == NULL) {
- error (g, "%s: file is empty", release_filename);
+ error (g, _("%s: file is empty"), release_filename);
guestfs___free_string_list (product_name);
return -1;
}
return -1;
if (lines[0] == NULL) {
- error (g, "could not parse /etc/fstab or empty file");
+ error (g, _("could not parse /etc/fstab or empty file"));
guestfs___free_string_list (lines);
return -1;
}
long ret;
int r = xstrtol (str, NULL, 10, &ret, "");
if (r != LONGINT_OK) {
- error (g, "could not parse integer in version number: %s", str);
+ error (g, _("could not parse integer in version number: %s"), str);
return -1;
}
return ret;