Language Switcher
Transcribe provides a tag you can use to create a custom language switcher: language_links. Below are two examples of how you could use it:
Example as drop-down:
<form action="{exp:transcribe:action_url}" method="post">
<input type="hidden" name="XID" value="{XID_HASH}">
{exp:transcribe:language_links}
<select name="lang">
{languages}
<option value="{abbreviation}"{if current} selected="selected"{/if}>{name}</option>
{/languages}
</select>
{/exp:transcribe:language_links}
<input type="submit" name="submit" value="Submit" />
</form>
Example as links list:
{exp:transcribe:language_links}
<ul>
{languages}
<li><a href="{link}"{if current} class="active"{/if}>{name}</a></li>
{/languages}
</ul>
{/exp:transcribe:language_links}
If you are running into an issue with restricted characters in the URI, you will need to append '=&' to the value of $config['permitted_uri_chars'] in the control panel.
Trailing Slash
If you wish to remove the trailing slash when Transcribe redirects after the user chooses a language, add this config override setting to your `config.php` file:
$config['transcribe_trim_trailing_slash'] = 'yes';