Merge pull request #17919 from seamuslee001/nfc_locale_documentation
[civicrm-core.git] / templates / CRM / Block / LangSwitch.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
8 +--------------------------------------------------------------------+
9 *}
10 {if isset($langSwitch) and $langSwitch|@count > 1}
11 <form action="#">
12 <select name="lcMessages" onchange="window.location='{crmURL q="$queryString"}'+this.value">
13 {foreach from=$langSwitch item=language key=locale}
14 <option value="{$locale}" {if $locale == $tsLocale}selected="selected"{/if}>{$language}</option>
15 {/foreach}
16 </select>
17 </form>
18 {/if}