ソースを参照

Use the colour spelling for printed text

Wichert Akkerman 25 年 前
コミット
938dfbc7bb
共有2 個のファイルを変更した5 個の追加4 個の削除を含む
  1. 1 0
      ChangeLog
  2. 4 4
      dselect/main.cc

+ 1 - 0
ChangeLog

@@ -3,6 +3,7 @@ Tue Jul 31 12:26:41 CEST 2001 Wichert Akkerman <wakkerma@debian.org>
   * po/de.po: Updated
   * main/query.c: Fix help texts a bit to reflect that dpkg-query is
     not dpkg
+  * dselect/main.cc: Use `colour' consistently for printed texts.
 
 Fri Jul 27 04:21:51 CEST 2001 Wichert Akkerman <wakkerma@debian.org>
 

+ 4 - 4
dselect/main.cc

@@ -241,7 +241,7 @@ extern "C" {
 
     if ((colours == NULL || ! strlen(colours)) &&
         (attributes == NULL || ! strlen(attributes))) {
-       ohshit(_("Null color specification\n"));
+       ohshit(_("Null colour specification\n"));
     }
 
     if (colours != NULL && strlen(colours)) {
@@ -249,12 +249,12 @@ extern "C" {
       if (colourname != NULL && strlen(colourname)) {
         // normalize attributes to prevent confusion
         color[screenpart].attr= A_NORMAL;
-       color[screenpart].fore=findintable(colourtable, colourname, _("color"));
+       color[screenpart].fore=findintable(colourtable, colourname, _("colour"));
       }
       colourname= strtok(NULL, ",");
       if (colourname != NULL && strlen(colourname)) {
         color[screenpart].attr= A_NORMAL;
-        color[screenpart].back=findintable(colourtable, colourname, _("color"));
+        color[screenpart].back=findintable(colourtable, colourname, _("colour"));
       }
     }
 
@@ -262,7 +262,7 @@ extern "C" {
       for (attrib= strtok(attributes, "+");
            attrib != NULL && strlen(attrib);
           attrib= strtok(NULL, "+")) {
-               aval=findintable(attrtable, attrib, _("color attribute"));
+               aval=findintable(attrtable, attrib, _("colour attribute"));
                if (aval == A_NORMAL) // set to normal
                        color[screenpart].attr= aval;
                else // add to existing attribs