Explorar el Código

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 hace 15 años
padre
commit
88ee17740d
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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();