/* Create default XWorkplace configuration folder Spanish version (034) (C) 1998-2007 Ulrich M”ller. */ /* This file is executed both by INSTLxxx.CMD and by XWorkplace directly if the config folder is to be (re)created. */ /* Here come the titles of the objects to be created. Translate these to your language. The "~" character determines the character for objects in the XWorkplace Configuration Folder which will then be underlined in the respective menu items. */ XWorkplace = "XWorkplace"; OS2 = "OS/2" /* Config Folder title */ ConfigFolder = "Configuraci˘n de "||XWorkplace; /* here come the objects in the config folder */ CommandLines = "~Indicadores de mandatos"; OS2Win = "~"||OS2||" ventana"; OS2Fullscreen = OS2||" ~pantalla completa"; DosWin = "~DOS ventana"; DOSFullscreen = "DOS p~antalla completa"; CreateAnother = "N~uevo objeto"; Folder = "~Carpeta"; /* the following three were added with V0.9.16 */ URLFolder = "Carpeta de ~URLs"; DataFile = "~Archivo de datos"; ProgramObject = "~Objeto de programa"; QuickSettings = "Confi~guraci˘n r pida"; DefaultView = "~Vista por omisi˘n de esta carpeta"; IconView = "Vista de ~iconos"; TreeView = "Vista de  r~bol"; DetailsView = "Vista de ~detalles"; SmallIcons = "Iconos ~peque¤os en v. de iconos y  rbol"; NormalIcons = "Iconos ~normales en v. de iconos y  rbol"; ShowAllInTreeView = "Mostrar ~todo en vista de  rbol"; WorkplaceShell = "Workplace Shell"; XWPSetup = "Opciones de^"||XWorkplace; OS2Kernel = "N£cleo de "||OS2; Screen = "Pantalla"; Mouse = "Rat˘n"; Keyboard = "Teclado"; /* the following one is new with V0.9.19 */ OnlineReference = "GuĦa del usuario^de "||XWorkplace; Treesize = "Calcular tama~¤o"; PackTree = "Comprimir a archivo ~ZIP"; /* where to create the config folder: */ TargetLocation = "" /********************************************* * * 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 crobj001.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\"; /* main config folder */ class = "WPFolder"; title = ConfigFolder; setup = "ICONVIEW=NONFLOWED,MINI;DEFAULTVIEW=ICON;SHOWALLINTREEVIEW=YES;ALWAYSSORT=NO;"; id = "" target = TargetLocation; call CreateObject; /* command prompts subfolder */ class = "WPFolder"; title = CommandLines; setup = "DEFAULTVIEW=ICON;ICONVIEW=NONFLOWED,MINI;SHOWALLINTREEVIEW=YES;ALWAYSSORT=NO;"; id = "" target = ""; call CreateObject; class = "WPProgram"; if (SysSearchPath("PATH", "CMDSHL.CMD") \= "") then do title = OS2Win||" (CmdShl)"; target = ""; setup = "EXENAME=cmdshl.cmd;PARAMETERS=%;PROGTYPE=WINDOWABLEVIO;CCVIEW=YES;"; id = ""; call CreateObject; end if (SysSearchPath("PATH", "BASH.EXE") \= "") then do title = OS2Win||" (bash)"; target = ""; setup = "EXENAME=bash.exe;PARAMETERS=%;PROGTYPE=WINDOWABLEVIO;CCVIEW=YES;"; id = ""; call CreateObject; end if (SysSearchPath("PATH", "KSH.EXE") \= "") then do title = OS2Win||" (ksh)"; target = ""; setup = "EXENAME=ksh.exe;PARAMETERS=%;PROGTYPE=WINDOWABLEVIO;CCVIEW=YES;"; id = ""; call CreateObject; end title = OS2Win; target = ""; setup = "EXENAME=*;PARAMETERS=%;PROGTYPE=WINDOWABLEVIO;CCVIEW=YES;"; id = ""; call CreateObject; title = OS2Fullscreen; setup = "EXENAME=*;PARAMETERS=%;PROGTYPE=FULLSCREEN;CCVIEW=YES;"; id = ""; call CreateObject; title = DosWin; setup = "EXENAME=*;PARAMETERS=%;PROGTYPE=WINDOWEDVDM;CCVIEW=YES;"; id = ""; call CreateObject; title = DosFullscreen; setup = "EXENAME=*;PARAMETERS=%;PROGTYPE=VDM;CCVIEW=YES;"; id = ""; call CreateObject; /* "create new" folder */ class = "WPFolder"; title = CreateAnother; target = ""; setup = "DEFAULTVIEW=ICON;ICONVIEW=NONFLOWED,MINI;SHOWALLINTREEVIEW=YES;ALWAYSSORT=NO;"; id = ""; call CreateObject; class = "WPFolder"; title = Folder; target = ""; setup = "TEMPLATE=YES;"; id = ""; call CreateObject; class = "WPUrlFolder"; title = URLFolder; id = ""; call CreateObject; class = "WPDataFile"; title = DataFile; id = ""; call CreateObject; class = "WPProgram"; title = ProgramObject; id = ""; call CreateObject; /* XWorkplace subfolder */ class = "WPFolder"; title = "~"||XWorkplace; target = ""; setup = "DEFAULTVIEW=ICON;ICONVIEW=NONFLOWED,MINI;SHOWALLINTREEVIEW=YES;ALWAYSSORT=NO;"; id = ""; call CreateObject; class = "WPShadow"; title = XWPSetup; target = ""; setup = "SHADOWID=;"; id = ""; call CreateObject; title = WorkplaceShell; setup = "SHADOWID=;"; id = ""; call CreateObject; title = Mouse; setup = "SHADOWID=;"; id = ""; call CreateObject; setup = "SHADOWID=;"; id = ""; call CreateObject; title = Keyboard; setup = "SHADOWID=;"; id = ""; call CreateObject; title = Screen; setup = "SHADOWID=;"; id = ""; call CreateObject; title = OS2Kernel; setup = "SHADOWID=;"; id = ""; call CreateObject; class = "WPProgram"; title = "---"; setup = ""; id = ""; call CreateObject; class = "WPShadow"; title = OnlineReference; setup = "SHADOWID=;"; id = ""; call CreateObject; class = "WPProgram"; title = "--- "; setup = ""; id = ""; call CreateObject; class = "WPShadow"; title = ConfigFolder; setup = "SHADOWID=;"; id = ""; call CreateObject; /* more items in main cfg folder */ class = "WPProgram"; title = "---"; target = ""; setup = ""; id = ""; call CreateObject; if (SysSearchPath("PATH", "NETSCAPE.EXE") \= "") then do title = "Netscape (DDE)"; setup = "EXENAME="dir"netscdde.exe;"; id = ""; call CreateObject; end title = Treesize; setup = "EXENAME="dir"treesize.exe;CCVIEW=YES;"; id = ""; call CreateObject; if (SysSearchPath("PATH", "ZIP.EXE") \= "") then do title = PackTree; setup = "EXENAME="dir"packtree.cmd;CCVIEW=YES;"; id = ""; call CreateObject; end 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;