Procházet zdrojové kódy

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 před 15 roky
rodič
revize
88ee17740d
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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();