Ignore:
Timestamp:
Mar 20, 2013, 3:47:17 PM (13 years ago)
Author:
Alex Taylor
Message:

Fix bug in return code processing when creating OS/2 printer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/printer/cupswiz/cupswiz.VRX

    r21 r23  
    251251        CALL VRMessage VRWindow(),,
    252252                       NLSGetMessage( 62 ),,        /* 62: The installed version of CUPS.PDR appears to be out of date.  As a result, the desktop printer will not be usable until the desktop is restarted. */
    253                        NLSGetMessage( 58 ), 'W'     /* 58: Port Driver Problem */ 
     253                       NLSGetMessage( 58 ), 'W'     /* 58: Port Driver Problem */
    254254    END
    255255
     
    875875     */
    876876    target = VRParseFilePath( driver_path, 'DP')
    877     CALL LINEOUT globals.!log1, 'Copying files from' workdir'\OUT to' target 
     877    CALL LINEOUT globals.!log1, 'Copying files from' workdir'\OUT to' target
    878878    ADDRESS CMD '@UNLOCK' target'\'driver'.DRV 2>NUL 1>NUL'
    879879    ok = VRCopyFile( workdir'\OUT\'driver'.DRV', target'\'driver'.DRV')
     
    934934    IF \VRIsDir( globals.!cupsdir ) THEN DO
    935935        IF TRANSLATE( globals.!cupsdir ) <> '/R' THEN
    936             CALL VRMessage VRWindow(), 
     936            CALL VRMessage VRWindow(),
    937937                           NLSGetMessage( 65, 'CUPSWIZ F:\CUPS') ||,    /* 65: CUPS could not be located ... on the command line to this program (e.g "%1"). */
    938938                           '0d0a0d0a'x || NLSGetMessage( 66 ),,         /* 66: Only remote CUPS queues ... start this program with the /R parameter.) */
     
    16381638    CALL NLSSetText 'SW_ABOUT',  'Caption', 10                                          /* 10: Product Information */
    16391639    CALL NLSSetText 'DT_ABOUT1', 'Caption', 11                                          /* 11: eCups Printer Install Utility */
    1640     CALL NLSSetText 'DT_ABOUT2', 'Caption', 12, '0.98'                                  /* 12: Version %1 */
     1640    CALL NLSSetText 'DT_ABOUT2', 'Caption', 12, '0.99'                                  /* 12: Version %1 */
    16411641    CALL NLSSetText 'DT_ABOUT3', 'Caption', 13, '2010, 2013'                            /* 13: (C) %1 Alex Taylor */
    16421642    CALL NLSSetText 'PB_ABOUT',  'Caption', 2                                           /* 10: Product Information */
    16431643
    1644     CALL NLSSetText 'DT_BOOTDRIVE',  'Caption', 14, TRANSLATE( globals.!bootdrv )       /* 14: System boot volume: %1 */ 
    1645     CALL NLSSetText 'DT_CUPSPATH',   'Caption', 15, TRANSLATE( globals.!cupsdir )       /* 15: Local CUPS directory: %1 */ 
     1644    CALL NLSSetText 'DT_BOOTDRIVE',  'Caption', 14, TRANSLATE( globals.!bootdrv )       /* 14: System boot volume: %1 */
     1645    CALL NLSSetText 'DT_CUPSPATH',   'Caption', 15, TRANSLATE( globals.!cupsdir )       /* 15: Local CUPS directory: %1 */
    16461646    CALL NLSSetText 'DT_REPOSITORY', 'Caption', 16, TRANSLATE( globals.!repository )    /* 16: Local driver repository: %1 */
    16471647
     
    17301730    ELSE DO                                             /* 112: No eCups-compatible OS/2 presentation drivers are installed. */
    17311731                                                        /* 113: Please install the ECUPS or ECUPS-HP printer driver before continuing. */
    1732         CALL VRMessage VRWindow(), 
    1733                        NLSGetMessage( 112 ) || '0d0a0d0a'x || NLSGetMessage( 113 ),, 
     1732        CALL VRMessage VRWindow(),
     1733                       NLSGetMessage( 112 ) || '0d0a0d0a'x || NLSGetMessage( 113 ),,
    17341734                       NLSGetMessage( 114 ), 'E'                                        /* 114: Missing PM Driver */
    17351735        CALL VRSet 'PB_CREATEOK', 'Enabled', 0
     
    17831783        CALL VRSet 'LB_OS2MODELS', 'Selected', best
    17841784
    1785     CALL NLSSetText 'DT_MODEL1', 'Caption',, 
     1785    CALL NLSSetText 'DT_MODEL1', 'Caption',,
    17861786                    121, globals.!prt_nick, globals.!os2driver      /* 121: The printer "%1" could not ... to applications. */
    17871787    CALL NLSSetText 'DT_MODEL2', 'Caption', 122                     /* 122: You can select one of ... use a generic driver. */
Note: See TracChangeset for help on using the changeset viewer.