Please enable JavaScript to view this site.

Translate the given formatted string for current VM language code or user supplied language code.

Syntax

tr(string text): string

tr(string lc, string text): string

text

Formatted source text

lc

Language code

Result

Return translated string

Format string has the following syntax:

Notice that:

When a required language code is not defined, the first valid is returned;

The special character ^ separate  different translation;

If format string has not the right syntax, will be treated as a normal string, so it will be not translated;

Current language code can obtained with languageCode() function.

Examples

Example of use of translation:

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC