', $txt['languages_download_complete'], '

', $context['install_complete'], '
'; return; } // An error? if (!empty($context['error_message'])) echo '
', $context['error_message'], '
'; // Provide something of an introduction... echo '

', $txt['languages_download'], '

', $txt['languages_download_note'], '

', $txt['languages_download_info'], '
'; // Show the main files. template_show_list('lang_main_files_list'); // Now, all the images and the likes, hidden via javascript 'cause there are so fecking many. echo '

', $txt['languages_download_theme_files'], '

'; foreach ($context['files']['images'] as $theme => $group) { $count = 0; echo ' '; $alternate = false; foreach ($group as $file) { echo ' '; $alternate = !$alternate; } } echo '
', $txt['languages_download_filename'], ' ', $txt['languages_download_writable'], ' ', $txt['languages_download_exists'], ' ', $txt['languages_download_copy'], '
* ', isset($context['theme_names'][$theme]) ? $context['theme_names'][$theme] : $theme, '
', $file['name'], '
', $txt['languages_download_dest'], ': ', $file['destination'], '
', ($file['writable'] ? $txt['yes'] : $txt['no']), ' ', $file['exists'] ? ($file['exists'] == 'same' ? $txt['languages_download_exists_same'] : $txt['languages_download_exists_different']) : $txt['no'], '
'; // Do we want some FTP baby? // If the files are not writable, we might! if (!empty($context['still_not_writable'])) { if (!empty($context['package_ftp']['error'])) echo '
', $context['package_ftp']['error'], '
'; echo '

', $txt['package_ftp_necessary'], '

', $txt['package_ftp_why'],'

', $txt['package_ftp_server'], ':
'; } // Install? echo '
'; // The javascript for expand and collapse of sections. echo ' '; } /** * Edit language entries. */ function template_modify_language_entries() { global $context, $settings, $options, $txt, $scripturl; echo '

', $txt['edit_languages'], '

', $txt['edit_language_entries_primary'], '
'; // Not writable? if (!empty($context['lang_file_not_writable_message'])) { // Oops, show an error for ya. echo '
', $context['lang_file_not_writable_message'], '
'; } // Show the language entries echo '
', $context['primary_settings']['name'], '
'; // Allow deleting entries. if ($context['lang_id'] != 'english') { // English can't be deleted though. echo ' '; } echo '

', $txt['edit_language_entries'], '

', $txt['edit_language_entries_file'], ':

'; // Is it not writable? // Show an error. if (!empty($context['entries_not_writable_message'])) echo '
', $context['entries_not_writable_message'], '
'; // Already have some file entries? if (!empty($context['file_entries'])) { echo '
'; $cached = array(); foreach ($context['file_entries'] as $entry) { // Do it in two's! if (empty($cached)) { $cached = $entry; continue; } echo '
', $cached['key'], '
', $entry['key'], '
'; $cached = array(); } // Odd number? if (!empty($cached)) { // Alternative time echo '
', $cached['key'], '
'; } echo '
'; echo '
'; } echo '
'; } /** * Add a new language * */ function template_add_language() { global $context, $settings, $options, $txt, $scripturl; echo '

', $txt['add_language'], '

', $txt['add_language_smf'], ' '; // Do we have some errors? Too bad. if (!empty($context['smf_error'])) { // Display a little error box. echo '

', $txt['add_language_error_' . $context['smf_error']], '

'; } echo '
', isBrowser('is_ie') ? ' ' : '', '
'; // Had some results? if (!empty($context['smf_languages']['rows'])) { echo '

', $txt['add_language_found_title'], '

', $txt['add_language_smf_found'], '
'; template_show_list('smf_languages'); } echo '
'; } ?>