summaryrefslogtreecommitdiffstats
path: root/src/pacman/util.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-03-01 00:50:23 +0100
committerDan McGee <dan@archlinux.org>2011-03-01 00:50:23 +0100
commit09ce8b446c01e59a0eb0523846ce6f339ef25fa5 (patch)
tree9b1105babb144af1aa5129b12c75ce0f3c738eea /src/pacman/util.c
parent07538b948a0198808dcbe68bf838e520eb341fb3 (diff)
downloadpacman-09ce8b446c01e59a0eb0523846ce6f339ef25fa5.tar.gz
pacman-09ce8b446c01e59a0eb0523846ce6f339ef25fa5.tar.xz
Fix some easy to find double translations
A lot of these were places that should have used the same message but didn't, or were very easy to convert to using the same message and letting some of the burden off of the translators. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/util.c')
-rw-r--r--src/pacman/util.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/pacman/util.c b/src/pacman/util.c
index 2d4ccf37..83368085 100644
--- a/src/pacman/util.c
+++ b/src/pacman/util.c
@@ -987,19 +987,20 @@ int pm_vasprintf(char **string, pmloglevel_t level, const char *format, va_list
/* print a prefix to the message */
switch(level) {
- case PM_LOG_DEBUG:
- pm_asprintf(string, "debug: %s", msg);
- break;
case PM_LOG_ERROR:
pm_asprintf(string, _("error: %s"), msg);
break;
case PM_LOG_WARNING:
pm_asprintf(string, _("warning: %s"), msg);
break;
+ case PM_LOG_DEBUG:
+ pm_asprintf(string, "debug: %s", msg);
+ break;
case PM_LOG_FUNCTION:
- pm_asprintf(string, _("function: %s"), msg);
+ pm_asprintf(string, "function: %s", msg);
break;
default:
+ pm_asprintf(string, "%s", msg);
break;
}
free(msg);
@@ -1034,19 +1035,17 @@ int pm_vfprintf(FILE *stream, pmloglevel_t level, const char *format, va_list ar
/* print a prefix to the message */
switch(level) {
- case PM_LOG_DEBUG:
- fprintf(stream, "debug: ");
- break;
case PM_LOG_ERROR:
fprintf(stream, _("error: "));
break;
case PM_LOG_WARNING:
fprintf(stream, _("warning: "));
break;
+ case PM_LOG_DEBUG:
+ fprintf(stream, "debug: ");
+ break;
case PM_LOG_FUNCTION:
- /* TODO we should increase the indent level when this occurs so we can see
- * program flow easier. It'll be fun */
- fprintf(stream, _("function: "));
+ fprintf(stream, "function: ");
break;
default:
break;