Translate Method
- Last UpdatedNov 06, 2025
- 1 minute read
The Translate() method translates a specific string using the ID of the string, which is provided with the string as <id> at the end of the string, and the language ID of the user.
The input string must have the string ID included. If the string ID cannot be found in the language table to translate the string, the string that was passed in is returned with the <id> removed from the end of it.
'Declaration
Public Function Translate( _
ByVal inputString As String _
) As String
public string Translate(
string inputString
)
Parameters
- inputString
- Required. Holds the string to translate. The string must end with <id>, where id is the number representing the string ID.
Return Value
Returns the translated string if the string ID is found, or returns the passed-in
string if the string ID is not found. If the LanguageStrings object was set up to
append the string IDs, the returned string will have the string ID appended to the end
in the same format as it was passed in. If the Language string object was not set up to
append the string ID, the string is returned with no string ID appended.