From: Jean-Philippe Orsini Date: Tue, 8 May 2012 12:44:16 +0000 (+0000) Subject: updated msgs X-Git-Tag: v1.3.0~94 X-Git-Url: http://git.wpitchoune.net/gitweb/?p=ppastats.git;a=commitdiff_plain;h=2baa3ff01cb4db10a1a44fd0234ad3cfbe2a0e1b updated msgs --- diff --git a/src/html.c b/src/html.c index 965a565..75a562f 100644 --- a/src/html.c +++ b/src/html.c @@ -421,13 +421,15 @@ create_html(const char *path, const char *header; header = get_header(); - if (!header) + if (!header) { + log_err(_("Failed to get the header template")); return ; + } f = fopen(path, "w"); if (!f) { - log_err(_("failed to open: %s"), path); + log_err(_("Failed to open: %s"), path); return ; } @@ -495,7 +497,7 @@ pkg_to_html(struct ppa_stats *ppa, struct package_stats *pkg, const char *dir) json_path = path_new(dir, pkg->name, ".json"); json = pkg_to_json(ppa, pkg); - log_debug(_("generating %s"), json_path); + log_debug(_("Generating %s"), json_path); json_object_to_file(json_path, json); json_object_put(json); @@ -508,7 +510,7 @@ pkg_to_html(struct ppa_stats *ppa, struct package_stats *pkg, const char *dir) 1); sprintf(script, "ppastats_pkg(\"%s%s\");", pkg->name, ".json"); - log_debug(_("generating %s"), path); + log_debug(_("Generating %s"), path); create_html(path, pkg->name, body, script); free(path); @@ -571,7 +573,7 @@ ppa_to_html(const char *owner, for (i = 0; i < 7; i++) { f_dst = path_append(output_dir, www_files[2*i+1]); - log_debug(_("copying %s %s"), www_files[2*i], f_dst); + log_debug(_("Copying %s %s"), www_files[2*i], f_dst); fcopy(www_files[2*i], f_dst); free(f_dst);