Просмотр исходного кода

dselect: Unmark debug messages for translation

Guillem Jover лет назад: 18
Родитель
Сommit
ae5152d3b0
7 измененных файлов с 21 добавлено и 11 удалено
  1. 9 0
      ChangeLog
  2. 1 0
      debian/changelog
  3. 2 2
      dselect/baselist.cc
  4. 1 1
      dselect/methlist.cc
  5. 4 4
      dselect/pkgdepcon.cc
  6. 2 2
      dselect/pkglist.cc
  7. 2 2
      dselect/pkgsublist.cc

+ 9 - 0
ChangeLog

@@ -1,3 +1,12 @@
+2008-09-14  Guillem Jover  <guillem@debian.org>
+
+	* dselect/baselist.cc (baselist::startdisplay): Unmark debug message
+	for translation.
+	* dselect/methlist.cc (methodlist::display): Likewise.
+	* dselect/pkgdepcon.cc (packagelist::resolvedepcon): Likewise.
+	* dselect/pkglist.cc (packagelist::addheading): Likewise.
+	* dselect/pkgsublist.cc (packagelist::add): Likewise.
+
 2008-09-05  Raphael Hertzog  <hertzog@debian.org>
 2008-09-05  Raphael Hertzog  <hertzog@debian.org>
 
 
 	* configure.ac: Release 1.14.22.
 	* configure.ac: Release 1.14.22.

+ 1 - 0
debian/changelog

@@ -35,6 +35,7 @@ dpkg (1.15.0) UNRELEASED; urgency=low
     and checksum support in .deb files. Closes: #492052
     and checksum support in .deb files. Closes: #492052
   * Use a troff special character for the copyright symbol on man pages.
   * Use a troff special character for the copyright symbol on man pages.
   * Mark program names in dpkg-trigger.1 in bold.
   * Mark program names in dpkg-trigger.1 in bold.
+  * Unmark dselect debug messages for translation.
 
 
   [ Raphael Hertzog ]
   [ Raphael Hertzog ]
   * Enhance dpkg-shlibdeps's error message when a library can't be found to
   * Enhance dpkg-shlibdeps's error message when a library can't be found to

+ 2 - 2
dselect/baselist.cc

