BeSly Software Solutions About yab Demos About us Admin


translate$() -- translate a string

Translation$ = TRANSLATE$(Source$)

The counterpart to the localize command is translate$(). It translates the string Source$ according to known dictionaries (see localize for more information about dictionaries) into the language currently set as default.

Note: However, supporting the localization of your program is a good idea for BeOS users too because localization support might be added soon to BeOS yab.

print translate$("File")

Using only the system dictionaries, we can obtain the translation of "File" according to the language set in the preferences.

Related: localize, LANGUAGE_AVAILABLE$