The [Configuration Files] tab on the Settings dialog is designed to help you inspect and manage all the files that play a role in configuring gmStudio. The following instructions explain how to setup gmStudio to do custom language replacement.
- Open the Settings dialog by clicking the [Settings] button on the toolbar
- Click the [Configuration Files] tab
- Click the [Project] option in the [Translator Configuration] group box.
Once you have modified the gmBasic.xml and the VB7Lang.xml files is in your workspace, clicking the [Update Translator Configuration] button will create a new metalanguage information file (VB7Lang.vbi) in your workspace. This customized file will take precedence over the default copy that ships with gmStudio and will be used by the translator instead. of the default copy that ships with gmStudio.
Part 2: customizing default language files
- Identify the metalanguage file that you wish to update and make a copy of the file in your workspace -- if you have not already done so. For example, assume you want to modify the VBASIC.xml file.
- Click [Language Files] to list the default language files
- Modify the VBASIC.xml file in your work space user folder so as desired. For example.
- Click VBASIC.xml
- Click [Save As…] and save a copy of the VBASIC.xml in the [workspace]\usr\lang folder
- Modify the VB7Lang.xml file in your workspace so that it will include the VBASIC.xml in your workspace instead of the one in the default metalanguage folder.
The default location for default language files is specified as %MetaLangFolder%; for example:
The convention follow for customized Language Files is to place them in the usr\lang folder in the workspace and specify this using %UserFolder% script variable; for example:
- Rebuild the metalanguage information file by clicking the [Update Translator Configuration] button.
This processes the VB7Lang.xml script and display the Translator Configuration Build Log into the text box.
If the process is successful, the listing will show the directory listing for the new VB7Lang.VBI file in your workspace.