@@ -199,12 +199,12 @@ void baselist::startdisplay() {
 
 
   if (debug)
   if (debug)
     fprintf(debug,
     fprintf(debug,
-            _("baselist::startdisplay() done ...\n\n"
+            "baselist::startdisplay() done ...\n\n"
             " xmax=%d, ymax=%d;\n\n"
             " xmax=%d, ymax=%d;\n\n"
             " title_height=%d, colheads_height=%d, list_height=%d;\n"
             " title_height=%d, colheads_height=%d, list_height=%d;\n"
             " thisstate_height=%d, info_height=%d, whatinfo_height=%d;\n\n"
             " thisstate_height=%d, info_height=%d, whatinfo_height=%d;\n\n"
             " colheads_row=%d, thisstate_row=%d, info_row=%d;\n"
             " colheads_row=%d, thisstate_row=%d, info_row=%d;\n"
-            " whatinfo_row=%d, list_row=%d;\n\n"),
+            " whatinfo_row=%d, list_row=%d;\n\n",
             xmax, ymax,
             xmax, ymax,
             title_height, colheads_height, list_height,
             title_height, colheads_height, list_height,
             thisstate_height, info_height, whatinfo_height,
             thisstate_height, info_height, whatinfo_height,

+ 1 - 1
dselect/methlist.cc

@@ -172,7 +172,7 @@ quitaction methodlist::display() {
     interp= (*bindings)(response);
     interp= (*bindings)(response);
     if (debug)
     if (debug)
       fprintf(debug,"methodlist[%p]::display() response=%d interp=%s\n",
       fprintf(debug,"methodlist[%p]::display() response=%d interp=%s\n",
-              this,response, interp ? interp->action : _("[none]"));
+              this,response, interp ? interp->action : "[none]");
     if (!interp) { beep(); continue; }
     if (!interp) { beep(); continue; }
     (this->*(interp->mfn))();
     (this->*(interp->mfn))();
     if (interp->qa != qa_noquit) break;
     if (interp->qa != qa_noquit) break;

+ 4 - 4
dselect/pkgdepcon.cc

@@ -206,13 +206,13 @@ int packagelist::resolvedepcon(dependency *depends) {
 
 
   if (depdebug && debug) {
   if (depdebug && debug) {
     fprintf(debug,"packagelist[%p]::resolvedepcon([%p] %s --%s-->",
     fprintf(debug,"packagelist[%p]::resolvedepcon([%p] %s --%s-->",
-          this,depends,depends->up->name,gettext(relatestrings[depends->type]));
+            this, depends, depends->up->name, relatestrings[depends->type]);
     for (possi=depends->list; possi; possi=possi->next)
     for (possi=depends->list; possi; possi=possi->next)
       fprintf(debug," %s",possi->ed->name);
       fprintf(debug," %s",possi->ed->name);
     fprintf(debug,"); (ing)->want=%s\n",
     fprintf(debug,"); (ing)->want=%s\n",
             depends->up->clientdata
             depends->up->clientdata
-            ? gettext(wantstrings[depends->up->clientdata->suggested])
-            : _("(no clientdata)"));
+            ? wantstrings[depends->up->clientdata->suggested]
+            : "(no clientdata)");
   }
   }
   
   
   if (!depends->up->clientdata) return 0;
   if (!depends->up->clientdata) return 0;
@@ -239,7 +239,7 @@ int packagelist::resolvedepcon(dependency *depends) {
     if (depdebug && debug)
     if (depdebug && debug)
       fprintf(debug,"packagelist[%p]::resolvedepcon([%p]): depends found %s\n",
       fprintf(debug,"packagelist[%p]::resolvedepcon([%p]): depends found %s\n",
               this,depends,
               this,depends,
-              possi ? possi->ed->name : _("[none]"));
+              possi ? possi->ed->name : "[none]");
     if (possi) return 0;
     if (possi) return 0;
 
 
     // Ensures all in the recursive list; adds info strings; ups priorities
     // Ensures all in the recursive list; adds info strings; ups priorities

+ 2 - 2
dselect/pkglist.cc

@@ -118,8 +118,8 @@ void packagelist::addheading(enum ssavailval ssavail,
   
   
   if (debug) fprintf(debug,"packagelist[%p]::addheading(%d,%d,%d,%s,%s)\n",
   if (debug) fprintf(debug,"packagelist[%p]::addheading(%d,%d,%d,%s,%s)\n",
                      this,ssavail,ssstate,priority,
                      this,ssavail,ssstate,priority,
-                     otherpriority ? otherpriority : _("<null>"),
-                     section ? section : _("<null>"));
+                     otherpriority ? otherpriority : "<null>",
+                     section ? section : "<null>");
 
 
   struct pkginfo *newhead= new pkginfo;
   struct pkginfo *newhead= new pkginfo;
   newhead->name= 0;
   newhead->name= 0;

+ 2 - 2
dselect/pkgsublist.cc

@@ -52,14 +52,14 @@ void packagelist::add(pkginfo *pkg) {
 
 
 void packagelist::add(pkginfo *pkg, pkginfo::pkgwant nw) {
 void packagelist::add(pkginfo *pkg, pkginfo::pkgwant nw) {
   if (debug) fprintf(debug,"packagelist[%p]::add(pkginfo %s, %s)\n",
   if (debug) fprintf(debug,"packagelist[%p]::add(pkginfo %s, %s)\n",
-                     this,pkg->name,gettext(wantstrings[nw]));
+                     this, pkg->name, wantstrings[nw]);
   add(pkg);  if (!pkg->clientdata) return;
   add(pkg);  if (!pkg->clientdata) return;
   pkg->clientdata->direct= nw;
   pkg->clientdata->direct= nw;
   selpriority np;
   selpriority np;
   np= would_like_to_install(nw,pkg) ? sp_selecting : sp_deselecting;
   np= would_like_to_install(nw,pkg) ? sp_selecting : sp_deselecting;
   if (pkg->clientdata->spriority > np) return;
   if (pkg->clientdata->spriority > np) return;
   if (debug) fprintf(debug,"packagelist[%p]::add(pkginfo %s, %s) setting\n",
   if (debug) fprintf(debug,"packagelist[%p]::add(pkginfo %s, %s) setting\n",
-                     this,pkg->name,gettext(wantstrings[nw]));
+                     this, pkg->name, wantstrings[nw]);
   pkg->clientdata->suggested= pkg->clientdata->selected= nw;
   pkg->clientdata->suggested= pkg->clientdata->selected= nw;
   pkg->clientdata->spriority= np;
   pkg->clientdata->spriority= np;