<xf:title>{{ phrase('export_language:') }} {$language.title}</xf:title>

<xf:set var="$addOnRepo" value="{{ $xf.app.em.getRepository('XF:AddOn') }}" />

<xf:form action="{{ link('languages/export', $language) }}" class="block">
	<div class="block-container">
		<div class="block-body">
			<xf:formrow label="{{ phrase('language') }}">{$language.title}</xf:formrow>

			<xf:selectrow name="addon_id"
				label="{{ phrase('export_from_add_on') }}">

				<xf:option>{{ phrase('(all)') }}</xf:option>
				<xf:foreach loop="$addOnRepo.findAddOnsForList().fetch()" value="$addOn">
					<xf:option value="{$addOn.addon_id}" label="{$addOn.title}" />
				</xf:foreach>
			</xf:selectrow>

			<xf:checkboxrow>
				<xf:option name="untranslated"
					label="{{ phrase('get_unmodified_phrases') }}"
					hint="{{ phrase('helpful_if_wish_to_translate_language_using_xml_file') }}" />
			</xf:checkboxrow>
		</div>
		<xf:submitrow icon="export" />
	</div>
</xf:form>