3dak Client

Site.translate Method 

returns a tranlation for a string in a foreign language

[Visual Basic]
Public Function translate( _ 
   ByVal String As String, _ 
   Optional ByVal Boolean As Boolean = False _ 
) As String
[C#]
public string translate(
   string String,
   bool Boolean
);
[C++]
public: String* translate(
   String* String,
   bool Boolean
);
[JScript]
public function translate(
   String String,
   bool Boolean
): String;

Parameters

identifier
must be added to the 3dak system
canBeEmpty
if set to true the translate funtion returns a error message is the identifier is not set please set this parameter true if the translation is essential

Return Value

returns the translation set for the identifier in the current language returns "[ERR- DE.someIdentifer]" is a identifier is not set. if canBeEmpty is set to false and the translation value is empty "[MISSING- DE.someIdentifer]" is returned otherwise a empty string is returned.

Remarks

See Also

Site Class | ppm3dakClient Namespace