summaryrefslogtreecommitdiff
path: root/apt-private/private-main.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2016-05-28 13:53:09 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2016-05-28 18:12:02 +0200
commit570ec96dbf4f720d8eff694f8c4429e0b0a033b4 (patch)
tree8e9ed5f6ba9e09c97a3a74ad855fa6c27d0d1057 /apt-private/private-main.cc
parent8b79c94af7f7cf2e5e5342294bc6e5a908cacabf (diff)
look into the right textdomain for apt-utils again
Broken in e7e10e47476606e3b2274cf66b1e8ea74b236757 by looking always into "apt" while we ship some tools in "apt-utils"…
Diffstat (limited to 'apt-private/private-main.cc')
-rw-r--r--apt-private/private-main.cc22
1 files changed, 20 insertions, 2 deletions
diff --git a/apt-private/private-main.cc b/apt-private/private-main.cc
index 0a9f4713f..0075f813f 100644
--- a/apt-private/private-main.cc
+++ b/apt-private/private-main.cc
@@ -16,11 +16,29 @@
#include <apti18n.h>
-void InitLocale() /*{{{*/
+void InitLocale(APT_CMD const binary) /*{{{*/
{
std::locale::global(std::locale(""));
- textdomain(PACKAGE);
+ switch(binary)
+ {
+ case APT_CMD::APT:
+ case APT_CMD::APT_CACHE:
+ case APT_CMD::APT_CDROM:
+ case APT_CMD::APT_CONFIG:
+ case APT_CMD::APT_HELPER:
+ case APT_CMD::APT_GET:
+ case APT_CMD::APT_MARK:
+ textdomain("apt");
+ break;
+ case APT_CMD::APT_EXTRACTTEMPLATES:
+ case APT_CMD::APT_FTPARCHIVE:
+ case APT_CMD::APT_INTERNAL_SOLVER:
+ case APT_CMD::APT_SORTPKG:
+ textdomain("apt-utils");
+ break;
+ }
}
+void InitLocale() {}
/*}}}*/
void InitSignals() /*{{{*/
{