Skip to content

ERPConnect.AbapLanguageKey

Namespace: ERPConnect
Assembly: ERPConnectStandard20.dll

Converts between 1-character proprietary SAP language keys and 2-character ISO 639-1 language keys (also used by SAP)

public static class AbapLanguageKey

Inheritance

objectAbapLanguageKey

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Methods

GetOneCharKey(string)

Returns a matching 1-character SAP language key

public static string GetOneCharKey(string languageKey)

Parameters

languageKey string

Returns

string

Exceptions

ArgumentException

OneToTwoCharKey(string)

Converts an 1-character SAP language key to a 2-character ISO 639-1 language key

public static string OneToTwoCharKey(string oneCharKey)

Parameters

oneCharKey string

1-character SAP language key

Returns

string

2-character ISO 639-1 language key

Exceptions

ArgumentException

TwoToOneCharKey(string)

Converts a 2-character ISO 639-1 language key to an 1-character SAP language key

public static string TwoToOneCharKey(string twoCharKey)

Parameters

twoCharKey string

2-character ISO 639-1 language key

Returns

string

1-character SAP language key

Exceptions

ArgumentException


Last update: January 4, 2024