ITranslatorTranslate Method (String, NullableGuid, Object) |
Returns the translation value of the specified namespace/key
Namespace:
AskiaPortalCmn
Assembly:
AskiaPortalCmn (in AskiaPortalCmn.dll) Version: 1.7.0-build068
Syntax string Translate(
string key,
Nullable<Guid> moduleGuid = null,
params Object[] args
)
Function Translate (
key As String,
Optional moduleGuid As Nullable(Of Guid) = Nothing,
ParamArray args As Object()
) As String
String^ Translate(
String^ key,
Nullable<Guid> moduleGuid = nullptr,
... array<Object^>^ args
)
Parameters
- key
- Type: SystemString
Key of the translation - moduleGuid (Optional)
- Type: SystemNullableGuid
GUID of the module from where the translation belongs to.
If null or omit, the CurrentModule will be used. - args
- Type: SystemObject
Options to format the string (using String.Format)
Return Value
Type:
StringReturns the translation if found or the string formatted with `namespace.key`
See Also