{strip}
<div class="floaticon">{bithelp}</div>

<div class="admin languages">
    <div class="header">
        <h1>{tr}Import Languages{/tr}</h1>
    </div>

	{formfeedback hash=$impmsg}

	<div class="body">
		{jstabs}
			{jstab title="Import Languages"}
				{form legend="Import languages"}
					<div class="row">
						{formlabel label="Select the languages to Import"}
						{forminput}
							{foreach from=$impLanguages key=langCode item=lang}
								<label><input type="checkbox" name="imp_languages[]" value="{$langCode}" /> {$lang.full_name}</label><br/>
							{/foreach}

							{if $gBitUser->isAdmin()}
								<br/>
								<label><input type="checkbox" name="import_master" value="1" /> Master Strings</label><br/>
								{formhelp note="The English strings file will be used to set up the language database and will be used as a reference for translations."}
							{/if}
						{/forminput}
					</div>

					<div class="row">
						{formlabel label="Options"}
						{forminput}
							<label><input type="radio" name="overwrite" value="0" checked="checked" />
								{tr}Do not import string if it has been changed in the local database{/tr}</label>
							<br/>
							<label><input type="radio" name="overwrite" value="1" />
								{tr}Overwrite changes in the local database{/tr}</label>
						{/forminput}
					</div>

					<div class="row submit">
						<input type="submit" name="import" value="{tr}Import{/tr}" />
					</div>
				{/form}
			{/jstab}

			{jstab title="Export Languages"}
				{form legend="Export language"}
					<div class="row">
						{formlabel label="Select the language to Export" for="exp_lang"}
						{forminput}
							<select name="export_lang_code" id="export_lang_code">
								{foreach from=$expLanguages key=langCode item=lang}
									<option value="{$langCode}" {if $exp_language eq $langCode}selected="selected"{/if}>{$lang.full_name}</option>
								{/foreach}
							</select>
							{formhelp note=""}
						{/forminput}
					</div>

					<div class="row">
						{formlabel label="Export All Translations" for="all_trans"}
						{forminput}
							<input type="checkbox" name="all_trans" id="all_trans" {if $allTrans}checked="checked"{/if} value="y" />
							{formhelp note="This will export all strings, even ones that are not in use. if you have not modified these strings, there isn't really much point in including them."}
						{/forminput}
					</div>

					<div class="row">
						{formlabel label="Destination" for="is_disabled"}
						{forminput}
							<input type="radio" name="target" value="temp" />Save to temporary file<br/>
							{formhelp note="This will save the file to a temporary location on the server."}
							<input type="radio" name="target" value="download" checked="checked" />Download translation file<br/>
							{formhelp note="Save this to languages/lang/(lang_code)/language.php where lang_code is the language your are downloading."}
						{/forminput}
					</div>

					<div class="row submit">
						<input type="submit" name="export" value="{tr}Export{/tr}" />
					</div>
				{/form}
			{/jstab}
		{/jstabs}
	</div><!-- end .body -->
</div><!-- end .languages -->
{/strip}
