/* Cr‚ation du dossier de configuration XWorkplace par d‚faut version fran‡aise (033) (C) 1998-2007 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 ex‚cut‚ … la fois par INSTLxxx.CMD et par XWorkplace directement si le dossier de configuration doit ˆtre (re)cr‚‚. */ /* Ici figurent les titres des objets devant ˆtre cr‚‚s. Traduisez-les dans votre langue. Le caractŠre "~" d‚finit la lettre devant ˆtre soulign‚e dans les ‚l‚ment de menu des objets du dossier de configuration XWorkplace. */ XWorkplace = "XWorkplace"; OS2 = "OS/2" /* Config Folder title */ ConfigFolder = "Dossier de configuration de "||XWorkplace; /* here come the objects in the config folder */ CommandLines = "Invites de ~commandes"; OS2Win = "~"||OS2||" en fenˆtre"; OS2Fullscreen = OS2||" ~plein ‚cran"; DosWin = "~DOS en fenˆtre"; DOSFullscreen = "DOS p~lein ‚cran"; CreateAnother = "Cr‚er ~nouveau"; Folder = "Dossier"; /* the following three were added with V0.9.16 */ URLFolder = "Dossier d'URL"; DataFile = "Fichier de donn‚es"; ProgramObject = "Objet Programme"; QuickSettings = "~ParamŠtrages rapides"; DefaultView = "Vue par ~d‚faut pour ce dossier"; IconView = "Affichage des ic“nes"; TreeView = "Affichage de l'arborescence"; DetailsView = "Affichage d‚taill‚"; SmallIcons = "Petites ic“nes pour les vues arborescence et ic“nes"; NormalIcons = "Ic“nes normales pour les vues arborescence et ic“nes"; ShowAllInTreeView = "Afficher tous les objets pouyr l'arborescence"; WorkplaceShell = "Bureau �lectronique"; XWPSetup = "ParamŠtrage de "||XWorkplace; OS2Kernel = "Noyau d'"||OS2; Screen = "�cran"; Mouse = "Souris"; Keyboard = "Clavier"; /* the following one is new with V0.9.19 */ OnlineReference = "Guide d'utilisation de "||XWorkplace; Treesize = "Taille de l'arborescence"; PackTree = "Emballer cette arborescence"; /* 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 '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;