Many times we are required to create text symbols for hardcoded texts, reason being that with text symbols translation becomes possible and then the same program can be used across different regions/countries with other languages.
Depending upon the number of the hardcoded text one has in his/her program text symbol creation can become either an easy or a difficult job. To create text symbol one can simply double click the hardcoded text and it will ask if you want to create a text symbol, then you move to the text symbol screen where you save and return back.
As a part of a CI initiative my company we managed to automate this process. We simply execute a program (source code provided below) and provide it with the ‘PROGRAM NAME’ of which we want to create text symbol and that’s it! The program create the text symbols where ever its necessary.
The information on which text is required for translation is picked up from extended code check program. Also if you have yourself given a number to a hardcoded text and forgot to create a text symbol for it, the program would do it for you. If you already have some text symbols created and are adding new ones then the next number is picked up by the program.
Using this program we were able to cut down on the development time. When I am coding I do not worry if I have to create a text symbol for the text and surely save some CLICKS.
One can modify the code as per his/her requirement. Also if you have any suggestions or improvement please do let me know.