This class provides a unique and easy way of adding different languages to your applciation. The language file is actualy a text file that can be added to resources of your applciation or can be accessed at runtime. Format of languge file must be each entry on a separate line as:
Example of a simplest language file:
To add file in resources you must make sure that resource type must be RCP_LANG, to compile a language file with resources use following example:
115 RCP_LANG DISCARDABLE "language_file.txt"
Where 115 is the resource Id, RCP_LANG is the required resource type, and "language_file.txt" is the file to be added to application resources.
After the reources are compiled, the lanauge is added to your application.
To access lanauge and language variables from resources:
//where 115 is Resource Id
//disply some variables from language
//assumed form1 is a Form already defined
form1.msgBox(lang["name"] + " is " + lang["occupation"]);
//which will display 'Ali Imran is CEO' if above mentioned language file is compiled with you application.
Moreover, you can also load language files at runtime, as: