A VB6 Add-in needs to be created ( i.e. add-in running in VB6 development GUI).
This VB6 Add-in needs to scan all controls of all forms in a project.
If the control has the property "Tag" and contains a certain string ( e.g. "ToTranslate"), the following actions needs to be performed :
- Create a new entry to a Access DB containing Project/Form/Control/(Index if control Array) and assigning a new RessourceID to it. Purpose is that when rescanning the same project, the same ressourceID will be used.
The original value shall also be kept in the DB. ie.
Project/Form/Control/Index/RessourceID/Original Value
- Check that in a given procedure of the form ( e.g. TranslateScreens), the following line is generated :
If control has no index :
[login to view URL] = [login to view URL](xxx) with xxx = the ressourceID assigned above
If the control has an index :
ControlName(Index).Caption = [login to view URL](xxx) with xxx = the ressourceID assigned above
Of course, this line don't need to be added if it is already present
FurtherMore, on add-in level :
The starting value of the RessourceID's can be choosen per project.
- If a VB group is opened in the VB6 GUI, than a choice of the available projects needs to be presented.
-Once a project is scanned, than the DB entries for a project needs to be exported to a RES text file, so it can be read in as a ressource file in VB6.