Changed all user-visible strings from colour to color.
Also, the Windows viewer now accepts arguments with both spellings.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@69 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/rfb/PixelFormat.cxx b/rfb/PixelFormat.cxx
index 683b53a..d20be93 100644
--- a/rfb/PixelFormat.cxx
+++ b/rfb/PixelFormat.cxx
@@ -154,7 +154,7 @@
   }
 
   if (!trueColour) {
-    strncat(str, " colour-map", len-1-strlen(str));
+    strncat(str, " color-map", len-1-strlen(str));
     return;
   }
 
diff --git a/rfb/TransImageGetter.cxx b/rfb/TransImageGetter.cxx
index 693b18c..0b494a9 100644
--- a/rfb/TransImageGetter.cxx
+++ b/rfb/TransImageGetter.cxx
@@ -170,11 +170,11 @@
 
   if (!outPF.trueColour) {
     if (outPF.bpp != 8)
-      throw Exception("TransImageGetter: outPF has colour map but not 8bpp");
+      throw Exception("TransImageGetter: outPF has color map but not 8bpp");
 
     if (!inPF.trueColour) {
       if (inPF.bpp != 8)
-        throw Exception("TransImageGetter: inPF has colourMap but not 8bpp");
+        throw Exception("TransImageGetter: inPF has colorMap but not 8bpp");
 
       // CM to CM/Cube
 
@@ -220,7 +220,7 @@
     // CM to TC
 
     if (inPF.bpp != 8)
-      throw Exception("TransImageGetter: inPF has colourMap but not 8bpp");
+      throw Exception("TransImageGetter: inPF has colorMap but not 8bpp");
     transFn = transSimpleFns[inPF.bpp/16][outPF.bpp/16];
     (*initSimpleCMtoTCFns[outPF.bpp/16]) (&table, inPF, pb->getColourMap(),
                                           outPF);
diff --git a/rfb_win32/DIBSectionBuffer.cxx b/rfb_win32/DIBSectionBuffer.cxx
index 2174376..026e5ed 100644
--- a/rfb_win32/DIBSectionBuffer.cxx
+++ b/rfb_win32/DIBSectionBuffer.cxx
@@ -53,7 +53,7 @@
   format = pf;
   recreateBuffer();
   if ((pf.bpp <= 8) && pf.trueColour) {
-    vlog.debug("creating %d-bit TrueColour palette", pf.depth);
+    vlog.debug("creating %d-bit TrueColor palette", pf.depth);
     for (int i=0; i < (1<<(pf.depth)); i++) {
       palette[i].b = ((((i >> pf.blueShift) & pf.blueMax) * 65535) + pf.blueMax/2) / pf.blueMax;
       palette[i].g = ((((i >> pf.greenShift) & pf.greenMax) * 65535) + pf.greenMax/2) / pf.greenMax;
@@ -208,7 +208,7 @@
 
 void DIBSectionBuffer::refreshPalette() {
   if (format.bpp > 8) {
-    vlog.error("refresh palette called for truecolour DIB");
+    vlog.error("refresh palette called for truecolor DIB");
     return;
   }
   vlog.debug("refreshing palette");
diff --git a/rfb_win32/DeviceFrameBuffer.cxx b/rfb_win32/DeviceFrameBuffer.cxx
index a4d1021..70975c3 100644
--- a/rfb_win32/DeviceFrameBuffer.cxx
+++ b/rfb_win32/DeviceFrameBuffer.cxx
@@ -146,7 +146,7 @@
   UINT entries = ::GetSystemPaletteEntries(dc, 0, 256, syspalette);
 
   if (entries == 0) {
-    vlog.info("resorting to standard 16 colour palette");
+    vlog.info("resorting to standard 16 color palette");
     for (unsigned int i=0;i<256;i++) {
       int v = (i%16) >= 8 ? 127 : 255;
       syspalette[i].peRed = i & 1 ? v : 0;
diff --git a/rfb_win32/SDisplay.cxx b/rfb_win32/SDisplay.cxx
index 6fa3ff0..4916c48 100644
--- a/rfb_win32/SDisplay.cxx
+++ b/rfb_win32/SDisplay.cxx
@@ -452,7 +452,7 @@
     recreatePixelBuffer();
     break;
   case WMMonitor::Notifier::DisplayColourMapChanged:
-    vlog.debug("desktop colourmap changed");
+    vlog.debug("desktop colormap changed");
     pb->updateColourMap();
     if (server)
       server->setColourMapEntries();
diff --git a/rfb_win32/Win32Util.cxx b/rfb_win32/Win32Util.cxx
index e25f43a..28fae2e 100644
--- a/rfb_win32/Win32Util.cxx
+++ b/rfb_win32/Win32Util.cxx
@@ -115,7 +115,7 @@
       switch (bi.bmiHeader.biBitCount) {
       case 16:
         // RGB 555 - High Colour
-        dcLog.info("16-bit High Colour");
+        dcLog.info("16-bit High Color");
         rMask = 0x7c00;
         bMask = 0x001f;
         gMask = 0x03e0;
@@ -124,7 +124,7 @@
       case 24:
       case 32:
         // RGB 888 - True Colour
-        dcLog.info("24/32-bit High Colour");
+        dcLog.info("24/32-bit High Color");
         rMask = 0xff0000;
         gMask = 0x00ff00;
         bMask = 0x0000ff;
diff --git a/rfbplayer/rfbplayer.cxx b/rfbplayer/rfbplayer.cxx
index 142ee95..2687306 100644
--- a/rfbplayer/rfbplayer.cxx
+++ b/rfbplayer/rfbplayer.cxx
@@ -578,7 +578,7 @@
 
   // Check on the true colour mode
   if (!(cp.pf()).trueColour)
-    throw rdr::Exception("This version plays only true colour session!");
+    throw rdr::Exception("This version plays only true color session!");
 
   // Set the session pixel format
   buffer->setPF(cp.pf()); 
diff --git a/vncserver.man b/vncserver.man
index 3171701..12f0656 100644
--- a/vncserver.man
+++ b/vncserver.man
@@ -70,7 +70,7 @@
 .TP
 .B \-cc 3
 As an alternative to the default TrueColor visual, this allows you to run an
-Xvnc server with a PseudoColor visual (i.e. one which uses a colour map or
+Xvnc server with a PseudoColor visual (i.e. one which uses a color map or
 palette), which can be useful for running some old X applications which only
 work on such a display.  Values other than 3 (PseudoColor) and 4 (TrueColor)
 for the \-cc option may result in strange behaviour, and PseudoColor desktops
diff --git a/vncviewer/CViewOptions.cxx b/vncviewer/CViewOptions.cxx
index dd3d825..f19b096 100644
--- a/vncviewer/CViewOptions.cxx
+++ b/vncviewer/CViewOptions.cxx
@@ -34,12 +34,16 @@
 static BoolParameter useLocalCursor("UseLocalCursor", "Render the mouse cursor locally", true);
 static BoolParameter useDesktopResize("UseDesktopResize", "Support dynamic desktop resizing", true);
 
-static BoolParameter fullColour("FullColour",
-				"Use full colour", true);
-static IntParameter lowColourLevel("LowColourLevel",
-                         "Colour level to use on slow connections. "
-                         "0 = Very Low (8 colours), 1 = Low (64 colours), 2 = Medium (256 colours)",
+static BoolParameter fullColour("FullColor",
+				"Use full color", true);
+static AliasParameter fullColourAlias("FullColour", "Alias for FullColor", &fullColour);
+
+static IntParameter lowColourLevel("LowColorLevel",
+                         "Color level to use on slow connections. "
+                         "0 = Very Low (8 colors), 1 = Low (64 colors), 2 = Medium (256 colors)",
                          2);
+static AliasParameter lowColourLevelAlias("LowColourLevel", "Alias for LowColorLevel", &lowColourLevel);
+
 static BoolParameter fullScreen("FullScreen",
                          "Use the whole display to show the remote desktop."
                          "(Press F8 to access the viewer menu)",
diff --git a/vncviewer/cview.cxx b/vncviewer/cview.cxx
index 30dbbef..5d1ee5d 100644
--- a/vncviewer/cview.cxx
+++ b/vncviewer/cview.cxx
@@ -1174,7 +1174,7 @@
   // Select best color level
   newFullColour = (kbitsPerSecond > 256);
   if (newFullColour != options.fullColour) {
-    vlog.info("Throughput %d kbit/s - full colour is now %s", 
+    vlog.info("Throughput %d kbit/s - full color is now %s", 
 	      kbitsPerSecond,
 	      newFullColour ? "enabled" : "disabled");
     options.fullColour = newFullColour;
diff --git a/vncviewer/vncviewer.rc b/vncviewer/vncviewer.rc
index 5a730ed..ad25574 100644
--- a/vncviewer/vncviewer.rc
+++ b/vncviewer/vncviewer.rc
@@ -166,7 +166,7 @@
 
 IDD_FORMAT DIALOG DISCARDABLE  0, 0, 201, 160
 STYLE DS_MODALFRAME | DS_CONTROL | WS_POPUP | WS_CAPTION | WS_SYSMENU
-CAPTION "Colour/Encoding"
+CAPTION "Color/Encoding"
 FONT 8, "MS Sans Serif"
 BEGIN
     CONTROL         "&Auto select",IDC_ENCODING_AUTO,"Button",
@@ -180,14 +180,14 @@
     CONTROL         "Raw",IDC_ENCODING_RAW,"Button",BS_AUTORADIOBUTTON,10,75,
                     75,15
 
-    GROUPBOX        "Colour level",IDC_STATIC,95,20,99,75
-    CONTROL         "&Full (all available colours)",IDC_FORMAT_FULLCOLOUR,
+    GROUPBOX        "Color level",IDC_STATIC,95,20,99,75
+    CONTROL         "&Full (all available colors)",IDC_FORMAT_FULLCOLOUR,
                     "Button",BS_AUTORADIOBUTTON | WS_GROUP,100,30,90,15
-    CONTROL         "&Medium (256 colours)",IDC_FORMAT_MEDIUMCOLOUR,"Button",
+    CONTROL         "&Medium (256 colors)",IDC_FORMAT_MEDIUMCOLOUR,"Button",
                     BS_AUTORADIOBUTTON,100,45,90,14
-    CONTROL         "&Low (64 colours)",IDC_FORMAT_LOWCOLOUR,"Button",
+    CONTROL         "&Low (64 colors)",IDC_FORMAT_LOWCOLOUR,"Button",
                     BS_AUTORADIOBUTTON,100,60,90,16
-    CONTROL         "&Very low (8 colours)",IDC_FORMAT_VERYLOWCOLOUR,"Button",
+    CONTROL         "&Very low (8 colors)",IDC_FORMAT_VERYLOWCOLOUR,"Button",
                     BS_AUTORADIOBUTTON,100,75,90,15
 
     CONTROL         "Custom compression level:",IDC_CUSTOM_COMPRESSLEVEL,
diff --git a/vncviewer_unix/CConn.cxx b/vncviewer_unix/CConn.cxx
index 519d540..ec2f014 100644
--- a/vncviewer_unix/CConn.cxx
+++ b/vncviewer_unix/CConn.cxx
@@ -683,7 +683,7 @@
   // Select best color level
   newFullColour = (kbitsPerSecond > 256);
   if (newFullColour != fullColour) {
-    vlog.info("Throughput %d kbit/s - full colour is now %s", 
+    vlog.info("Throughput %d kbit/s - full color is now %s", 
 	      kbitsPerSecond,
 	      newFullColour ? "enabled" : "disabled");
     fullColour = newFullColour;
diff --git a/vncviewer_unix/OptionsDialog.h b/vncviewer_unix/OptionsDialog.h
index 88f1c8b..561bad2 100644
--- a/vncviewer_unix/OptionsDialog.h
+++ b/vncviewer_unix/OptionsDialog.h
@@ -40,14 +40,14 @@
 public:
   OptionsDialog(Display* dpy, OptionsDialogCallback* cb_)
     : TXDialog(dpy, 400, 450, "VNC Viewer: Connection Options"), cb(cb_),
-      formatAndEnc(dpy, "Encoding and Colour Level:", this),
+      formatAndEnc(dpy, "Encoding and Color Level:", this),
       inputs(dpy, "Inputs:", this),
       misc(dpy, "Misc:", this),
       autoSelect(dpy, "Auto select", this, false, this),
-      fullColour(dpy, "Full (all available colours)", this, true, this),
-      mediumColour(dpy, "Medium (256 colours)", this, true, this),
-      lowColour(dpy, "Low (64 colours)", this, true, this),
-      veryLowColour(dpy, "Very low (8 colours)", this, true, this),
+      fullColour(dpy, "Full (all available colors)", this, true, this),
+      mediumColour(dpy, "Medium (256 colors)", this, true, this),
+      lowColour(dpy, "Low (64 colors)", this, true, this),
+      veryLowColour(dpy, "Very low (8 colors)", this, true, this),
       tight(dpy, "Tight", this, true, this),
       zrle(dpy, "ZRLE", this, true, this),
       hextile(dpy, "Hextile", this, true, this),
diff --git a/vncviewer_unix/vncviewer.cxx b/vncviewer_unix/vncviewer.cxx
index 77443e7..29679b8 100644
--- a/vncviewer_unix/vncviewer.cxx
+++ b/vncviewer_unix/vncviewer.cxx
@@ -58,13 +58,14 @@
                               "invisible cursor", true);
 BoolParameter autoSelect("AutoSelect",
                          "Auto select pixel format and encoding", true);
-BoolParameter fullColour("FullColour",
-                         "Use full colour", true);
-AliasParameter fullColor("FullColor", "Alias for FullColour", &fullColour);
-IntParameter lowColourLevel("LowColourLevel",
-                            "Colour level to use on slow connections. "
-                            "0 = Very Low (8 colours), 1 = Low (64 colours), "
-                            "2 = Medium (256 colours)", 2);
+BoolParameter fullColour("FullColor",
+                         "Use full color", true);
+AliasParameter fullColourAlias("FullColour", "Alias for FullColor", &fullColour);
+IntParameter lowColourLevel("LowColorLevel",
+                            "Color level to use on slow connections. "
+                            "0 = Very Low (8 colors), 1 = Low (64 colors), "
+                            "2 = Medium (256 colors)", 2);
+AliasParameter lowColourLevelAlias("LowColourLevel", "Alias for LowColorLevel", &lowColourLevel);
 StringParameter preferredEncoding("PreferredEncoding",
                                   "Preferred encoding to use (ZRLE, hextile or"
                                   " raw) - implies AutoSelect=0", "");
diff --git a/vncviewer_unix/vncviewer.man b/vncviewer_unix/vncviewer.man
index 4c67aa5..f5890a4 100644
--- a/vncviewer_unix/vncviewer.man
+++ b/vncviewer_unix/vncviewer.man
@@ -34,13 +34,13 @@
 .SH AUTOMATIC PROTOCOL SELECTION
 
 The viewer tests the speed of the connection to the server and chooses the
-encoding and pixel format (colour level) appropriately.  This makes it much
+encoding and pixel format (color level) appropriately.  This makes it much
 easier to use than previous versions where the user had to specify arcane
 command line arguments.
 
-The viewer normally starts out assuming the link is slow, using a low colour
+The viewer normally starts out assuming the link is slow, using a low color
 level and using the encoding with the best compression.  If it turns out that
-the link is fast enough it switches to full-colour mode and will use an
+the link is fast enough it switches to full-color mode and will use an
 encoding which compresses less but is faster to generate, thus improving the
 interactive feel.  Automatic selection can be turned off by setting the
 \fBAutoSelect\fP parameter to false, or from the options dialog.
@@ -131,18 +131,18 @@
 encoding and pixel format appropriately.  Turn it off with \fB-AutoSelect=0\fP.
 
 .TP
-.B \-FullColour, \-FullColor
-Tells the VNC server to send full-colour pixels in the best format for this
-display.  By default a low colour mode is used until AutoSelect decides the
+.B \-FullColor, \-FullColour
+Tells the VNC server to send full-color pixels in the best format for this
+display.  By default a low color mode is used until AutoSelect decides the
 link is fast enough.  However if the server's native pixel format is
-colourmapped (as opposed to truecolour) then the server's format is used by
+colormapped (as opposed to truecolor) then the server's format is used by
 default.
 
 .TP
-.B \-LowColourLevel \fIlevel\fP
-Selects the reduced colour level to use on slow links.  \fIlevel\fP can range
-from 0 to 2, 0 meaning 8 colours, 1 meaning 64 colours (the default), 2 meaning
-256 colours.
+.B \-LowColorLevel, \-LowColourLevel \fIlevel\fP
+Selects the reduced color level to use on slow links.  \fIlevel\fP can range
+from 0 to 2, 0 meaning 8 colors, 1 meaning 64 colors (the default), 2 meaning
+256 colors.
 
 .TP
 .B \-PreferredEncoding \fIencoding\fP
diff --git a/xc/programs/Xserver/Xvnc.man b/xc/programs/Xserver/Xvnc.man
index c2f9fd6..4576a4f 100644
--- a/xc/programs/Xserver/Xvnc.man
+++ b/xc/programs/Xserver/Xvnc.man
@@ -50,7 +50,7 @@
 .TP
 .B \-cc 3
 As an alternative to the default TrueColor visual, this allows you to run an
-Xvnc server with a PseudoColor visual (i.e. one which uses a colour map or
+Xvnc server with a PseudoColor visual (i.e. one which uses a color map or
 palette), which can be useful for running some old X applications which only
 work on such a display.  Values other than 3 (PseudoColor) and 4 (TrueColor)
 for the \-cc option may result in strange behaviour, and PseudoColor desktops