Lasso Soft Inc. > Home

[ locale->displaycountry ]

Method

The [locale->displaycountry] method displays the name of the locale's country in the language of another locale.

The method requires one parameter, the locale to output the country name in.

  • Syntax
locale->displayCountry( translation_locale )
Examples
  • Beginner

To display the name of a country in another language.

Use the [locale->displaycountry] method. In this example we set a locale to en_US and use the method to display United States in french.

Code

local( myLocale = locale('en','US'))

#myLocale->displaycountry(locale_france)

Result

États-Unis

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