]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Added support for Russian language/encoding stuff. Message catalogs
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Tue, 29 Jan 2002 20:25:54 +0000 (20:25 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Tue, 29 Jan 2002 20:25:54 +0000 (20:25 +0000)
are currently still English...

Added support for .charset on locale names.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@2096 7a7537e8-13f0-0310-91df-b6672ffda945

15 files changed:
cups/language.c
cups/language.h
data/Makefile
data/iso-8859-8
data/utf-8
doc/idd.shtml
doc/spm.shtml
locale/Makefile
locale/be/cups_be [new file with mode: 0644]
locale/he/cups_he [new file with mode: 0644]
locale/ru_RU.cp1251/cups_ru_RU.cp1251 [new file with mode: 0644]
locale/ru_RU.koi8r/cups_ru_RU.koi8r [new file with mode: 0644]
locale/uk/cups_uk [new file with mode: 0644]
locale/uk_UA.cp1251/cups_uk_UA.cp1251 [new file with mode: 0644]
scheduler/printers.c

index 7be0e6ea7445d5fed5dc8d17180050ff551fc664..3433e014a461a370a1310cf701ffcf8bdc7fd5ee 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: language.c,v 1.21 2002/01/02 17:58:39 mike Exp $"
+ * "$Id: language.c,v 1.22 2002/01/29 20:25:50 mike Exp $"
  *
  *   I18N/language support for the Common UNIX Printing System (CUPS).
  *
@@ -73,7 +73,9 @@ static char           *lang_encodings[] =     /* Encoding strings */
                          "windows-1255",
                          "windows-1256",
                          "windows-1257",
-                         "windows-1258"
+                         "windows-1258",
+                         "koi8-r",
+                         "koi8-u"
                        };
 static char            *lang_default[] =       /* Default POSIX locale */
                        {
@@ -145,6 +147,7 @@ cupsLangGet(const char *language) /* I - Language or locale */
   int          i, count;       /* Looping vars */
   char         langname[16],   /* Requested language name */
                real[16],       /* Real language name */
+               *realptr,       /* Pointer into real language name */
                filename[1024], /* Filename for language locale file */
                *localedir;     /* Directory for locale files */
   FILE         *fp;            /* Language locale file pointer */
@@ -159,8 +162,7 @@ cupsLangGet(const char *language) /* I - Language or locale */
   * standard POSIX locale and is copied unchanged.  Otherwise the
   * language string is converted from ll-cc (language-country) to ll_cc
   * to match the file naming convention used by all POSIX-compliant
-  * operating systems.  Any trailing character set specification is
-  * dropped.
+  * operating systems.
   */
 
   if (language == NULL || language[0] == '\0' ||
@@ -174,63 +176,60 @@ cupsLangGet(const char *language) /* I - Language or locale */
 
     strncpy(langname, language, sizeof(langname) - 1);
     langname[sizeof(langname) - 1] = '\0';
-
-   /*
-    * Strip charset from "locale.charset"...
-    */
-
-    if ((text = strchr(langname, '.')) != NULL)
-      *text = '\0';
   }
 
   if (strlen(langname) < 2)
     strcpy(real, "C");
   else
   {
+   /*
+    * Convert the language name to a normalized form, e.g.:
+    *
+    *     ll[_CC[.setname]]
+    */
+
     real[0] = tolower(langname[0]);
     real[1] = tolower(langname[1]);
 
-    if (langname[2] == '_' || langname[2] == '-')
-    {
-      real[2]     = '_';
-      real[3]     = toupper(langname[3]);
-      real[4]     = toupper(langname[4]);
-      real[5]     = '\0';
-      langname[5] = '\0';
-    }
-    else
-    {
-      langname[2] = '\0';
-      real[2]     = '\0';
-    }
-  }
+    count = 2;
 
- /*
-  * Next try to open a locale file; we will try the country-localized file
-  * first, and then look for generic language file.  If all else fails we
-  * will use the POSIX locale.
-  */
+    if (langname[count] == '_' || langname[count] == '-')
+    {
+     /*
+      * Add country code...
+      */
 
-  if ((localedir = getenv("LOCALEDIR")) == NULL)
-    localedir = CUPS_LOCALEDIR;
+      real[count]     = '_';
+      real[count + 1] = toupper(langname[count + 1]);
+      real[count + 2] = toupper(langname[count + 2]);
 
-  snprintf(filename, sizeof(filename), "%s/%s/cups_%s", localedir, real, real);
+      count += 3;
+    }
 
-  if ((fp = fopen(filename, "r")) == NULL)
-    if (strlen(real) > 2)
+    if (langname[count] == '.')
     {
      /*
-      * Nope, see if we can open a generic language file...
+      * Add charset...
       */
 
-      real[2] = '\0';
-      snprintf(filename, sizeof(filename), "%s/%s/cups_%s", localedir, real,
-               real);
-      fp = fopen(filename, "r");
+      strncpy(real + count, langname + count, sizeof(real) - count - 1);
+      count += strlen(langname + count);
+
+     /*
+      * Make sure count stays within the bounds of langname and real
+      * (both vars are the same size...)
+      */
+
+      if (count >= sizeof(real))
+        count = sizeof(real) - 1;
     }
 
+    langname[count] = '\0';
+    real[count]     = '\0';
+  }
+
  /*
-  * Then see if we already have this language loaded...
+  * See if we already have this language loaded...
   */
 
   for (lang = lang_cache; lang != NULL; lang = lang->next)
@@ -238,12 +237,35 @@ cupsLangGet(const char *language) /* I - Language or locale */
     {
       lang->used ++;
 
-      if (fp != NULL)
-        fclose(fp);
-
       return (lang);
     }
 
+
+ /*
+  * Next try to open a locale file; we will try the charset-localized
+  * file first, then the country-localized file, and finally look for
+  * a generic language file.  If all else fails we will use the POSIX
+  * locale.
+  */
+
+  if ((localedir = getenv("LOCALEDIR")) == NULL)
+    localedir = CUPS_LOCALEDIR;
+
+  do
+  {
+    snprintf(filename, sizeof(filename), "%s/%s/cups_%s", localedir,
+             real, real);
+
+    if ((fp = fopen(filename, "r")) == NULL)
+    {
+      if ((realptr = strchr(real, '.')) != NULL)
+        *realptr = '\0';
+      else if ((realptr = strchr(real, '_')) != NULL)
+        *realptr = '\0';
+    }
+  }
+  while (fp == NULL && strchr(real, '_') != NULL && strchr(real, '.') != NULL);
+
  /*
   * OK, we have an open messages file; the first line will contain the
   * language encoding (us-ascii, iso-8859-1, etc.), and the rest will
@@ -403,5 +425,5 @@ cupsLangGet(const char *language) /* I - Language or locale */
 
 
 /*
- * End of "$Id: language.c,v 1.21 2002/01/02 17:58:39 mike Exp $".
+ * End of "$Id: language.c,v 1.22 2002/01/29 20:25:50 mike Exp $".
  */
index c01f5ee56dfbbc8fd4a47f4f4f3f4ca5b8fdab85..df24a997524eb0a2ce88e56dd24a3082b4e5e81e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: language.h,v 1.21 2002/01/27 21:16:11 mike Exp $"
+ * "$Id: language.h,v 1.22 2002/01/29 20:25:50 mike Exp $"
  *
  *   Multi-language support for the Common UNIX Printing System (CUPS).
  *
@@ -181,7 +181,9 @@ typedef enum                        /**** Language Encodings ****/
   CUPS_WINDOWS_1255,
   CUPS_WINDOWS_1256,
   CUPS_WINDOWS_1257,
-  CUPS_WINDOWS_1258
+  CUPS_WINDOWS_1258,
+  CUPS_KOI8_R,
+  CUPS_KOI8_U,
 } cups_encoding_t;
 
 typedef struct cups_lang_str   /**** Language Cache Structure ****/
@@ -218,5 +220,5 @@ extern cups_lang_t  *cupsLangGet(const char *language);
 #endif /* !_CUPS_LANGUAGE_H_ */
 
 /*
- * End of "$Id: language.h,v 1.21 2002/01/27 21:16:11 mike Exp $".
+ * End of "$Id: language.h,v 1.22 2002/01/29 20:25:50 mike Exp $".
  */
index 90fcffa82e43b4f771bdc0938e0b92bcd27b0255..5d0b14bc9baf0743e6b24b2afdc609b8406477b1 100644 (file)
@@ -1,5 +1,5 @@
 #
-# "$Id: Makefile,v 1.17 2002/01/23 17:25:35 mike Exp $"
+# "$Id: Makefile,v 1.18 2002/01/29 20:25:50 mike Exp $"
 #
 #   Datafile makefile for the Common UNIX Printing System (CUPS).
 #
@@ -45,6 +45,8 @@ CHARSETS =    windows-874 \
                windows-1256 \
                windows-1257 \
                windows-1258 \
+               koi8-r \
+               koi8-u \
                iso-8859-1 \
                iso-8859-2 \
                iso-8859-3 \
@@ -104,5 +106,5 @@ install:
 
 
 #
-# End of "$Id: Makefile,v 1.17 2002/01/23 17:25:35 mike Exp $".
+# End of "$Id: Makefile,v 1.18 2002/01/29 20:25:50 mike Exp $".
 #
index a64c598f13d836831703a28a44a7b529d165c42e..660122d6a0e59ff7b898fa9d563e0c99ba6cad0a 100644 (file)
@@ -23,7 +23,7 @@ charset 8bit
 #
 
 00 7f ltor single Courier Courier-Bold Courier-Italic Courier-BoldItalic
-80 ff rtol single Courier-Hebrew
+80 ff rtol single Courier
 
 #
 # The following lines define the mapping from the 8-bit character set to
index e808223a0683e8115700f84882697ddf45999929..b73eb9667bb4a8f86d7ae28ca5b9f660cfe778d2 100644 (file)
@@ -30,7 +30,8 @@ charset utf8
 0100 01FF ltor single Courier Courier-Bold Courier-Italic Courier-Bold-Italic
 0200 02FF ltor single Courier Courier-Bold Courier-Italic Courier-Bold-Italic
 0300 03FF ltor single Symbol
-0400 04FF ltor single Courier-Cyrillic
+0400 04FF ltor single Courier Courier-Bold Courier-Italic Courier-Bold-Italic
+0500 05FF rtol single Courier
 1E00 1EFF ltor single Courier Courier-Bold Courier-Italic Courier-Bold-Italic
 2000 20FF ltor single Courier Courier-Bold Courier-Italic Courier-Bold-Italic
 2100 21FF ltor single Courier Courier-Bold Courier-Italic Courier-Bold-Italic
index 4cfc671829a97410d681d3b36c75fa450781f665..d6c4f510abd7ec41ef5a9e140685dc9300de7863 100644 (file)
@@ -154,6 +154,8 @@ The currently recognized values are:
        <LI>windows-1256
        <LI>windows-1257
        <LI>windows-1258
+       <LI>koi8-r
+       <LI>koi8-u
 </UL>
 
 <P>The second and succeeding lines define text messages. If the message text
index eb5894d47c737a6d40772531ab83dfcd5adca49d..0ca9c943cd587121f29bd9210e00805527f163ee 100644 (file)
@@ -1782,6 +1782,10 @@ printers and classes:
 
        <LI><CODE>CUPS_WINDOWS_1258</CODE> - Windows code page 1258.
 
+       <LI><CODE>CUPS_KOI8_R</CODE> - Russian code page koi8-r.
+
+       <LI><CODE>CUPS_KOI8_U</CODE> - Ukrainian code page koi8-r.
+
 </UL>
 
 <H2>HTTP Constants</H2>
index 2fdb35745a65348f97c44ab0bfbdbd59295472ce..be32b52cf361bfdb1939fddf1e04b3880d54bcc0 100644 (file)
@@ -1,5 +1,5 @@
 #
-# "$Id: Makefile,v 1.11 2002/01/26 21:42:45 mike Exp $"
+# "$Id: Makefile,v 1.12 2002/01/29 20:25:51 mike Exp $"
 #
 #   Locale file makefile for the Common UNIX Printing System (CUPS).
 #
@@ -28,7 +28,8 @@ include ../Makedefs
 # Locales...
 #
 
-LOCALES        =       C cs de en es fr it zh_CN
+LOCALES        =       C be cs de en es fr he it ru_RU.koi8r ru_RU.cp1251 \
+               uk uk_UA.cp1251 zh_CN
 
 
 #
@@ -72,5 +73,5 @@ translate.o:  ../cups/http.h
 
 
 #
-# End of "$Id: Makefile,v 1.11 2002/01/26 21:42:45 mike Exp $".
+# End of "$Id: Makefile,v 1.12 2002/01/29 20:25:51 mike Exp $".
 #
diff --git a/locale/be/cups_be b/locale/be/cups_be
new file mode 100644 (file)
index 0000000..f2a7974
--- /dev/null
@@ -0,0 +1,132 @@
+windows-1251
+OK
+Cancel
+Help
+Quit
+Close
+Yes
+No
+On
+Off
+Save
+Discard
+Default
+Options
+More Info
+Black
+Colour
+Cyan
+Magenta
+Yellow
+Copyright 1993-2000 by Easy Software Products, All Rights Reserved.
+General
+Printer
+Image
+HP-GL/2
+Extra
+Document
+Other
+Print Pages: 
+Entire Document
+Page Range:
+Reverse Order: 
+Page Format: 
+ 1-Up
+ 2-Up
+ 4-Up
+Image Scaling: 
+Use Natural Image Size
+Zoom by Percent
+Zoom by PPI
+Mirror Image: 
+Colour Saturation: 
+Colour Hue: 
+Fit to Page: 
+Shading: 
+Pen Width: 
+Gamma Correction: 
+Brightness: 
+Add
+Delete
+Modify
+Printer URI
+Printer Name
+Printer Location
+Printer Info
+Printer Make and Model
+Device URI
+Formatting Page
+Printing Page
+Initializing Printer
+Printer State
+Accepting Jobs
+Not Accepting Jobs
+Print Jobs
+Class
+Local
+Remote
+Duplexing
+Stapling
+Fast Copies
+Collated Copies
+Hole Punching
+Covering
+Binding
+Sorting
+Small (up to 9.5x14in)
+Medium (9.5x14in to 13x19in)
+Large (13x19in and larger)
+Custom Size
+Idle
+Processing
+Stopped
+All
+Odd
+Even
+Darker                     Lighter
+Media Size
+Media Type
+Media Source
+Orientation: 
+Portrait
+Landscape
+Job State
+Job Name
+User Name
+Priority
+Copies
+File Size
+Pending
+Output Mode
+Resolution
+Text
+Pretty Print
+Margins
+Left
+Right
+Bottom
+Top
+Filename(s)
+Print
+400 Your browser sent a request that this server could not understand.
+This server could not verify that you are authorized to access the resource.
+You must pay to access this server.
+You don't have permission to access the resource on this server.
+The requested resource was not found on this server.
+The requested method is not allowed with the resource.
+An appropriate representation for the resource was not found on this server.
+You don't have permission to use this server as a proxy host.
+The request has taken too long to complete and has been aborted.
+The requested resource has more than one value.
+The requested resource is gone and has not been replaced.
+The requested method requires a valid Content-Length.
+The precondition on the request evaluated to false.
+The request is too large for this server to process.
+The request URI is too large for this server to process.
+The request format is not understood by this server.
+500 The server has detected an unrecoverable error and cannot process your request.
+The requested method is not implemented by this server.
+The proxy server received an invalid response from an upstream server.
+The requested resource is currently unavailable on this server.
+The proxy server has taken too long to respond to this server.
+This server does not support the HTTP version required by your browser.
diff --git a/locale/he/cups_he b/locale/he/cups_he
new file mode 100644 (file)
index 0000000..06ae4f3
--- /dev/null
@@ -0,0 +1,133 @@
+iso-8859-8
+OK
+Cancel
+Help
+Quit
+Close
+Yes
+No
+On
+Off
+Save
+Discard
+Default
+Options
+More Info
+Black
+Colour
+Cyan
+Magenta
+Yellow
+Copyright 1993-2001 by Easy Software Products, All Rights Reserved.
+General
+Printer
+Image
+HP-GL/2
+Extra
+Document
+Other
+Print Pages: 
+Entire Document
+Page Range:
+Reverse Order: 
+Page Format: 
+ 1-Up
+ 2-Up
+ 4-Up
+Image Scaling: 
+Use Natural Image Size
+Zoom by Percent
+Zoom by PPI
+Mirror Image: 
+Colour Saturation: 
+Colour Hue: 
+Fit to Page: 
+Shading: 
+Pen Width: 
+Gamma Correction: 
+Brightness: 
+Add
+Delete
+Modify
+Printer URI
+Printer Name
+Printer Location
+Printer Info
+Printer Make and Model
+Device URI
+Formatting Page
+Printing Page
+Initializing Printer
+Printer State
+Accepting Jobs
+Not Accepting Jobs
+Print Jobs
+Class
+Local
+Remote
+Duplexing
+Stapling
+Fast Copies
+Collated Copies
+Hole Punching
+Covering
+Binding
+Sorting
+Small (up to 9.5x14in)
+Medium (9.5x14in to 13x19in)
+Large (13x19in and larger)
+Custom Size
+Idle
+Processing
+Stopped
+All
+Odd
+Even
+Darker                     Lighter
+Media Size
+Media Type
+Media Source
+Orientation: 
+Portrait
+Landscape
+Job State
+Job Name
+User Name
+Priority
+Copies
+File Size
+Pending
+Output Mode
+Resolution
+Text
+Pretty Print
+Margins
+Left
+Right
+Bottom
+Top
+Filename(s)
+Print
+400 Your browser sent a request that this server could not understand.
+This server could not verify that you are authorized to access the resource.
+You must pay to access this server.
+You don't have permission to access the resource on this server.
+The requested resource was not found on this server.
+The requested method is not allowed with the resource.
+An appropriate representation for the resource was not found on this server.
+You don't have permission to use this server as a proxy host.
+The request has taken too long to complete and has been aborted.
+The requested resource has more than one value.
+The requested resource is gone and has not been replaced.
+The requested method requires a valid Content-Length.
+The precondition on the request evaluated to false.
+The request is too large for this server to process.
+The request URI is too large for this server to process.
+The request format is not understood by this server.
+426 An upgrade to a secure connection is required. If you are seeing this message in a web browser then it does not support HTTP encryption upgrades.
+500 The server has detected an unrecoverable error and cannot process your request.
+The requested method is not implemented by this server.
+The proxy server received an invalid response from an upstream server.
+The requested resource is currently unavailable on this server.
+The proxy server has taken too long to respond to this server.
+This server does not support the HTTP version required by your browser.
diff --git a/locale/ru_RU.cp1251/cups_ru_RU.cp1251 b/locale/ru_RU.cp1251/cups_ru_RU.cp1251
new file mode 100644 (file)
index 0000000..f2a7974
--- /dev/null
@@ -0,0 +1,132 @@
+windows-1251
+OK
+Cancel
+Help
+Quit
+Close
+Yes
+No
+On
+Off
+Save
+Discard
+Default
+Options
+More Info
+Black
+Colour
+Cyan
+Magenta
+Yellow
+Copyright 1993-2000 by Easy Software Products, All Rights Reserved.
+General
+Printer
+Image
+HP-GL/2
+Extra
+Document
+Other
+Print Pages: 
+Entire Document
+Page Range:
+Reverse Order: 
+Page Format: 
+ 1-Up
+ 2-Up
+ 4-Up
+Image Scaling: 
+Use Natural Image Size
+Zoom by Percent
+Zoom by PPI
+Mirror Image: 
+Colour Saturation: 
+Colour Hue: 
+Fit to Page: 
+Shading: 
+Pen Width: 
+Gamma Correction: 
+Brightness: 
+Add
+Delete
+Modify
+Printer URI
+Printer Name
+Printer Location
+Printer Info
+Printer Make and Model
+Device URI
+Formatting Page
+Printing Page
+Initializing Printer
+Printer State
+Accepting Jobs
+Not Accepting Jobs
+Print Jobs
+Class
+Local
+Remote
+Duplexing
+Stapling
+Fast Copies
+Collated Copies
+Hole Punching
+Covering
+Binding
+Sorting
+Small (up to 9.5x14in)
+Medium (9.5x14in to 13x19in)
+Large (13x19in and larger)
+Custom Size
+Idle
+Processing
+Stopped
+All
+Odd
+Even
+Darker                     Lighter
+Media Size
+Media Type
+Media Source
+Orientation: 
+Portrait
+Landscape
+Job State
+Job Name
+User Name
+Priority
+Copies
+File Size
+Pending
+Output Mode
+Resolution
+Text
+Pretty Print
+Margins
+Left
+Right
+Bottom
+Top
+Filename(s)
+Print
+400 Your browser sent a request that this server could not understand.
+This server could not verify that you are authorized to access the resource.
+You must pay to access this server.
+You don't have permission to access the resource on this server.
+The requested resource was not found on this server.
+The requested method is not allowed with the resource.
+An appropriate representation for the resource was not found on this server.
+You don't have permission to use this server as a proxy host.
+The request has taken too long to complete and has been aborted.
+The requested resource has more than one value.
+The requested resource is gone and has not been replaced.
+The requested method requires a valid Content-Length.
+The precondition on the request evaluated to false.
+The request is too large for this server to process.
+The request URI is too large for this server to process.
+The request format is not understood by this server.
+500 The server has detected an unrecoverable error and cannot process your request.
+The requested method is not implemented by this server.
+The proxy server received an invalid response from an upstream server.
+The requested resource is currently unavailable on this server.
+The proxy server has taken too long to respond to this server.
+This server does not support the HTTP version required by your browser.
diff --git a/locale/ru_RU.koi8r/cups_ru_RU.koi8r b/locale/ru_RU.koi8r/cups_ru_RU.koi8r
new file mode 100644 (file)
index 0000000..90b3565
--- /dev/null
@@ -0,0 +1,132 @@
+koi8-r
+OK
+Cancel
+Help
+Quit
+Close
+Yes
+No
+On
+Off
+Save
+Discard
+Default
+Options
+More Info
+Black
+Colour
+Cyan
+Magenta
+Yellow
+Copyright 1993-2000 by Easy Software Products, All Rights Reserved.
+General
+Printer
+Image
+HP-GL/2
+Extra
+Document
+Other
+Print Pages: 
+Entire Document
+Page Range:
+Reverse Order: 
+Page Format: 
+ 1-Up
+ 2-Up
+ 4-Up
+Image Scaling: 
+Use Natural Image Size
+Zoom by Percent
+Zoom by PPI
+Mirror Image: 
+Colour Saturation: 
+Colour Hue: 
+Fit to Page: 
+Shading: 
+Pen Width: 
+Gamma Correction: 
+Brightness: 
+Add
+Delete
+Modify
+Printer URI
+Printer Name
+Printer Location
+Printer Info
+Printer Make and Model
+Device URI
+Formatting Page
+Printing Page
+Initializing Printer
+Printer State
+Accepting Jobs
+Not Accepting Jobs
+Print Jobs
+Class
+Local
+Remote
+Duplexing
+Stapling
+Fast Copies
+Collated Copies
+Hole Punching
+Covering
+Binding
+Sorting
+Small (up to 9.5x14in)
+Medium (9.5x14in to 13x19in)
+Large (13x19in and larger)
+Custom Size
+Idle
+Processing
+Stopped
+All
+Odd
+Even
+Darker                     Lighter
+Media Size
+Media Type
+Media Source
+Orientation: 
+Portrait
+Landscape
+Job State
+Job Name
+User Name
+Priority
+Copies
+File Size
+Pending
+Output Mode
+Resolution
+Text
+Pretty Print
+Margins
+Left
+Right
+Bottom
+Top
+Filename(s)
+Print
+400 Your browser sent a request that this server could not understand.
+This server could not verify that you are authorized to access the resource.
+You must pay to access this server.
+You don't have permission to access the resource on this server.
+The requested resource was not found on this server.
+The requested method is not allowed with the resource.
+An appropriate representation for the resource was not found on this server.
+You don't have permission to use this server as a proxy host.
+The request has taken too long to complete and has been aborted.
+The requested resource has more than one value.
+The requested resource is gone and has not been replaced.
+The requested method requires a valid Content-Length.
+The precondition on the request evaluated to false.
+The request is too large for this server to process.
+The request URI is too large for this server to process.
+The request format is not understood by this server.
+500 The server has detected an unrecoverable error and cannot process your request.
+The requested method is not implemented by this server.
+The proxy server received an invalid response from an upstream server.
+The requested resource is currently unavailable on this server.
+The proxy server has taken too long to respond to this server.
+This server does not support the HTTP version required by your browser.
diff --git a/locale/uk/cups_uk b/locale/uk/cups_uk
new file mode 100644 (file)
index 0000000..775df05
--- /dev/null
@@ -0,0 +1,132 @@
+koi8-u
+OK
+Cancel
+Help
+Quit
+Close
+Yes
+No
+On
+Off
+Save
+Discard
+Default
+Options
+More Info
+Black
+Colour
+Cyan
+Magenta
+Yellow
+Copyright 1993-2000 by Easy Software Products, All Rights Reserved.
+General
+Printer
+Image
+HP-GL/2
+Extra
+Document
+Other
+Print Pages: 
+Entire Document
+Page Range:
+Reverse Order: 
+Page Format: 
+ 1-Up
+ 2-Up
+ 4-Up
+Image Scaling: 
+Use Natural Image Size
+Zoom by Percent
+Zoom by PPI
+Mirror Image: 
+Colour Saturation: 
+Colour Hue: 
+Fit to Page: 
+Shading: 
+Pen Width: 
+Gamma Correction: 
+Brightness: 
+Add
+Delete
+Modify
+Printer URI
+Printer Name
+Printer Location
+Printer Info
+Printer Make and Model
+Device URI
+Formatting Page
+Printing Page
+Initializing Printer
+Printer State
+Accepting Jobs
+Not Accepting Jobs
+Print Jobs
+Class
+Local
+Remote
+Duplexing
+Stapling
+Fast Copies
+Collated Copies
+Hole Punching
+Covering
+Binding
+Sorting
+Small (up to 9.5x14in)
+Medium (9.5x14in to 13x19in)
+Large (13x19in and larger)
+Custom Size
+Idle
+Processing
+Stopped
+All
+Odd
+Even
+Darker                     Lighter
+Media Size
+Media Type
+Media Source
+Orientation: 
+Portrait
+Landscape
+Job State
+Job Name
+User Name
+Priority
+Copies
+File Size
+Pending
+Output Mode
+Resolution
+Text
+Pretty Print
+Margins
+Left
+Right
+Bottom
+Top
+Filename(s)
+Print
+400 Your browser sent a request that this server could not understand.
+This server could not verify that you are authorized to access the resource.
+You must pay to access this server.
+You don't have permission to access the resource on this server.
+The requested resource was not found on this server.
+The requested method is not allowed with the resource.
+An appropriate representation for the resource was not found on this server.
+You don't have permission to use this server as a proxy host.
+The request has taken too long to complete and has been aborted.
+The requested resource has more than one value.
+The requested resource is gone and has not been replaced.
+The requested method requires a valid Content-Length.
+The precondition on the request evaluated to false.
+The request is too large for this server to process.
+The request URI is too large for this server to process.
+The request format is not understood by this server.
+500 The server has detected an unrecoverable error and cannot process your request.
+The requested method is not implemented by this server.
+The proxy server received an invalid response from an upstream server.
+The requested resource is currently unavailable on this server.
+The proxy server has taken too long to respond to this server.
+This server does not support the HTTP version required by your browser.
diff --git a/locale/uk_UA.cp1251/cups_uk_UA.cp1251 b/locale/uk_UA.cp1251/cups_uk_UA.cp1251
new file mode 100644 (file)
index 0000000..f2a7974
--- /dev/null
@@ -0,0 +1,132 @@
+windows-1251
+OK
+Cancel
+Help
+Quit
+Close
+Yes
+No
+On
+Off
+Save
+Discard
+Default
+Options
+More Info
+Black
+Colour
+Cyan
+Magenta
+Yellow
+Copyright 1993-2000 by Easy Software Products, All Rights Reserved.
+General
+Printer
+Image
+HP-GL/2
+Extra
+Document
+Other
+Print Pages: 
+Entire Document
+Page Range:
+Reverse Order: 
+Page Format: 
+ 1-Up
+ 2-Up
+ 4-Up
+Image Scaling: 
+Use Natural Image Size
+Zoom by Percent
+Zoom by PPI
+Mirror Image: 
+Colour Saturation: 
+Colour Hue: 
+Fit to Page: 
+Shading: 
+Pen Width: 
+Gamma Correction: 
+Brightness: 
+Add
+Delete
+Modify
+Printer URI
+Printer Name
+Printer Location
+Printer Info
+Printer Make and Model
+Device URI
+Formatting Page
+Printing Page
+Initializing Printer
+Printer State
+Accepting Jobs
+Not Accepting Jobs
+Print Jobs
+Class
+Local
+Remote
+Duplexing
+Stapling
+Fast Copies
+Collated Copies
+Hole Punching
+Covering
+Binding
+Sorting
+Small (up to 9.5x14in)
+Medium (9.5x14in to 13x19in)
+Large (13x19in and larger)
+Custom Size
+Idle
+Processing
+Stopped
+All
+Odd
+Even
+Darker                     Lighter
+Media Size
+Media Type
+Media Source
+Orientation: 
+Portrait
+Landscape
+Job State
+Job Name
+User Name
+Priority
+Copies
+File Size
+Pending
+Output Mode
+Resolution
+Text
+Pretty Print
+Margins
+Left
+Right
+Bottom
+Top
+Filename(s)
+Print
+400 Your browser sent a request that this server could not understand.
+This server could not verify that you are authorized to access the resource.
+You must pay to access this server.
+You don't have permission to access the resource on this server.
+The requested resource was not found on this server.
+The requested method is not allowed with the resource.
+An appropriate representation for the resource was not found on this server.
+You don't have permission to use this server as a proxy host.
+The request has taken too long to complete and has been aborted.
+The requested resource has more than one value.
+The requested resource is gone and has not been replaced.
+The requested method requires a valid Content-Length.
+The precondition on the request evaluated to false.
+The request is too large for this server to process.
+The request URI is too large for this server to process.
+The request format is not understood by this server.
+500 The server has detected an unrecoverable error and cannot process your request.
+The requested method is not implemented by this server.
+The proxy server received an invalid response from an upstream server.
+The requested resource is currently unavailable on this server.
+The proxy server has taken too long to respond to this server.
+This server does not support the HTTP version required by your browser.
index 5b7e30db3dcede70f5878f980d7243241bba3756..bb52cffc2549669c68b6d1b731ef9f25d3eee224 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: printers.c,v 1.112 2002/01/29 02:53:09 mike Exp $"
+ * "$Id: printers.c,v 1.113 2002/01/29 20:25:54 mike Exp $"
  *
  *   Printer routines for the Common UNIX Printing System (CUPS).
  *
@@ -915,7 +915,9 @@ SetPrinterAttrs(printer_t *p)               /* I - Printer to setup */
                  "windows-1255",
                  "windows-1256",
                  "windows-1257",
-                 "windows-1258"
+                 "windows-1258",
+                 "koi8-r",
+                 "koi8-u",
                };
   int          num_finishings;
   ipp_finish_t finishings[5];
@@ -2004,5 +2006,5 @@ write_irix_state(printer_t *p)    /* I - Printer to update */
 
 
 /*
- * End of "$Id: printers.c,v 1.112 2002/01/29 02:53:09 mike Exp $".
+ * End of "$Id: printers.c,v 1.113 2002/01/29 20:25:54 mike Exp $".
  */