Jamroom Logo   Get Jamroom now for as low as !
The Powerful Social Media Platform
free download!
key features
key features
Newsletter
E-mail Address:

Spotlight
The-Muzic
251523 "In September 2006 we decided to create an MP3 hosting and promotion site to help unsigned artists. Originally this was all done by hand in HTML and CSS - and although it looked OK, the site had very limited features. While trawling the net one day we discovered Jamroom - which took our site from a basic spare time MP3 site to a very advanced music site in a short space of time. The features keep improving and therefore so do the options we can offer our members."
{jr_image_rotator} {jr_image_rotator} Index {jr_lang} {jr_lang}
 

{jr_lang_prepare}


The {jr_lang_prepare} function is used to "prepare" a template for using the {jr_lang} template function.  If you would like your Skin and Theme templates to be multi-lingual, then this is the method to do so.

Tip: The {jr_lang_prepare} function should be the first function called at the very top of a template file, and only needs to be called once to be available to all templates that may be included within the template containing the {jr_lang_prepare} function call.

Parameters:

Name Type Required Default Description
default string yes n/a The "default" parameter tells Jamroom which language file to use as the "Default" language.  The value given should be the name of the language file, minus the .php extension, and must be located within the "lang" sub directory of the skin/theme.
theme string no n/a The "theme" option tells Jamroom that you want the language strings to be loaded from the language file found in the given "theme" lang directory - i.e. theme="Sage"
skin string no n/a If the "skin" parameter is given, it tells Jamroom that you want the language strings to be loaded from the language file found in the given "skin" lang directory - i.e. skin="Sage"
language string no n/a If the "language" string is given, it overrides the users preferred language and forces the strings to be pulled from the given language - i.e. language="en-US"

 

Example Usage:

{* Bring in our language strings based on the users selected language *}
{jr_lang_prepare skin="Sage" default="en-US"}
<html>
<head>
<title>Welcome to Jamroom!</title>
</head>

....

 

{jr_image_rotator} {jr_image_rotator} page 156 of 184 {jr_lang} {jr_lang}
Home | Download | Support | Demo | Members | Purchase | Marketplace | Contact | Privacy
©2003 - 2008 Talldude Networks, LLC.