Ver código fonte

u-a: Use the generic PACKAGE instead of a literal "dpkg" for textdomain

This unties a bit more update-alternatives from dpkg, so that it can be
more easily reused by third parties.
Guillem Jover 14 anos atrás
pai
commit
88ee17740d
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      utils/update-alternatives.c

+ 2 - 2
utils/update-alternatives.c

@@ -2309,8 +2309,8 @@ main(int argc, char **argv)
 	int i = 0;
 
 	setlocale(LC_ALL, "");
-	bindtextdomain("dpkg", LOCALEDIR);
-	textdomain("dpkg");
+	bindtextdomain(PACKAGE, LOCALEDIR);
+	textdomain(PACKAGE);
 
 	admdir = admindir_init();