{strip}
{bithelp}

{tr}Edit Languages{/tr}

{if !$translate} {jstabs} {if $editDescription} {if $gBitUser->hasPermission( 'bit_p_create_languages' )} {jstab title="Create or Edit Language"} {form legend="Create or Edit Language"} {formfeedback error=$saveErrors }
{formlabel label="Native name of the langugage" for="native_name"} {forminput} {/forminput}
{formlabel label="English name of the langugage" for="english_name"} {forminput} {/forminput}
{formlabel label="Langugage code" for="lang_code"} {forminput} {formhelp note='For official language codes, see ISO639-1 and to add a localistion you can append the country code from ISO 3166-1.
e.g. ISO639-1 for english is "en" and the country code for britain is "uk". The resulting code is "en-uk".'} {/forminput}
{formlabel label="Disabled" for="is_disabled"} {forminput} {formhelp note="Disabling a language will remove it from available language menus."} {/forminput}
{formhelp note="A note for localisations: when you have a language, say 'de' and you add a localisation such as 'de-at' it will fist check de-at for a string and then fall back to de. If it still hasn't found a translation, it will default to english."} {/form} {/jstab} {/if} {/if} {jstab title="Choose Language"} {formfeedback success=$saveSuccess} {form legend="Choose language"}
{formlabel label="Select the language to edit" for="select_language"} {forminput} {/forminput}
{if $gBitSystem->isFeatureActive( 'track_translation_usage' )}
{formlabel label="Display all strings" for="all_trans"} {forminput} {formhelp note="This will display translation strings for all bitweaver versions. This means it will also show strings that are not used at all and might be useless to you."} {/forminput}
{/if}
{formlabel label="Only Untranslated" for="un_trans"} {forminput} {formhelp note="Display only untranslated strings when editing the language translations."} {/forminput}
{formfeedback warning="Editing a language for the first time will cause an import of the language. this can take several minutes, depending on your configuration."}
   
{formhelp note="
Delete Language
Delete the language from your server.
Edit Description
Edit the description of the language, including language code.
Edit Translations
Edit the translated strings of the selected language.
"} {if $gBitUser->hasPermission( 'bit_p_create_languages' )}
{/if} {/form} {/jstab} {jstab title="Language Cache"} {formfeedback success=$saveSuccess} {form legend="Clear Language Cache"}
{tr}Clear the cached language translations for all languages.{/tr}
{/form} {/jstab} {/jstabs} {else} {form legend="Edit `$languages.$lang.full_name` Language"} {alphabar iall=1 lang=$lang translate=1 un_trans=$unTrans all_trans=$allTrans} {foreach from=$tranStrings key=sourceHash item=tran} {if $allTrans || (!$gBitSystem->isFeatureActive( 'track_translation_usage' ) || $tran.version)}
{formlabel label="Translate" for="h_$sourceHash"} {forminput} {$tran.source|escape}
{if $tran.textarea} {else} {/if} {/forminput}
{/if} {/foreach} {if $saveSuccess} {tr}The following items have been saved successfully{/tr} {formfeedback success=$saveSuccess} {else}
 
{alphabar iall=1 lang=$lang translate=1 un_trans=$unTrans all_trans=$allTrans} {/if} {/form} {/if}
{/strip}