Jamroom Logo
Newsletter
Member Spotlight
411292
TheBeat.fm
"TheBeat.fm was established on the foundation and confidence that we could provide and increase exposure to independent musicians, agents and labels. After searching for scripts, we fortunately found Jamroom. Jamroom gives the musician complete control over how they market themselves - and allows us to concentrate more on marketing ourselves as a business. Jamroom has helped enable us run successful contests, promoting musicians for events, and we are even currently planning 2 major California concerts. This couldn’t have happened as efficient as it has without the support and help of Jamroom."
Follow Jamroom on Twitter!

This document applies to Jamroom 3 only!
For current Jamroom 4 Documentation, visit the main Jamroom Documentation section.

{jr_image_rotator} Index {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} page 157 of 185 {jr_lang}
Solutions Products Support Community Company
Social Media Platform
Social Networking Software
Musician Website Manager
Community Builder
Jamroom Core
Jamroom Addons
Jamroom Modules
Jamroom Marketplace
Support Forum
Documentation
Support Center
Contact Support
Community Forum
Member Sites
Developers
About Us
Contact Us
Privacy Policy
©2003 - 2012 Talldude Networks, LLC.