{jstabs}
{if $editDescription}
{if $gBitUser->hasPermission( 'p_languages_create' )}
{jstab title="Create or Edit Language"}
{form legend="Create or Edit Language"}
{formfeedback error=$saveErrors }
{formlabel label="Native name of the language" for="native_name"}
{forminput}
{/forminput}
{formlabel label="English name of the language" for="english_name"}
{forminput}
{/forminput}
{formlabel label="Language code" for="lang_code"}
{forminput}
{formhelp note='For official language codes, see ISO639-1 and to add a localisation 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}
{forminput label="checkbox"}
Disabled
{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 first 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}
{forminput label="checkbox"}
Display all strings
{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}
{forminput label="checkbox"}
Only Untranslated
{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."}
{formlabel label="Clear Language Cache" for="clear_cache"}
{forminput}
{formhelp note="Clear the cached language translations for all languages. It is necessary to clear the cache when you have made changes to the language database."}
{/forminput}