/* Cr‚ation des objets d'installation de XWorkplace version fran‡aise (033) (C) 1998-2000 Ulrich M”ller. Traduction (C) 2003-2005 �quipe de traduction fran‡aise de XWorkplace - Laurent Catinaud, Aymeric Peyret, Ren‚ Louisor-Marchini, Guillaume Gay. */ /* Ce fichier est invoqu‚ par WarpIN aprŠs que tous les fichier ont ‚t‚ d‚ball‚es. CROBJxxx.CMD est appel‚ … son tour pour que le dossier de configuration soit cr‚‚. */ /* Modifiez le code du pays ci-dessous en fonction de celui correspondant … la langue employ‚e. */ LanguageCode = "033"; /* Ici figurent les titres des objets devant ˆtre cr‚‚s. Traduisez-les dans votre langue. */ XWorkplace = "XWorkplace"; OS2 = "OS/2" /* Title of the Desktop folder; choose a faily long title, or the installation might fail if that object already exists */ XFolderMain = "Installation "||XWorkplace; /* "Introduction" object (SmartGuide) */ XFolderIntro = "Introduction"; OnlineReference = "Guide d'utilisation de "||XWorkplace; /* other objects */ WorkplaceShell = "Bureau ‚lectronique"; XWPSetup = "ParamŠtrage de "||XWorkplace; XWPClassList = "Liste des classes WPS"; OS2Kernel = "Noyau d'"||OS2; Screen = "�cran"; Media = "Multimedia"; String = "ChaŒne de paramŠtres"; Mouse = "Souris"; Keyboard = "Clavier"; Sound = "Son"; XShutdown = "Arrˆt avanc‚..."; /* font folder added with V0.9.7 */ FontFolder = "Polices"; /* the following three added with V0.9.19 */ Lockup = "Verrouillage imm‚diat"; FindObjects = "Recherche d'objets"; Shutdown = "Arrˆt"; /********************************************* * * Portion ind‚pendante de la langue * * Remarque : Tout ceci a ‚t‚ r‚‚crit dans * la version v0.9.19, mais la partie … * traduire ci-dessus n'a pas ‚t‚ modifi‚e. * Vous n'avez donc qu'… copier la partie * ci-dessous, la coller sous la partie * prise dans instl001.cmd et placer le * tout dans votre fichier traduit, et ‡a * devrait toujours fonctionner. * * Note du traducteu : plus bas, il y a * quand mˆme les rapports de cr‚ation et * d'erreur de cr‚ation d'objets que je me * suis permis de traduire. * * Guillaume Gay 2005-11-01 * ********************************************/ 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; /* 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 'Erreur sur l''objet "'title'": ID d''objet non fourni.'; exit; end if (left(id, 1) \= '<') then do Say 'Erreur sur l''objet "'title'": l''ID d''objet ne commence pas par "<".'; exit; end if (right(id, 1) \= '>') then do Say 'Erreur sur l''objet "'title'": l''ID d''objet ne se termine pas par ">".'; exit; end len = length(setup); if ((len > 0) & (right(setup, 1) \= ';')) then do Say 'Erreur sur l''objet "'title'": la chaŒne de paramŠtres "'setup'" ne se termine pas par un ";".'; exit; end call charout , 'Cr‚ation de "'title'" de classe "'class'", avec les paramŠtres "'setup'"... ' rc = SysCreateObject(class, title, target, setup"TITLE="title";OBJECTID="id";", "U"); if (\rc) then do rc = SysCreateObject(class, title, "", setup"TITLE="title";OBJECTID="id";", "U"); end; if (\rc) then do Say 'Avertissement : l''objet "'title'" de classe "'class'" n''a pas pu ˆtre cr‚‚.' end else do Say "OK" end id = ""; return; CreateObjectWithShadow: idOld = id; call CreateObject; class = "WPShadow"; setup = "SHADOWID="idOld";" id = idOfShadow; target = ""; call CreateObject; return;