diff options
author | Dan McGee <dan@archlinux.org> | 2007-07-09 06:46:29 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-07-09 19:44:48 +0200 |
commit | 4906e15d0d31bf0442c25af44bcb637b87a7b027 (patch) | |
tree | 4f3d52ed788e56e0ec92a2652a85cb9281897beb /src | |
parent | a2186a43a895950cf97dcfcec4b18279f09f0801 (diff) | |
download | pacman-4906e15d0d31bf0442c25af44bcb637b87a7b027.tar.gz pacman-4906e15d0d31bf0442c25af44bcb637b87a7b027.tar.xz |
Remove gettext from any alpm_logaction calls
We shouldn't translate log messages to pacman.log so it is consistant and
can be parsed by other tools. Remove all gettext _() around these strings.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/pacman/callback.c | 6 | ||||
-rw-r--r-- | src/pacman/sync.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/pacman/callback.c b/src/pacman/callback.c index 9c1f05d1..0e5d87ee 100644 --- a/src/pacman/callback.c +++ b/src/pacman/callback.c @@ -197,7 +197,7 @@ void cb_trans_evt(pmtransevt_t event, void *data1, void *data2) if(config->noprogressbar) { printf(_("done.\n")); } - snprintf(str, LOG_STR_LEN, _("installed %s (%s)"), + snprintf(str, LOG_STR_LEN, "installed %s (%s)", alpm_pkg_get_name(data1), alpm_pkg_get_version(data1)); alpm_logaction(str); @@ -211,7 +211,7 @@ void cb_trans_evt(pmtransevt_t event, void *data1, void *data2) if(config->noprogressbar) { printf(_("done.\n")); } - snprintf(str, LOG_STR_LEN, _("removed %s (%s)"), + snprintf(str, LOG_STR_LEN, "removed %s (%s)", alpm_pkg_get_name(data1), alpm_pkg_get_version(data1)); alpm_logaction(str); @@ -225,7 +225,7 @@ void cb_trans_evt(pmtransevt_t event, void *data1, void *data2) if(config->noprogressbar) { printf(_("done.\n")); } - snprintf(str, LOG_STR_LEN, _("upgraded %s (%s -> %s)"), + snprintf(str, LOG_STR_LEN, "upgraded %s (%s -> %s)", (char *)alpm_pkg_get_name(data1), (char *)alpm_pkg_get_version(data2), (char *)alpm_pkg_get_version(data1)); diff --git a/src/pacman/sync.c b/src/pacman/sync.c index 8982b95f..d5888a57 100644 --- a/src/pacman/sync.c +++ b/src/pacman/sync.c @@ -507,7 +507,7 @@ int pacman_sync(alpm_list_t *targets) if(config->op_s_sync) { /* grab a fresh package list */ printf(_(":: Synchronizing package databases...\n")); - alpm_logaction(_("synchronizing package lists")); + alpm_logaction("synchronizing package lists"); if(!sync_synctree(config->op_s_sync, sync_dbs)) { fprintf(stderr, _("error: failed to synchronize any databases\n")); return(1); @@ -518,7 +518,7 @@ int pacman_sync(alpm_list_t *targets) alpm_list_t *pkgs, *i; printf(_(":: Starting full system upgrade...\n")); - alpm_logaction(_("starting full system upgrade")); + alpm_logaction("starting full system upgrade"); if(alpm_trans_sysupgrade() == -1) { fprintf(stderr, _("error: %s\n"), alpm_strerror(pm_errno)); retval = 1; |