User Tools

Site Tools


Sidebar

startup_tutorial_and_checklist:design_configuration:smarty_template_code_extensions:language_specific_display

Language Specific Display

The language id of the person browsing the site is always available within smarty templates through the following:

{$language_id}

While the software does allow you to set template sets specifically for each language you could also have a common template between both sets where you wish to include language specific text. In that case you could use the following:

{if $language_id == 1}
   This is English
{elseif $language_id == 3}
   this is Spanish
{/if}

You can find the language id for any language by looking within the following admin tool:

LANGUAGES > LANGUAGES HOME
startup_tutorial_and_checklist/design_configuration/smarty_template_code_extensions/language_specific_display.txt · Last modified: 2015/03/20 21:35 by geojames