Merge pull request #18880 from vingle/master
[civicrm-core.git] / templates / CRM / Block / LangSwitch.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
1188c7a8 3 | Copyright CiviCRM LLC. All rights reserved. |
6a488035 4 | |
1188c7a8
TO
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 |
6a488035
TO
8 +--------------------------------------------------------------------+
9*}
10{if isset($langSwitch) and $langSwitch|@count > 1}
11 <form action="#">
bf2ab287 12 <select name="lcMessages" onchange="window.location='{crmURL q="$queryString"}'+this.value">
6a488035
TO
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}