Kaynağa Gözat

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 yıl önce
ebeveyn
işleme
88ee17740d
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  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;
 	int i = 0;
 
 
 	setlocale(LC_ALL, "");
 	setlocale(LC_ALL, "");
-	bindtextdomain("dpkg", LOCALEDIR);
-	textdomain("dpkg");
+	bindtextdomain(PACKAGE, LOCALEDIR);
+	textdomain(PACKAGE);
 
 
 	admdir = admindir_init();
 	admdir = admindir_init();