/*************************************************************************** * RasMol 2.7.1.1 * * * * RasMol * * Molecular Graphics Visualisation Tool * * 21 January 2001 * * * * Based on RasMol 2.6 by Roger Sayle * * Biomolecular Structures Group, Glaxo Wellcome Research & Development, * * Stevenage, Hertfordshire, UK * * Version 2.6, August 1995, Version 2.6.4, December 1998 * * Copyright (C) Roger Sayle 1992-1999 * * * * and Based on Mods by Arne Mueller * * Version 2.6x1, May 1998 * * Copyright (C) Arne Mueller 1998 * * * * Version 2.7.0, 2.7.1, 2.7.1.1 Mods by Herbert J. Bernstein * * Bernstein + Sons, P.O. Box 177, Bellport, NY, USA * * yaya@bernstein-plus-sons.com * * 2.7.0 March 1999, 2.7.1 June 1999, 2.7.1.1 Jan 2001 * * Copyright (C) Herbert J. Bernstein 1998-2001 * * * * Please read the file NOTICE for important notices which apply to this * * package. If you are not going to make changes to RasMol, you are not * * only permitted to freely make copies and distribute them, you are * * encouraged to do so, provided you do the following: * * * 1. Either include the complete documentation, especially the file * * NOTICE, with what you distribute or provide a clear indication * * where people can get a copy of the documentation; and * * * 2. Please give credit where credit is due citing the version and * * original authors properly; and * * * 3. Please do not give anyone the impression that the original * * authors are providing a warranty of any kind. * * * * If you would like to use major pieces of RasMol in some other program, * * make modifications to RasMol, or in some other way make what a lawyer * * would call a "derived work", you are not only permitted to do so, you * * are encouraged to do so. In addition to the things we discussed above, * * please do the following: * * * 4. Please explain in your documentation how what you did differs * * from this version of RasMol; and * * * 5. Please make your modified source code available. * * * * This version of RasMol is not in the public domain, but it is given * * freely to the community in the hopes of advancing science. If you make * * changes, please make them in a responsible manner, and please offer us * * the opportunity to include those changes in future versions of RasMol. * ***************************************************************************/ /* langsel.c */ /*************************************************************************** * * * The Spanish translations in langsel.c were provided in late 2000 and * * early 2001 by Fernando Gabriel Ranea , who * * created a version of RasMol with Spanish messages. Those translations * * were adapted by Herbert J. Bernstein to create a general multilingual * * structure for RasMol. In order to add another languages, define that * * language in langsel.h, define a token for that language in tokens.h, * * add code to recognize that token to tokens.c and command.c, and add * * parallel lines with translations to the new language to langsel.c. * * When entering menu items, you must identify a character in the item * * to be underlined as a menu bar accelerator character. The position of * * that character (starting from 0 for the left-most character) should be * * the last field of the line. In addition, all menu items need to be * * repeated for the Windows version with an ampersand ("&") before the * * menu bar accelerator character. * * * ***************************************************************************/ #define LANGSEL #include "rasmol.h" #include "graphics.h" #include "langsel.h" extern int Interactive; static langstr langstrs[] = { { "Invalid command syntax!\n", ErrSyntax, English,0}, { "¡Sintaxis de comando inválida!\n", ErrSyntax, Spanish,0}, { "Parameter value too large!\n", ErrBigNum, English,0}, { "¡Valor de parámetro demasiado larga!\n", ErrBigNum, Spanish,0}, { "Invalid parameter setting!\n", ErrBadOpt, English,0}, { "¡Valor de parámetro inválido!\n", ErrBadOpt, Spanish,0}, { "Invalid parameter name!\n", ErrParam, English,0}, { "¡Nombre de parámetro inválido!\n", ErrParam, Spanish,0}, { "Filename string expected!\n", ErrFilNam, English,0}, { "¡Se esperaba un nombre de archivo!\n", ErrFilNam, Spanish,0}, { "Molecule database loaded!\n", ErrBadLoad, English,0}, { "¡Base de datos de moléculas cargada!\n", ErrBadLoad, Spanish,0}, { "Integer value expected!\n", ErrNotNum, English,0}, { "¡Se esperaba un valor entero!\n", ErrNotNum, Spanish,0}, { "Comma separator missing!\n", ErrNotSep, English,0}, { "¡Separador coma perdido!\n", ErrNotSep, Spanish,0}, { "Close bracket ']' expected!\n", ErrNotBrac, English,0}, { "¡Se esperaba cerrar corchete ']'!\n", ErrNotBrac, Spanish,0}, { "No colour specified!\n", ErrNoCol, English,0}, { "¡No se ha especificado un color!\n", ErrNoCol, Spanish,0}, { "Unknown or incorrect colour!\n", ErrColour, English,0}, { "¡Color incorrecto o desconocido!\n", ErrColour, Spanish,0}, { "Invalid command argument!\n", ErrBadArg, English,0}, { "¡Argumento de comando inválido!\n", ErrBadArg, Spanish,0}, { "Syntax error in expression!\n", ErrBadExpr, English,0}, { "¡Error de sintaxis en la expresión!\n", ErrBadExpr, Spanish,0}, { "Close parenthesis ')' expected!\n", ErrParen, English,0}, { "¡Se esperaba cerrar paréntesis ')'!\n", ErrParen, Spanish,0}, { "Script command stack too deep!\n", ErrScript, English,0}, { "¡Pila del comando de script demasiado grande!\n", ErrScript, Spanish,0}, { "Open parenthesis '(' expected!\n", ErrFunc, English,0}, { "¡Se esperaba abrir parentesis '('!\n", ErrFunc, Spanish,0}, { "Invalid or missing atom set name!\n", ErrSetName, English,0}, { "¡Nombre de átomo inválido o erróneo!\n", ErrSetName, Spanish,0}, { "Not enough memory to define set!\n", ErrBadSet, English,0}, { "¡No hay suficiente memoria para definir!\n", ErrBadSet, Spanish,0}, { "Command disabled in script file!\n", ErrInScrpt, English,0}, { "¡Comando deshabilitado en el archivo de script!\n", ErrInScrpt, Spanish,0}, { "Command invalid (valid only within a script)!\n", ErrOutScrpt, English,0}, { "¡Comando inválido (comando válido sólo dentro un script!\n", ErrOutScrpt, Spanish,0}, { "Molecule database not loaded!\n", ErrBadMolDB, English,0}, { "¡Base de datos de moléculas no cargada!\n", ErrBadMolDB, Spanish,0}, { "Error: File '", StrErrFile, English,0}, { "¡Error: Archivo '", StrErrFile, Spanish,0}, { "' not found!\n\n", StrNotFnd, English,0}, { "' no encontrado!\n\n", StrNotFnd, Spanish,0}, { "Error: Unrecognised compression format!\n\n", StrCFmt, English,0}, { "¡Error: Formato de compresión no reconocido!\n\n", StrCFmt, Spanish,0}, { "Error: Unable to decompress file!\n\n", StrDcmp, English,0}, { "¡Error: Incapaz de descomprimir el archivo!\n\n", StrDcmp, Spanish,0}, { "Script command line too long!\n", StrSLong, English,0}, { "¡Script de línea de comando demasiado largo!\n", StrSLong, Spanish,0}, { "Command Error: Insufficient memory!\n", StrSMem, English,0}, { "¡Error de comando: Memoria insuficiente!", StrSMem, Spanish,0}, { "Unable to find RasMol help file!\n", StrHFil, English,0}, { "¡Incapaz de encontrar el archivo de ayuda del RasMol!\n", StrHFil, Spanish,0}, { "Ambiguous help topic requested!\n", StrHTop, English,0}, { "¡Tópico de ayuda requerido ambiguo!\n", StrHTop, Spanish,0}, { "No available help on requested topic!\n", StrHNone, English,0}, { "¡No hay ayuda disponible para el tópico requerido!\n", StrHNone, Spanish,0}, { "Command Error: Unable to reopen help file!\n", StrHROpn, English,0}, { "¡Error de comando: Incapaz de reabrir el archivo de ayuda!\n", StrHROpn, Spanish,0}, { "String constant unterminated!\n", StrCTerm, English,0}, { "¡Constante de cadena indeterminada!\n", StrCTerm, Spanish,0}, { "String constant too long!\n", StrCLong, English,0}, { "¡Constante de cadena muy larga !\n", StrCLong, Spanish,0}, { "Invalid floating point number!\n", StrFNum, English,0}, { "¡Número de punto flotante inválido!\n", StrFNum, Spanish,0}, { "No Atoms to Centre!\n", StrCent, English,0}, { "¡No hay átomos para centrar!\n", StrCent, Spanish,0}, { "Unable to copy to clipboard!\n", StrCClip, English,0}, { "¡Incapaz de copiar al portapapeles!\n", StrCClip, Spanish,0}, { "Cannot open dots file '", StrDFile, English,0}, { "¡No se puede abrir el archivo de puntos '", StrDFile, Spanish,0}, { "Warning: No suitable printer!\n", StrNPrint, English,0}, { "¡Cuidado: No hay impresora disponible!\n", StrNPrint, Spanish,0}, { "Unit Cell", StrUCell, English,0}, { "Célula Unidad", StrUCell, Spanish,0}, { "Space Group", StrSGroup, English,0}, { "Grupo Espacial", StrSGroup, Spanish,0}, { "No crystal symmetry data!\n", StrSymm, English,0}, { "¡No hay datos de simetría del cristal\n", StrSymm, Spanish,0}, { "Unrecognised command!\n", StrUnrec, English,0}, { "¡Comando no reconocido!\n", StrUnrec, Spanish,0}, { "Warning: Ignoring rest of command!\n", StrIgnore, English,0}, { "¡Cuidado: se ignora el resto del comando!\n", StrIgnore, Spanish,0}, { "Warning: Remote command too long!\n", StrRCLong, English,0}, { "¡Cuidado: comando remoto demasiado largo!\n", StrRCLong, Spanish,0}, { "Cannot open script file '", StrSFile, English,0}, { "¡No se puede abrir el archivo de script '", StrSFile, Spanish,0}, { "Identifier too long!\n", StrILong, English,0}, { "¡Identificador demasiado largo!\n", StrILong, Spanish,0}, { "Molecule name ......... ", StrMolNam, English,0}, { "Nombre de la Molécula . ", StrMolNam, Spanish,0}, { "Classification ........ ", StrClass, English,0}, { "Clasificación ......... ", StrClass, Spanish,0}, { "Secondary Structure ... ", StrSecSt, English,0}, { "Estructura Secundaria . ", StrSecSt, Spanish,0}, { "No Assignment\n", StrNoAsmt, English,0}, { "No Asignada\n", StrNoAsmt, Spanish,0}, { "PDB Data Records\n", StrPDBRec, English,0}, { "Registro PDB\n", StrPDBRec, Spanish,0}, { "Calculated\n", StrCalc, English,0}, { "Calculado\n", StrCalc, Spanish,0}, { "Database Code ......... ", StrDBCode, English,0}, { "Código de Base de Datos ", StrDBCode, Spanish,0}, { "Experiment Technique .. ", StrExpTec, English,0}, { "Técnica de Experimento ", StrExpTec, Spanish,0}, { "Number of Chains ...... ", StrNumChn, English,0}, { "Número de Cadenas ..... ", StrNumChn, Spanish,0}, { "Number of Groups ...... ", StrNumGrp, English,0}, { "Número de Grupos ...... ", StrNumGrp, Spanish,0}, { "Number of Atoms ....... ", StrNumAtm, English,0}, { "Número de Atomos ...... ", StrNumAtm, Spanish,0}, { "Number of Bonds ....... ", StrNumBnd, English,0}, { "Número de Enlaces ..... ", StrNumBnd, Spanish,0}, { "Number of Bridges ..... ", StrNumBrg, English,0}, { "Número de Puentes ..... ", StrNumBrg, Spanish,0}, { "Number of H-Bonds ..... ", StrNumHbd, English,0}, { "Número de Uniones-H ... ", StrNumHbd, Spanish,0}, { "Number of Helices ..... ", StrNumHel, English,0}, { "Número de Hélices ..... ", StrNumHel, Spanish,0}, { "Number of Strands ..... ", StrNumStrnd, English,0}, { "Número de Hebras ...... ", StrNumStrnd, Spanish,0}, { "Number of Turns ....... ", StrNumTrn, English,0}, { "Número de Giros ....... ", StrNumTrn, Spanish,0}, { "Memory allocation failed", StrMalloc, English,0}, { "Falla en la asignación de memoria", StrMalloc, Spanish,0}, { "Too many new residues", StrXSRes, English,0}, { "Demasiados residuos nuevos", StrXSRes, Spanish,0}, { "Too many new atom types", StrXSAtyp, English,0}, { "Demasiados tipos de átomos nuevos", StrXSAtyp, Spanish,0}, #ifndef MSWIN { "Open...", StrMOpen, English,0}, { "Save As...", StrMSaveAs, English,0}, { "Close", StrMClose, English,0}, { "", StrMEmpty, English,0}, #ifdef APPLEMAC { "Page Setup", StrMPSetup, English,0}, { "Print", StrMPrint, English,0}, { "Quit", StrMExit, English,0}, #else { "Exit", StrMExit, English,0}, #endif { "Abrir...", StrMOpen, Spanish,0}, { "Guardar como...", StrMSaveAs, Spanish,0}, { "Cerrar", StrMClose, Spanish,0}, { "", StrMEmpty, Spanish,0}, #ifdef APPLEMAC { "Configurar página", StrMPSetup, Spanish,3}, { "Imprimir", StrMPrint, Spanish,0}, { "Quitar", StrMExit, Spanish,0}, #else { "Salir", StrMExit, Spanish,0}, #endif { "Wireframe", StrMWirefr, English,0}, { "Backbone", StrMBackbn, English,0}, { "Sticks", StrMSticks, English,1}, { "Spacefill", StrMSpacefl, English,0}, { "Ball & Stick", StrMBallStk, English,0}, { "Ribbons", StrMRibbons, English,0}, { "Strands", StrMStrands, English,3}, { "Cartoons", StrMCartoon, English,0}, { "Alambre", StrMWirefr, Spanish,0}, { "Esqueleto", StrMBackbn, Spanish,0}, { "Bastones", StrMSticks, Spanish,3}, { "Espacio Completo", StrMSpacefl, Spanish,2}, { "Bolas & Bastones", StrMBallStk, Spanish,0}, { "Cintas", StrMRibbons, Spanish,0}, { "Hebras", StrMStrands, Spanish,0}, { "Dibujo", StrMCartoon, Spanish,0}, { "Monochrome", StrMMonochr, English,0}, { "CPK", StrMCPK, English,0}, { "Shapely", StrMShapely, English,0}, { "Group", StrMGroup, English,0}, { "Chain", StrMChain, English,1}, { "Temperature", StrMTemp, English,0}, { "Structure", StrMStruct, English,2}, { "User", StrMUser, English,0}, { "Model", StrMModel, English,2}, { "Alt", StrMAlt, English,0}, { "Monocromo", StrMMonochr, Spanish,0}, { "CPK", StrMCPK, Spanish,0}, { "Forma", StrMShapely, Spanish,0}, { "Grupo", StrMGroup, Spanish,0}, { "Cadena", StrMChain, Spanish,2}, { "Temperatura", StrMTemp, Spanish,0}, { "Estructura", StrMStruct, Spanish,3}, { "Usuario", StrMUser, Spanish,0}, { "Modelo", StrMModel, Spanish,2}, { "Alt", StrMAlt, Spanish,0}, { "Slab Mode", StrMSlab, English,0}, { "Hydrogens", StrMHydr, English,1}, { "Hetero Atoms", StrMHet, English,2}, { "Specular", StrMSpec, English,1}, { "Shadows", StrMShad, English,1}, { "Stereo", StrMStereo, English,5}, { "Labels", StrMLabel, English,0}, { "Modo Aserrado", StrMSlab, Spanish,6}, { "Hidrógenos", StrMHydr, Spanish,1}, { "Heteroátomos", StrMHet, Spanish,2}, { "Especular", StrMSpec, Spanish,2}, { "Sombras", StrMShad, Spanish,2}, { "Estereo", StrMStereo, Spanish,6}, { "Etiquetas", StrMLabel, Spanish,3}, { "Pick Off", StrMPOff, English,5}, { "Pick Ident", StrMPIdent, English,5}, { "Pick Distance", StrMPDist, English,5}, { "Pick Monitor", StrMPMon, English,0}, { "Pick Angle", StrMPAng, English,5}, { "Pick Torsion", StrMPTrsn, English,5}, { "Pick Label", StrMPLabl, English,5}, { "Pick Centre", StrMPCent, English,5}, { "Pick Coord", StrMPCoord, English,6}, { "Pick Bond", StrMPBond, English,5}, { "Rotate Bond", StrMRBond, English,0}, { "Rotate Mol", StrMRMol, English,7}, { "Rotate All", StrMRAll, English,7}, { "Desactivar elección", StrMPOff, Spanish,0}, { "Elegir identificación", StrMPIdent, Spanish,7}, { "Elegir distancia", StrMPDist, Spanish,9}, { "Elegir monitor", StrMPMon, Spanish,13}, { "Elegir ángulo", StrMPAng, Spanish,8}, { "Elegir torsiones", StrMPTrsn, Spanish,7}, { "Elegir etiqueta", StrMPLabl, Spanish,10}, { "Elegir centro", StrMPCent, Spanish,7}, { "Elegir coordenadas", StrMPCoord, Spanish,8}, { "Elegir enlance", StrMPBond, Spanish,7}, { "Girar enlance", StrMRBond, Spanish,0}, { "Girar molécula", StrMRMol, Spanish,6}, { "Girar todo", StrMRAll, Spanish,6}, { "GIF...", StrMGIF, English,0}, { "PostScript...", StrMPostscr, English,0}, { "PPM...", StrMPPM, English,0}, { "IRIS RGB...", StrMIRGB, English,5}, { "Sun Raster...", StrMSRast, English,0}, { "BMP...", StrMBMP, English,0}, { "PICT...", StrMPICT, English,1}, { "GIF...", StrMGIF, Spanish,0}, { "PostScript...", StrMPostscr, Spanish,0}, { "PPM...", StrMPPM, Spanish,2}, { "IRIS RGB...", StrMIRGB, Spanish,5}, { "Sun Raster...", StrMSRast, Spanish,0}, { "BMP...", StrMBMP, Spanish,0}, { "PICT...", StrMPICT, Spanish,1}, { "About RasMol...", StrMAbout, English,0}, { "User Manual...", StrMUserM, English,0}, { "Acerca del RasMol...", StrMAbout, Spanish,0}, { "Manual del Usuario...", StrMUserM, Spanish,0}, { "Undo", StrMUndo, English,0}, { "Cut", StrMCut, English,1}, { "Copy", StrMCopy, English,1}, { "Paste", StrMPaste, English,0}, #ifdef APPLEMAC { "Clear", StrMClear, English,1}, #else { "Delete", StrMDelete, English,0}, #endif { "Select all", StrMSelAll, English,0}, { "Deshacer", StrMUndo, Spanish,0}, { "Cortar", StrMCut, Spanish,2}, { "Copiar", StrMCopy, Spanish,1}, { "Pegar", StrMPaste, Spanish,0}, #ifdef APPLEMAC { "Borrar", StrMClear, Spanish,0}, #else { "Borrar", StrMDelete, Spanish,0}, #endif { "Seleccionar todo", StrMSelAll, Spanish,0}, { "File", StrMFile, English,0}, { "Edit", StrMEdit, English,0}, { "Display", StrMDisplay, English,0}, { "Colours", StrMColour, English,0}, { "Options", StrMOpt, English,0}, { "Settings", StrMSettings,English,0}, { "Export", StrMExport, English,1}, #ifdef APPLEMAC { "Window", StrMWindow, English,0}, #endif { "Help", StrMHelp, English,0}, { "Archivo", StrMFile, Spanish,0}, { "Editar", StrMEdit, Spanish,0}, { "Mostrar", StrMDisplay ,Spanish,0}, { "Colores", StrMColour, Spanish,0}, { "Opciones", StrMOpt, Spanish,0}, { "Configuraciones", StrMSettings,Spanish,3}, { "Exportar", StrMExport, Spanish,1}, #ifdef APPLEMAC { "Ventana", StrMWindow, Spanish,0}, #endif { "Ayuda", StrMHelp, Spanish,1}, #ifdef APPLEMAC { "Main Window", StrMMainWin, English,0}, { "Command Line", StrMCmndLin, English,0}, { "Ventana principal", StrMMainWin, Spanish,0}, { "Línea de comando", StrMCmndLin, Spanish,0}, #endif #else { "&Open ...", StrMOpen, English,0}, { "&Information", StrMInfo, English,0}, { "&Close", StrMClose, English,0}, { "&Print", StrMPrint, English,0}, { "P&rint Setup", StrMPSetup, English,0}, { "&Exit", StrMExit, English,0}, { "&Abrir ...", StrMOpen, Spanish,0}, { "&Información", StrMInfo, Spanish,0}, { "&Cerrar", StrMClose, Spanish,0}, { "Im&primir", StrMPrint, Spanish,0}, { "Con&figurar impresora", StrMPSetup, Spanish,3}, { "&Salir", StrMExit, Spanish,0}, { "&Wireframe", StrMWirefr, English,0}, { "&Backbone", StrMBackbn, English,0}, { "S&ticks", StrMSticks, English,1}, { "&Spacefill", StrMSpacefl, English,0}, { "&Ball && Stick", StrMBallStk, English,0}, { "&Ribbons", StrMRibbons, English,0}, { "Str&ands", StrMStrands, English,3}, { "&Cartoons", StrMCartoon, English,0}, { "&Alambre", StrMWirefr, Spanish,0}, { "&Esqueleto", StrMBackbn, Spanish,0}, { "Bas&tones", StrMSticks, Spanish,3}, { "Es&pacio Completo", StrMSpacefl, Spanish,2}, { "&Bolas && Bastones", StrMBallStk, Spanish,0}, { "&Cintas", StrMRibbons, Spanish,0}, { "&Hebras", StrMStrands, Spanish,0}, { "&Dibujo", StrMCartoon, Spanish,0}, { "&Monochrome", StrMMonochr, English,0}, { "&CPK", StrMCPK, English,0}, { "&Shapely", StrMShapely, English,0}, { "&Group", StrMGroup, English,0}, { "C&hain", StrMChain, English,1}, { "&Temperature", StrMTemp, English,0}, { "St&ructure", StrMStruct, English,2}, { "&User", StrMUser, English,0}, { "Mo&del", StrMModel, English,2}, { "&Alt", StrMAlt, English,0}, { "&Monocromo", StrMMonochr, Spanish,0}, { "&CPK", StrMCPK, Spanish,0}, { "&Forma", StrMShapely, Spanish,0}, { "&Grupo", StrMGroup, Spanish,0}, { "Ca&dena", StrMChain, Spanish,2}, { "&Temperatura", StrMTemp, Spanish,0}, { "Est&ructura", StrMStruct, Spanish,3}, { "&Usuario", StrMUser, Spanish,0}, { "Mo&delo", StrMModel, Spanish,2}, { "&Alt", StrMAlt, Spanish,0}, { "&Slab Mode", StrMSlab, English,0}, { "H&ydrogens", StrMHydr, English,1}, { "He&tero Atoms", StrMHet, English,2}, { "S&pecular", StrMSpec, English,1}, { "S&hadows", StrMShad, English,1}, { "Stere&o", StrMStereo, English,5}, { "&Labels", StrMLabel, English,0}, { "Modo A&serrado", StrMSlab, Spanish,6}, { "H&idrógenos", StrMHydr, Spanish,1}, { "He&teroátomos", StrMHet, Spanish,2}, { "Es&pecular", StrMSpec, Spanish,2}, { "So&mbras", StrMShad, Spanish,2}, { "Estere&o", StrMStereo, Spanish,6}, { "Eti&quetas", StrMLabel, Spanish,3}, { "Pick &Off", StrMPOff, English,5}, { "Pick &Ident", StrMPIdent, English,5}, { "Pick &Distance", StrMPDist, English,5}, { "&Pick Monitor", StrMPMon, English,11}, { "Pick &Angle", StrMPAng, English,5}, { "Pick &Torsion", StrMPTrsn, English,5}, { "Pick &Label", StrMPLabl, English,5}, { "Pick &Centre", StrMPCent, English,5}, { "Pick C&oord", StrMPCoord, English,6}, { "Pick &Bond", StrMPBond, English,5}, { "&Rotate Bond", StrMRBond, English,0}, { "Rotate &Mol", StrMRMol, English,7}, { "Rotate &All", StrMRAll, English,7}, { "&Desactivar elección", StrMPOff, Spanish,0}, { "Elegir &identificación", StrMPIdent, Spanish,7}, { "Elegir di&stancia", StrMPDist, Spanish,9}, { "Elegir monito&r", StrMPMon, Spanish,13}, { "Elegir á&ngulo", StrMPAng, Spanish,8}, { "Elegir &torsiones", StrMPTrsn, Spanish,7}, { "Elegir eti&queta", StrMPLabl, Spanish,10}, { "Elegir ¢ro", StrMPCent, Spanish,7}, { "Elegir c&oordenadas", StrMPCoord, Spanish,8}, { "Elegir &enlance", StrMPBond, Spanish,7}, { "&Girar enlance", StrMRBond, Spanish,0}, { "Girar &molécula", StrMRMol, Spanish,6}, { "Girar &todo", StrMRAll, Spanish,6}, { "&GIF", StrMGIF, English,0}, { "&EPSF", StrMPostscr, English,0}, { "&PPM", StrMPPM, English,0}, { "&RAST", StrMSRast, English,0}, { "&BMP", StrMBMP, English,0}, { "&GIF", StrMGIF, Spanish,0}, { "&EPSF", StrMPostscr, Spanish,0}, { "&PPM", StrMPPM, Spanish,0}, { "&RAST", StrMSRast, Spanish,0}, { "&BMP", StrMBMP, Spanish,0}, { "&About RasMol...", StrMAbout, English,0}, { "&User Manual...", StrMUserM, English,0}, { "&Acerca del RasMol...", StrMAbout, Spanish,0}, { "&Manual del Usuario...", StrMUserM, Spanish,0}, { "&Undo", StrMUndo, English,0}, { "C&ut", StrMCut, English,1}, { "C&opy", StrMCopy, English,1}, { "&Paste", StrMPaste, English,0}, { "&Delete", StrMDelete, English,0}, { "&Select all", StrMSelAll, English,0}, { "&Deshacer", StrMUndo, Spanish,0}, { "Co&rtar", StrMCut, Spanish,2}, { "C&opiar", StrMCopy, Spanish,1}, { "&Pegar", StrMPaste, Spanish,0}, { "&Borrar", StrMDelete, Spanish,0}, { "&Seleccionar todo", StrMSelAll, Spanish,0}, { "&File", StrMFile, English,0}, { "&Edit", StrMEdit, English,0}, { "&Display", StrMDisplay, English,0}, { "&Colours", StrMColour, English,0}, { "&Options", StrMOpt, English,0}, { "&Settings", StrMSettings,English,0}, { "E&xport", StrMExport, English,1}, { "&Help", StrMHelp, English,0}, { "&Archivo", StrMFile, Spanish,0}, { "&Editar", StrMEdit, Spanish,0}, { "&Mostrar", StrMDisplay ,Spanish,0}, { "&Colores", StrMColour, Spanish,0}, { "&Opciones", StrMOpt, Spanish,0}, { "Con&figuraciones", StrMSettings,Spanish,3}, { "E&xportar", StrMExport, Spanish,1}, { "A&yuda", StrMHelp, Spanish,1}, #endif { "PDB file name:", StrPrmtPDB, English,0}, { "Image file name:", StrPrmtImg, English,0}, { "Molecule file name:", StrPrmtMol, English,0}, { "Nombre del archivo PDB:", StrPrmtPDB, Spanish,0}, { "Nombre del archivo de imagen:", StrPrmtImg, Spanish,0}, { "Nombre del archivo de molécula:", StrPrmtMol, Spanish,0} }; void SwitchLang( language lang ) { int ii; int kmsg; kmsg = sizeof(langstrs)/sizeof(langstr); for (ii = 0; ii < MaxStrFlag; ii++) { MsgStrs[ii] = (char *)0; MsgLens[ii] = 0; MsgAuxl[ii] = 0; } for (ii = 0; ii < kmsg; ii++) { if (langstrs[ii].lang == lang) { MsgStrs[langstrs[ii].msgno] = langstrs[ii].msg; MsgLens[langstrs[ii].msgno] = strlen(langstrs[ii].msg); MsgAuxl[langstrs[ii].msgno] = langstrs[ii].aux; } } if (Interactive) ReDrawWindow(); }