I need to see the code under the class xLanguage
.
In order to understand how to get the Language Description,
xLanguage::languageID2Description(str languageID) // method
That's a Kernel function, so you can't see the source code (practically).
Languages can be added/removed so I suspect it retrieves that description via the actual filesystem (likely somewhere in C:\Program Files\Microsoft Dynamics AX\60\Server\[aos_name]\bin\Application\Appl\Standard
) OR it's stored somewhere in the modelstore database.
If you are asking to see the code for the purposes of simply retrieving Description
for some other purpose (external system?), then the simplest thing would be to just create your own static table and load languages/descriptions into it for retrieval.
LanguageTable languageTable;
MyTable myTable;
ttsBegin;
while select languageTable
{
myTable.languageId = languageTable.LanguageId;
myTable.description = languageTable.languageDescription();
myTable.insert();
info(strFmt("Inserting %1: %2", languageTable.LanguageId, languageTable.languageDescription()));
}
ttsCommit;