/* Create XWorkplace installation objects Spanish version (034) (C) 1998-2000 Ulrich M”ller. */ /* This file gets called by WarpIN after all files have been unpacked. This calls CROBJxxx.CMD in turn to have the config folder created. */ /* change the following language code to your language. */ LanguageCode = "034"; /* Here come the titles of the objects to be created. Translate these to your language. */ XWorkplace = "XWorkplace"; OS2 = "OS/2" /* Title of the Desktop folder; choose a fairly long title, or the installation might fail if that object already exists */ XFolderMain = XWorkplace||":^Escritorio extendido"; /* "Introduction" object (SmartGuide) */ XFolderIntro = "Introducci¢n"; OnlineReference = "Gu¡a del usuario^de "||XWorkplace; /* other objects */ WorkplaceShell = "Workplace Shell"; XWPSetup = "Opciones de^"||XWorkplace; XWPClassList = "Clases del WPS"; OS2Kernel = "N£cleo de "||OS2; Screen = "Pantalla"; Media = "Multimedia"; String = "Cadena de^configuraci¢n"; Mouse = "Rat¢n"; Keyboard = "Teclado"; Sound = "Sonido"; XShutdown = "Concluir eXtendido..."; /* font folder added with V0.9.7 */ FontFolder = "Fuentes"; /* the following three added with V0.9.19 */ Lockup = "Bloquear ahora"; FindObjects = "Buscar objetos"; Shutdown = "Concluir"; XCenter = "XCenter"; /********************************************* * * NLS-independent portion * * Note: All of this was rewritten with V0.9.19, * but the NLS part above is unchanged. Just copy * the entire chunk below from instl034.cmd to your * translated file, and it should still work. * ********************************************/ call RxFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs' call SysLoadFuncs parse source dir; parse var dir x1 x2 dir; dir = filespec("D", dir)||filespec("P", dir); pdir = left(dir, length(dir)-8); idir = dir; dir = pdir||"bin\"; OnlineReferenceFile = "xfldr"LanguageCode".inf"; HelpLibrary = "HELPLIBRARY="pdir||"\help\xfldr"LanguageCode".hlp;" /* main folder */ class = "WPFolder"; title = XFolderMain; setup = "DEFAULTVIEW=ICON;SHOWALLINTREEVIEW=YES;ALWAYSSORT=NO;ICONFILE="pdir||"\install\xwp.ico;ICONNFILE=1,"pdir||"\install\xwp_o.ico;"HelpLibrary"HELPPANEL=84;" id = "" target = ""; call CreateObject; /* User Guide */ class = "WPProgram"; title = OnlineReference; setup = "EXENAME=view.exe;PARAMETERS="pdir||OnlineReferenceFile" %;" /* added % to parameters list in order not to break the config folder shadow V0.9.20 (2002-07-03) [umoeller] */ id = "" target = ""; call CreateObject; /* "Readme" shadow (added V0.9.2) */ class = "WPShadow"; title = "readme"; setup = "SHADOWID="pdir||"readme;"; id = "" target = ""; call CreateObject; /* "Readme.nls" shadow (not present in English version) class = "WPShadow"; title = "readme.nls"; setup = "SHADOWID="pdir||"readme.nls;"; id = "" target = ""; call CreateObject; */ /* create "XWorkplace Setup" (added V0.9.0) */ class = "XWPSetup"; title = XWPSetup; setup = "" id = "" target = ""; idOfShadow = ""; call CreateObjectWithShadow; /* "Fonts folder" ... added with V0.9.7 */ class = "XWPFontFolder"; title = FontFolder; setup = "DEFAULTVIEW=DETAILS;DETAILSCLASS=XWPFontObject;SORTCLASS=XWPFontObject;"; id = "" target = ""; idOfShadow = ""; /* was missing V0.9.20 */ call CreateObjectWithShadow; /* create "Workplace Shell" */ class = "XFldWPS"; title = WorkplaceShell; setup = ""; id = ""; target = ""; idOfShadow = ""; call CreateObjectWithShadow; /* create "OS/2 Kernel" */ class = "XFldSystem"; title = OS2Kernel; setup = ""; id = "" target = ""; idOfShadow = ""; call CreateObjectWithShadow; /* create "Screen" (added V0.9.2) */ class = "XWPScreen"; title = Screen; setup = ""; id = "" target = ""; idOfShadow = ""; call CreateObjectWithShadow; /* create "Media" (added V0.9.5) */ class = "XWPMedia"; title = Media; setup = ""; id = "" target = ""; idOfShadow = ""; call CreateObjectWithShadow; /* "Mouse" shadow (added V0.9.2) */ class = "WPShadow"; title = Mouse; setup = "SHADOWID=;"; id = "" target = ""; call CreateObject; setup = "SHADOWID=;"; id = "" call CreateObject; /* "Keyboard" shadow (added V0.9.2) */ class = "WPShadow"; title = Keyboard; setup = "SHADOWID=;"; id = ""; target = ""; call CreateObject; /* "Sound" shadow (added V0.9.2) */ class = "WPShadow"; title = Sound; setup = "SHADOWID=;"; id = "" target = ""; call CreateObject; /* create "WPS Class List" (added V0.9.2) */ class = "XWPClassList"; title = XWPClassList; setup = ""; id = "" target = ""; idOfShadow = ""; call CreateObjectWithShadow; /* create "Setup String" template (added V0.9.5) */ class = "XWPString"; title = String; setup = "TEMPLATE=YES;"; id = "" target = ""; call CreateObject; /* XShutdown... changed with V0.9.7 */ class = "WPProgram"; title = XShutdown; setup = "EXENAME="dir"xshutdwn.cmd;MINIMIZED=YES;"HelpLibrary"HELPPANEL=17;"; id = "" target = ""; call CreateObject; /* the following three added with V0.9.19 and redone with V0.9.20 */ commonXWPString = "DEFAULTOBJECT=;CONFIRMINVOCATION=NO;NOSTRINGPAGE=YES;HELPLIBRARY=WPHELP.HLP;HELPPANEL" /* create "Lockup" setup string object */ class = "XWPString"; title = Lockup; setup = "SETUPSTRING=MENUITEMSELECTED%3D705%3B;"commonXWPString"=8004;ICONRESOURCE=78,PMWP;" id = "" target = ""; call CreateObject; /* create "Find objects" setup string object */ class = "XWPString"; title = FindObjects; setup = "SETUPSTRING=MENUITEMSELECTED%3D8%3B;"commonXWPString"=1205;ICONRESOURCE=79,PMWP;"; id = ""; target = ""; call CreateObject; /* create "Shutdown" setup string object */ /* setup string modified to use POSTSHUTDOWN=YES V0.9.20 */ class = "XWPString"; title = Shutdown; setup = "SETUPSTRING=POSTSHUTDOWN%3DYES%3B;"commonXWPString"=4001;ICONRESOURCE=80,PMWP;" id = ""; target = ""; call CreateObject; /* create XCenter (V0.9.7) moved this down V0.9.19 (2002-04-25) [umoeller] */ class = "XCenter"; title = XCenter; setup = ""; id = "" target = ""; call CreateObject; "@call "idir"crobj"LanguageCode exit; CreateObject: len = length(id); if (len == 0) then do Say 'Error with object "'title'": object ID not given.'; exit; end if (left(id, 1) \= '<') then do Say 'Error with object "'title'": object ID does not start with "<".'; exit; end if (right(id, 1) \= '>') then do Say 'Error with object "'title'": object ID does not end with ">".'; exit; end len = length(setup); if ((len > 0) & (right(setup, 1) \= ';')) then do Say 'Error with object "'title'": Setup string "'setup'" does not end in semicolon.'; exit; end call charout , 'Creating "'title'" of class "'class'", setup "'setup'"... ' rc = SysIni("USER", "PM_InstallObject", title||";"||class||";"||target||";RELOCATE", setup||"TITLE="||title||";OBJECTID="||id||";"); if (rc <> "") then do Say 'Warning: object "'title'" of class "'class'" could not be created.' end else do Say "OK" end id = ""; return; CreateObjectWithShadow: idOld = id; call CreateObject; class = "WPShadow"; setup = "SHADOWID="idOld";" id = idOfShadow; target = ""; call CreateObject; return;