xLanguage Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The xLanguage class provides access to a list of language IDs and information about existing label files.
public ref class xLanguage : Microsoft::Dynamics::Ax::Xpp::XppObjectBase
[Microsoft.Dynamics.Ax.Xpp.KernelClass]
public class xLanguage : Microsoft.Dynamics.Ax.Xpp.XppObjectBase
[<Microsoft.Dynamics.Ax.Xpp.KernelClass>]
type xLanguage = class
inherit XppObjectBase
Public Class xLanguage
Inherits XppObjectBase
- Inheritance
- Attributes
Remarks
ISO 639 defines the names of languages, such as "en" for English. Microsoft has listed a set of language codes, such "en-us" for English (United States). These language codes are referred to in Finance and Operations as Language IDs. Finance and Operations uses "ko-jo" for Korean (Johab). In the Microsoft list, "ko" is both Korean and Korean (Johab). Finance and Operations uses "no-ny" for Norwegian (Nynorsk). In the Microsoft list, "no" is both Norwegian (Bokmal) and Norwegian (Nynorsk). Finance and Operations uses "es-tr" to represent Spanish (Spain - Traditional Sort). In the Microsoft list, "es" is both Spanish (Spain - Modern Sort) and Spanish (Spain - Traditional Sort). A language name in the following format, such as "English (United States)", is referred to as the description in Finance and Operations.
The following example prints all the language IDs from the Microsoft list and a list of existing label files.
static void aaaTestLanguage(args a)
{
int i;
int cnt;
str languageID;
str description;
str shortName;
cnt = xlanguage::languageCount();
for (i = 0; i<=cnt; i++)
{
languageID =xLanguage::index2languageID(i);
print "Language ", i, ":", languageID, ":";
}
cnt = xLanguage::labelFileCount();
for (i = 0; i<=cnt; i++)
{
shortName =xLanguage::labelFileNumber2LanguageID(i);
languageID =xLanguage::index2languageID(i);
description = xLanguage::languageID2Description(languageID);
print i, ":", shortName, ":", description;
}
pause;
}
Constructors
xLanguage() | |
xLanguage(IntPtr) |
Fields
__k_xLanguageId | |
kernelClass | (Inherited from XppObjectBase) |