summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-07-09 00:46:29 -0400
committerDan McGee <dan@archlinux.org>2007-07-09 13:44:48 -0400
commit4906e15d0d31bf0442c25af44bcb637b87a7b027 (patch)
tree4f3d52ed788e56e0ec92a2652a85cb9281897beb /src
parenta2186a43a895950cf97dcfcec4b18279f09f0801 (diff)
downloadpacman-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.c6
-rw-r--r--src/pacman/sync.c4
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;