From Clomosy Docs
No edit summary |
No edit summary |
||
| Line 6: | Line 6: | ||
<b>Example</b><br> | <b>Example</b><br> | ||
<pre> | <pre> | ||
var | var | ||
| Line 15: | Line 14: | ||
ShowMessage(S); | ShowMessage(S); | ||
} | } | ||
</pre> | </pre> | ||
Revision as of 10:47, 13 November 2024
function clStrToLan(const S:String):String;
The clStrToLan function operates based on the language setting of the device where the application is being used. It processes by using the vertical bar '|' as a separator. The sentence on the left side of the separator is defined in English, while the one on the right side is defined in Turkish.
Example
var
S : String;
{
S = clStrToLan('Ok|Tamam');
ShowMessage(S);
}
Output:
If the device's language is Turkish;
Tamam
If the device's language is English;
Ok