Lasso Soft Inc. > Home

[ locale->displayvariant ]

Method

The [locale->displayvariant] method displays the variant of the given locale in the format of another locale. This method takes one parameter, the display locale object.

This method is used primarily for translation purposes.

  • Syntax
locale->displayvariant( translator_locale )
Examples
  • Beginner

Display the variant of a locale object in other languages

Use the [locale->displayvariant] method. This examples displays the vairant of the locale United States(computer) in various languages.

Code

local( aLocale = locale('en', 'US','POSIX'))

#aLocale->displayvariant(locale_default)+'\n'
#aLocale->displayvariant(locale_germany)+'\n'
#aLocale->displayvariant(locale_france)

Result

Computer
Posix
informatique

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft