Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

OMI SDK

Use the Language namespace

The language namespace is contained within the RuntimeData assembly. The general parameters for using the language namespace, and accessing namespace properties and attributes, are as follows:

  • To call the current language (CurrentLanguage attribute):
    Call CurrentLanguage
    
    var CurrentLanguage = ArchestrA.Client.MyViewApp.Language.CurrentLanguage;
    // Get property change notification from event subscription.
    ArchestrA.Client.MyViewApp.Language.PropertyChanged + = this.LanguagePropertyChanged;
    private void LanguagePropertyChanged(object sender, PropertyChangedEventArgs e)
    // e.PropertyName will return the "CurrentLanguage" language attribute value.
    
  • To call the current locale ID (CurrentLCID attribute):
    Call CurrentLCID
    
    var CurrentLCID = ArchestrA.Client.MyViewApp.Language.CurrentLCID;
    // Get property change notification from event subscription.
    ArchestrA.Client.MyViewApp.Language.PropertyChanged + = this.LanguagePropertyChanged;
    private void LanguagePropertyChanged(object sender, PropertyChangedEventArgs e)
    // e.PropertyName will return the "CurrentLCID" language attribute value.
    
  • To call the current culture information (CurrentCultureInfo attribute):
    Call CurrentCultureInfo
    
    var CurrentLCID = ArchestrA.Client.MyViewApp.Language.CurrentLCID;
    // Get property change notification from event subscription.
    ArchestrA.Client.MyViewApp.Language.PropertyChanged + = this.LanguagePropertyChanged;
    private void LanguagePropertyChanged(object sender, PropertyChangedEventArgs e)
    // e.PropertyName will return the "CurrentLCID" language attribute value.
    
  • To return the list of configured languages:
    Return Languages
    
    var languages = ArchestrA.Client.MyViewApp.Language.Languages;
    
  • To return the list of configured LCIDs: 
    Example Title
    
    var lcids= ArchestrA.Client.MyViewApp.Language.Lcids;
    
  • To return the list of configured CultureInfos:
    Return CultureInfos
    
    var CultureInfos = ArchestrA.Client.MyViewApp.Language.CultureInfos;